summaryrefslogtreecommitdiffstats
path: root/desktop-widgets/tab-widgets/maintab.cpp
diff options
context:
space:
mode:
authorGravatar Rolf Eike Beer <eike@sf-mail.de>2019-04-01 23:15:23 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-04-12 12:59:17 +0300
commitee0acb0d4045bef68bdb153c76f8506c68d8ea9f (patch)
treeddc9d7ebf8e9abdb39a49a42bd2522277442cdac /desktop-widgets/tab-widgets/maintab.cpp
parentc4c8094e32ad78dee558a80584470172f48c45b1 (diff)
downloadsubsurface-ee0acb0d4045bef68bdb153c76f8506c68d8ea9f.tar.gz
use QStringLiteral for constants
Signed-off-by: Rolf Eike Beer <eike@sf-mail.de>
Diffstat (limited to 'desktop-widgets/tab-widgets/maintab.cpp')
-rw-r--r--desktop-widgets/tab-widgets/maintab.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/desktop-widgets/tab-widgets/maintab.cpp b/desktop-widgets/tab-widgets/maintab.cpp
index c934cdb16..dbb83f356 100644
--- a/desktop-widgets/tab-widgets/maintab.cpp
+++ b/desktop-widgets/tab-widgets/maintab.cpp
@@ -154,20 +154,20 @@ MainTab::MainTab(QWidget *parent) : QTabWidget(parent),
ui.scrollArea_2->viewport()->setPalette(p);
// GroupBoxes in Gnome3 looks like I'v drawn them...
- static const QString gnomeCss(
+ static const QString gnomeCss = QStringLiteral(
"QGroupBox {"
- " background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,"
- " stop: 0 #E0E0E0, stop: 1 #FFFFFF);"
- " border: 2px solid gray;"
- " border-radius: 5px;"
- " margin-top: 1ex;"
+ "background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,"
+ "stop: 0 #E0E0E0, stop: 1 #FFFFFF);"
+ "border: 2px solid gray;"
+ "border-radius: 5px;"
+ "margin-top: 1ex;"
"}"
"QGroupBox::title {"
- " subcontrol-origin: margin;"
- " subcontrol-position: top center;"
- " padding: 0 3px;"
- " background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,"
- " stop: 0 #E0E0E0, stop: 1 #FFFFFF);"
+ "subcontrol-origin: margin;"
+ "subcontrol-position: top center;"
+ "padding: 0 3px;"
+ "background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,"
+ "stop: 0 #E0E0E0, stop: 1 #FFFFFF);"
"}");
Q_FOREACH (QGroupBox *box, findChildren<QGroupBox *>()) {
box->setStyleSheet(gnomeCss);