[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdebase/runtime/kstyles/oxygen
From: Carlo Segato <brandon.ml () gmail ! com>
Date: 2009-12-01 0:01:16
Message-ID: 1259625676.175850.7168.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 1056837 by segato:
set Qt::FramelessWindowHint on Windows, otherwise Wa_TranslucentBackground doesn't \
work
M +9 -0 oxygen.cpp
--- trunk/KDE/kdebase/runtime/kstyles/oxygen/oxygen.cpp #1056836:1056837
@@ -3153,6 +3153,9 @@
widget->setAttribute(Qt::WA_TranslucentBackground);
widget->setContentsMargins(0,0,0,1);
widget->installEventFilter(this);
+#ifdef Q_WS_WIN
+ widget->setWindowFlags(widget->windowFlags() | Qt::FramelessWindowHint); \
//FramelessWindowHint is needed on windows to make WA_TranslucentBackground work \
properly +#endif
} else if (qobject_cast<QScrollBar*>(widget) ) {
@@ -3182,11 +3185,17 @@
widget->installEventFilter(this);
widget->setAttribute(Qt::WA_TranslucentBackground);
+#ifdef Q_WS_WIN
+ widget->setWindowFlags(widget->windowFlags() | Qt::FramelessWindowHint); \
//FramelessWindowHint is needed on windows to make WA_TranslucentBackground work \
properly +#endif
} else if (widget->inherits("QComboBoxPrivateContainer")) {
widget->installEventFilter(this);
widget->setAttribute(Qt::WA_TranslucentBackground);
+#ifdef Q_WS_WIN
+ widget->setWindowFlags(widget->windowFlags() | Qt::FramelessWindowHint); \
//FramelessWindowHint is needed on windows to make WA_TranslucentBackground work \
properly +#endif
} else if ( qobject_cast<QFrame*>(widget) ) {
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic