[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdebase/workspace/kstyles/oxygen
From: Hugo Pereira Da Costa <hugo () oxygen-icons ! org>
Date: 2010-12-23 11:32:18
Message-ID: 20101223113218.1971D3E1F2 () svn ! kde ! org
[Download RAW message or body]
SVN commit 1208812 by hpereiradacosta:
Added hasDecoration() utility function.
M +9 -0 oxygenstylehelper.cpp
M +3 -0 oxygenstylehelper.h
--- trunk/KDE/kdebase/workspace/kstyles/oxygen/oxygenstylehelper.cpp #1208811:1208812
@@ -819,6 +819,15 @@
}
//________________________________________________________________________________________________________
+ bool StyleHelper::hasDecoration( const QWidget* widget ) const
+ {
+ if( !widget->isTopLevel() ) return false;
+ if( widget->windowFlags() & \
(Qt::X11BypassWindowManagerHint|Qt::FramelessWindowHint) ) + { return false; }
+ return true;
+ }
+
+ //________________________________________________________________________________________________________
void StyleHelper::fillHole( QPainter& p, const QRect& rect, int size ) const
{
const qreal s( ( 3.0*size )/7.0 );
--- trunk/KDE/kdebase/workspace/kstyles/oxygen/oxygenstylehelper.h #1208811:1208812
@@ -159,6 +159,9 @@
//! returns true if a given widget supports alpha channel
inline bool hasAlphaChannel( const QWidget* ) const;
+ //! returns true if given widget will get a decoration
+ bool hasDecoration( const QWidget* ) const;
+
//@}
protected:
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic