aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/texteditor/texteditorsettings.cpp
diff options
context:
space:
mode:
authorJarek Kobus <jaroslaw.kobus@qt.io>2020-11-16 23:42:08 +0100
committerJarek Kobus <jaroslaw.kobus@qt.io>2020-11-17 14:06:20 +0000
commit5efbdd5f10d138824b166f2505169d75ff5432f7 (patch)
treee430a78806ee533c5a514624c07546f539378174 /src/plugins/texteditor/texteditorsettings.cpp
parent900007e781348d75fe1b8ebd61ac024e16c96074 (diff)
Construct QColor instances from int instead of QString
Change-Id: I75c72d71fef024a2229f8f78a96d3f02a1fbf72b Reviewed-by: hjk <hjk@qt.io>
Diffstat (limited to 'src/plugins/texteditor/texteditorsettings.cpp')
-rw-r--r--src/plugins/texteditor/texteditorsettings.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/plugins/texteditor/texteditorsettings.cpp b/src/plugins/texteditor/texteditorsettings.cpp
index db6127d72d..f88988e825 100644
--- a/src/plugins/texteditor/texteditorsettings.cpp
+++ b/src/plugins/texteditor/texteditorsettings.cpp
@@ -313,16 +313,16 @@ FormatDescriptions TextEditorSettingsPrivate::initialFormats()
Format(QColor(192, 0, 0), QColor()));
formatDescr.emplace_back(C_LOG_AUTHOR_NAME, tr("Log Author Name"),
tr("Applied to author names in VCS log."),
- Format(QColor("#007af4"), QColor()));
+ Format(QColor(0x007af4), QColor()));
formatDescr.emplace_back(C_LOG_COMMIT_DATE, tr("Log Commit Date"),
tr("Applied to commit dates in VCS log."),
- Format(QColor("#006600"), QColor()));
+ Format(QColor(0x006600), QColor()));
formatDescr.emplace_back(C_LOG_COMMIT_HASH, tr("Log Commit Hash"),
tr("Applied to commit hashes in VCS log."),
- Format(QColor("#ff0000"), QColor()));
+ Format(QColor(0xff0000), QColor()));
formatDescr.emplace_back(C_LOG_DECORATION, tr("Log Decoration"),
tr("Applied to commit decorations in VCS log."),
- Format(QColor("#ff00ff"), QColor()));
+ Format(QColor(0xff00ff), QColor()));
formatDescr.emplace_back(C_LOG_COMMIT_SUBJECT, tr("Log Commit Subject"),
tr("Applied to commit subjects in VCS log."),
Format{QColor{}, QColor{}});