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:
Chris Hennes
2021-03-10 10:52:54 -06:00
committed by wmayer
parent 1f62d46661
commit b15f134038
6 changed files with 17 additions and 17 deletions

View File

@@ -81,7 +81,7 @@ void Workbench::activated()
foregroundColor = new QtColorPicker();
foregroundColor->setObjectName(QString::fromLatin1("Spreadsheet_ForegroundColor"));
foregroundColor->setStandardColors();
foregroundColor->setCurrentColor(palette.color(QPalette::Foreground));
foregroundColor->setCurrentColor(palette.color(QPalette::WindowText));
QObject::connect(foregroundColor, SIGNAL(colorSet(QColor)), workbenchHelper.get(), SLOT(setForegroundColor(QColor)));
}
foregroundColor->setToolTip(QObject::tr("Set cell(s) foreground color"));