From d75823432a1f4794c90cc493962366242007012a Mon Sep 17 00:00:00 2001 From: Katja Date: Wed, 22 Feb 2012 14:30:07 +0200 Subject: Widget created with type to Qt::ToolTip should have a drop shadow When using Qt::ToolTip window flag, CS_DROPSHADOW style should be used Task-number: QTBUG-13276 Change-Id: I4b8dfab0de38667188efe6cc8e1465bdf1ae2d18 Reviewed-by: Janne Anttila Reviewed-by: Prasanth Ullattil --- src/gui/kernel/qapplication_win.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/kernel/qapplication_win.cpp b/src/gui/kernel/qapplication_win.cpp index e6ebf2b..6cfa122 100644 --- a/src/gui/kernel/qapplication_win.cpp +++ b/src/gui/kernel/qapplication_win.cpp @@ -980,7 +980,7 @@ const QString qt_reg_winclass(QWidget *w) // register window class icon = true; } else if (w && (type == Qt::Tool || type == Qt::ToolTip)) { style = CS_DBLCLKS; - if (w->inherits("QTipLabel") || w->inherits("QAlphaWidget")) { + if (type == Qt::ToolTip || w->inherits("QTipLabel") || w->inherits("QAlphaWidget")) { if ((QSysInfo::WindowsVersion >= QSysInfo::WV_XP && (QSysInfo::WindowsVersion & QSysInfo::WV_NT_based))) { style |= CS_DROPSHADOW; -- cgit v0.12