summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel
diff options
context:
space:
mode:
authorKatja <katja.marttila@digia.com>2012-02-22 12:30:07 (GMT)
committerQt by Nokia <qt-info@nokia.com>2012-04-12 05:56:46 (GMT)
commitd75823432a1f4794c90cc493962366242007012a (patch)
tree2c28ec78416aa82cbd7db64fb377d32c1f8cb5da /src/gui/kernel
parent43cba99bc8195a19b7c3fae73ef40b9b65d39ff6 (diff)
downloadQt-d75823432a1f4794c90cc493962366242007012a.zip
Qt-d75823432a1f4794c90cc493962366242007012a.tar.gz
Qt-d75823432a1f4794c90cc493962366242007012a.tar.bz2
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 <janne.anttila@digia.com> Reviewed-by: Prasanth Ullattil <prasanth.ullattil@nokia.com>
Diffstat (limited to 'src/gui/kernel')
-rw-r--r--src/gui/kernel/qapplication_win.cpp2
1 files changed, 1 insertions, 1 deletions
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;