forked from qt-creator/qt-creator
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>
This commit is contained in:
@@ -284,7 +284,7 @@ protected:
|
||||
QPainter p(this);
|
||||
QPalette pal = m_editor->extraArea()->palette();
|
||||
const QColor fg = pal.color(QPalette::Dark);
|
||||
const QColor bg = pal.color(QPalette::Background);
|
||||
const QColor bg = pal.color(QPalette::Window);
|
||||
p.setPen(fg);
|
||||
|
||||
// Draw relative line numbers.
|
||||
|
||||
Reference in New Issue
Block a user