summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMontel Laurent <laurent.montel@kdab.com>2012-12-03 12:11:27 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2012-12-05 11:35:16 +0100
commit4d178743e496515566af740e9c2826a2cfe31874 (patch)
treeb749492d1146838326a54c76c7ef336615083d9f /src
parent2568f8ab2482873cdb11312bf4a29ee1e57a0205 (diff)
compile with QT_NO_TOOLTIP
Change-Id: I9e769a343a9dd74dc80cffebfe9ad97981596036 Reviewed-by: David Faure <david.faure@kdab.com>
Diffstat (limited to 'src')
-rw-r--r--src/widgets/kernel/qapplication_qpa.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/widgets/kernel/qapplication_qpa.cpp b/src/widgets/kernel/qapplication_qpa.cpp
index 21bc9506d4..3568e49ccd 100644
--- a/src/widgets/kernel/qapplication_qpa.cpp
+++ b/src/widgets/kernel/qapplication_qpa.cpp
@@ -421,8 +421,11 @@ void qt_init(QApplicationPrivate *priv, int type)
QColormap::initialize();
+#ifndef QT_NO_TOOLTIP
if (const QPalette *toolTipPalette = QGuiApplicationPrivate::platformTheme()->palette(QPlatformTheme::ToolTipPalette))
QToolTip::setPalette(*toolTipPalette);
+#endif
+
QApplicationPrivate::initializeWidgetFontHash();
}