diff options
author | Anton Kudryavtsev <anton.kudryavtsev@vk.team> | 2023-08-17 13:38:39 +0300 |
---|---|---|
committer | Anton Kudryavtsev <antkudr@mail.ru> | 2024-04-08 21:44:34 +0000 |
commit | 4565f97a5ce663afbac5b6b0d929941f7bccf9bf (patch) | |
tree | 838918f0d3bffaee90543af63824588d256f1810 /src/widgets/dialogs/qcolordialog.cpp | |
parent | 61556627f25e7c7acbfcc5e54127a392b5239977 (diff) |
Widgets: Improve usage of string view types
Use string views in QFontDialog, QColorDialog and QCommonStyle
Change-Id: I22f4b4694e2d18b784aaa85aebff8d92b8f0b871
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
Diffstat (limited to 'src/widgets/dialogs/qcolordialog.cpp')
-rw-r--r-- | src/widgets/dialogs/qcolordialog.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/widgets/dialogs/qcolordialog.cpp b/src/widgets/dialogs/qcolordialog.cpp index 27315fe53c..22efecedc9 100644 --- a/src/widgets/dialogs/qcolordialog.cpp +++ b/src/widgets/dialogs/qcolordialog.cpp @@ -1398,8 +1398,8 @@ void QColorShower::htmlEd() if (t.isEmpty()) return; - if (!t.startsWith(QStringLiteral("#"))) { - t = QStringLiteral("#") + t; + if (!t.startsWith(u"#")) { + t.prepend(u"#"); QSignalBlocker blocker(htEd); htEd->setText(t); } |