From kde-commits Tue Dec 01 00:01:16 2009 From: Carlo Segato Date: Tue, 01 Dec 2009 00:01:16 +0000 To: kde-commits Subject: KDE/kdebase/runtime/kstyles/oxygen Message-Id: <1259625676.175850.7168.nullmailer () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=125962570032081 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(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(widget) ) {