summaryrefslogtreecommitdiff
path: root/src/plugins/help/centralwidget.cpp
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@nokia.com>2009-06-03 20:45:49 +0200
committerOswald Buddenhagen <oswald.buddenhagen@nokia.com>2009-06-03 20:54:59 +0200
commitd2a8449bea58275723e769cd41c085468cb56295 (patch)
tree7a18311f7fe3bb7a39e9da02175b23cee114965b /src/plugins/help/centralwidget.cpp
parent3df7a2c301379e98b0e96664a9180a8f8d666f0b (diff)
downloadqt-creator-d2a8449bea58275723e769cd41c085468cb56295.tar.gz
ifdef Q_?S_* cleanup
- clear up some Q_OS_LINUX vs. Q_OS_UNIX - clear up Q_WS_* vs. Q_OS_* (relatively theoretical exercise) - use proper #if-#else cascades instead of free-standing #ifs
Diffstat (limited to 'src/plugins/help/centralwidget.cpp')
-rw-r--r--src/plugins/help/centralwidget.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/plugins/help/centralwidget.cpp b/src/plugins/help/centralwidget.cpp
index a53a67564a..72574102f9 100644
--- a/src/plugins/help/centralwidget.cpp
+++ b/src/plugins/help/centralwidget.cpp
@@ -85,10 +85,10 @@ CentralWidget::CentralWidget(QHelpEngine *engine, QWidget *parent)
globalActionList.clear();
collectionFile = helpEngine->collectionFile();
- QString system = QLatin1String("win");
-
#ifdef Q_OS_MAC
- system = QLatin1String("mac");
+# define SYSTEM "mac"
+#else
+# define SYSTEM "win"
#endif
tabWidget = new QTabWidget;
@@ -100,7 +100,7 @@ CentralWidget::CentralWidget(QHelpEngine *engine, QWidget *parent)
QToolButton *newTabButton = new QToolButton(this);
newTabButton->setAutoRaise(true);
newTabButton->setToolTip(tr("Add new page"));
- newTabButton->setIcon(QIcon(QString::fromUtf8(":/trolltech/assistant/images/%1/addtab.png").arg(system)));
+ newTabButton->setIcon(QIcon(QString::fromLatin1(":/trolltech/assistant/images/" SYSTEM "/addtab.png")));
tabWidget->setCornerWidget(newTabButton, Qt::TopLeftCorner);
connect(newTabButton, SIGNAL(clicked()), this, SLOT(newTab()));