clean up deprecated flags
parent
ac2e81ab10
commit
d101975d5d
|
@ -319,12 +319,12 @@ MainWindow::MainWindow(QWidget *parent) :
|
|||
auto* vp = new QOpenGLWidget();
|
||||
view->setViewport(vp); // enable hardware acceleration
|
||||
}
|
||||
view->setRenderHints(QPainter::Antialiasing | QPainter::SmoothPixmapTransform | QPainter::HighQualityAntialiasing);
|
||||
view->setRenderHints(QPainter::Antialiasing | QPainter::SmoothPixmapTransform);
|
||||
// Under OSX these cause Xybrid to crash.
|
||||
#ifndef __APPLE__
|
||||
#ifndef __APPLE__
|
||||
glEnable(GL_MULTISAMPLE);
|
||||
glEnable(GL_LINE_SMOOTH);
|
||||
#endif
|
||||
#endif
|
||||
//QGL::FormatOption::Rgba
|
||||
|
||||
|
||||
|
|
|
@ -86,7 +86,6 @@ void SampleSelectorGadget::paint(QPainter* p, const QStyleOptionGraphicsItem* op
|
|||
}
|
||||
}
|
||||
p->setRenderHint(QPainter::Antialiasing, true);
|
||||
p->setRenderHint(QPainter::HighQualityAntialiasing, true);
|
||||
p->setPen(QPen(outline, 2));
|
||||
p->setBrush(QBrush(Qt::NoBrush));
|
||||
p->drawRoundedRect(br, corner, corner);
|
||||
|
|
|
@ -86,7 +86,6 @@ void WaveformPreviewWidget::paintEvent(QPaintEvent* event [[maybe_unused]]) {
|
|||
path.addText(rect.bottomLeft() + QPointF(2, -fm.descent()), font, name);
|
||||
|
||||
p.setRenderHint(QPainter::Antialiasing, true);
|
||||
p.setRenderHint(QPainter::HighQualityAntialiasing, true);
|
||||
p.fillPath(path, QColor(0, 0, 0));
|
||||
p.strokePath(path, QPen(QColor(0, 0, 0), 3));
|
||||
p.fillPath(path, QColor(255, 255, 255));
|
||||
|
|
Loading…
Reference in New Issue