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:
@@ -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"));
|
||||
|
||||
Reference in New Issue
Block a user