mirror of
https://github.com/tnodir/fort
synced 2024-11-15 08:35:08 +00:00
QCustomPlot: Fix build for Qt 6.0
This commit is contained in:
parent
01b5c99178
commit
6a87545d63
8
src/3rdparty/qcustomplot/qcustomplot.cpp
vendored
8
src/3rdparty/qcustomplot/qcustomplot.cpp
vendored
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user