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/projectexplorer/targetsettingspanel.cpp | |
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/projectexplorer/targetsettingspanel.cpp')
-rw-r--r-- | src/plugins/projectexplorer/targetsettingspanel.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/projectexplorer/targetsettingspanel.cpp b/src/plugins/projectexplorer/targetsettingspanel.cpp index 6774cb73e34..aabb2d33a64 100644 --- a/src/plugins/projectexplorer/targetsettingspanel.cpp +++ b/src/plugins/projectexplorer/targetsettingspanel.cpp @@ -350,7 +350,7 @@ public: return k->icon(); } - case Qt::TextColorRole: { + case Qt::ForegroundRole: { if (!isEnabled()) return Utils::creatorTheme()->color(Theme::TextColorDisabled); break; |