compile with QT_NO_TOOLTIP
authorMontel Laurent <laurent.montel@kdab.com>
Mon, 3 Dec 2012 11:11:27 +0000 (12:11 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Wed, 5 Dec 2012 10:35:16 +0000 (11:35 +0100)
Change-Id: I9e769a343a9dd74dc80cffebfe9ad97981596036
Reviewed-by: David Faure <david.faure@kdab.com>
src/widgets/kernel/qapplication_qpa.cpp

index 21bc950..3568e49 100644 (file)
@@ -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();
 }