diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2021-01-06 10:15:34 +0100 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2021-01-06 13:16:45 +0100 |
commit | 7f735c198cd5b5e1d7f205a6cbce44eeb15529eb (patch) | |
tree | 0ce9386c6377d2fd124606467addc4d16554783f /examples/designer/worldtimeclockplugin | |
parent | 13e5fa4526821cfc7e64efbab44021dc3589b924 (diff) |
Qt Designer: Use raw string literals for domXML functions in plugins
This improves readibility.
Change-Id: Id8cffc15ee7fae9cd4a5f51bbf778849b9774226
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Diffstat (limited to 'examples/designer/worldtimeclockplugin')
-rw-r--r-- | examples/designer/worldtimeclockplugin/worldtimeclockplugin.cpp | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/examples/designer/worldtimeclockplugin/worldtimeclockplugin.cpp b/examples/designer/worldtimeclockplugin/worldtimeclockplugin.cpp index 8cd059c56..83223d59f 100644 --- a/examples/designer/worldtimeclockplugin/worldtimeclockplugin.cpp +++ b/examples/designer/worldtimeclockplugin/worldtimeclockplugin.cpp @@ -108,18 +108,20 @@ bool WorldTimeClockPlugin::isContainer() const QString WorldTimeClockPlugin::domXml() const { - return "<ui language=\"c++\">\n" - " <widget class=\"WorldTimeClock\" name=\"worldTimeClock\">\n" - " <property name=\"geometry\">\n" - " <rect>\n" - " <x>0</x>\n" - " <y>0</y>\n" - " <width>100</width>\n" - " <height>100</height>\n" - " </rect>\n" - " </property>\n" - " </widget>\n" - "</ui>"; + return QLatin1String(R"( +<ui language="c++"> + <widget class="WorldTimeClock" name="worldTimeClock"> + <property name="geometry"> + <rect> + <x>0</x> + <y>0</y> + <width>100</width> + <height>100</height> + </rect> + </property> + </widget> +</ui> +)"); } QString WorldTimeClockPlugin::includeFile() const |