QCustomPlot: Fix build for Qt 6.0

This commit is contained in:
Nodir Temirkhodjaev 2020-05-06 19:15:26 +03:00
parent 01b5c99178
commit 6a87545d63

View File

@ -667,7 +667,7 @@ QCPPaintBufferPixmap::~QCPPaintBufferPixmap()
QCPPainter *QCPPaintBufferPixmap::startPainting()
{
QCPPainter *result = new QCPPainter(&mBuffer);
result->setRenderHint(QPainter::HighQualityAntialiasing);
result->setRenderHint(QPainter::Antialiasing);
return result;
}
@ -755,7 +755,7 @@ QCPPainter *QCPPaintBufferGlPbuffer::startPainting()
}
QCPPainter *result = new QCPPainter(mGlPBuffer);
result->setRenderHint(QPainter::HighQualityAntialiasing);
result->setRenderHint(QPainter::Antialiasing);
return result;
}
@ -860,7 +860,7 @@ QCPPainter *QCPPaintBufferGlFbo::startPainting()
mGlContext.data()->makeCurrent(mGlContext.data()->surface());
mGlFrameBuffer->bind();
QCPPainter *result = new QCPPainter(mGlPaintDevice.data());
result->setRenderHint(QPainter::HighQualityAntialiasing);
result->setRenderHint(QPainter::Antialiasing);
return result;
}
@ -14748,7 +14748,7 @@ void QCustomPlot::paintEvent(QPaintEvent *event)
QCPPainter painter(this);
if (painter.isActive())
{
painter.setRenderHint(QPainter::HighQualityAntialiasing); // to make Antialiasing look good if using the OpenGL graphicssystem
painter.setRenderHint(QPainter::Antialiasing); // to make Antialiasing look good if using the OpenGL graphicssystem
if (mBackgroundBrush.style() != Qt::NoBrush)
painter.fillRect(mViewport, mBackgroundBrush);
drawBackground(&painter);