Remove deprecated Qt constants
Qt has deprecated the following constants, this commit replaces them with their new equivalent/replacement: Qt::TextColorRole -> Qt::ForegroundRole Qt::BackgroundColorRole -> Qt::BackgroundRole QPainter::HighQualityAntialiasing -> QPainter::Antialiasing QPalette::Foreground -> QPalette::WindowText
This commit is contained in:
@@ -530,7 +530,7 @@ void View3DInventor::printPreview()
|
||||
void View3DInventor::print(QPrinter* printer)
|
||||
{
|
||||
QPainter p(printer);
|
||||
p.setRenderHints(QPainter::Antialiasing | QPainter::HighQualityAntialiasing);
|
||||
p.setRenderHints(QPainter::Antialiasing);
|
||||
if (!p.isActive() && !printer->outputFileName().isEmpty()) {
|
||||
qApp->setOverrideCursor(Qt::ArrowCursor);
|
||||
QMessageBox::critical(this, tr("Opening file failed"),
|
||||
|
||||
Reference in New Issue
Block a user