diff options
author | Sona Kurazyan <sona.kurazyan@qt.io> | 2019-08-29 11:40:38 +0200 |
---|---|---|
committer | Sona Kurazyan <sona.kurazyan@qt.io> | 2019-09-03 09:15:30 +0000 |
commit | 82bcf4e9f54337faf24a7372cfd622632f4988f8 (patch) | |
tree | 8d6576cef11e1b6819f6567d872e28e4b450af28 /src/plugins/beautifier | |
parent | 6f4aa0458c991e3f81154469265899e30fe8121e (diff) |
Remove usages of deprecated APIs
Replaced:
QPalette::ColorRole::Background -> QPalette::ColorRole::Window
QPalette::ColorRole::Foreground -> QPalette::ColorRole::WindowText
Qt::ItemDataRole::TextColorRole -> Qt::ItemDataRole::ForegroundRole
QFontMetrics::width() -> QFontMetrics::horizontalAdvance()
Task-number: QTBUG-76491
Change-Id: I1302e6b569e725daa6f7be1428ffe055657fc644
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Diffstat (limited to 'src/plugins/beautifier')
-rw-r--r-- | src/plugins/beautifier/configurationdialog.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/beautifier/configurationdialog.cpp b/src/plugins/beautifier/configurationdialog.cpp index 48fcd18483..7d84c73023 100644 --- a/src/plugins/beautifier/configurationdialog.cpp +++ b/src/plugins/beautifier/configurationdialog.cpp @@ -62,7 +62,7 @@ ConfigurationDialog::ConfigurationDialog(QWidget *parent) : QPalette pal; pal.setColor(QPalette::Base, tf.background().color()); pal.setColor(QPalette::Text, tf.foreground().color()); - pal.setColor(QPalette::Foreground, tf.foreground().color()); + pal.setColor(QPalette::WindowText, tf.foreground().color()); if (selectionFormat.background().style() != Qt::NoBrush) pal.setColor(QPalette::Highlight, selectionFormat.background().color()); pal.setBrush(QPalette::HighlightedText, selectionFormat.foreground()); |