diff options
author | Timothy Pearson <[email protected]> | 2012-08-09 15:32:06 -0500 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2012-08-09 15:32:06 -0500 |
commit | d24053184c51974368634902f1c0e862c811098b (patch) | |
tree | b7429f5319e15d2db2fb056e223c84ad0e05df89 /examples/themes/metal.h | |
parent | 8805afa8c607ac6028207434f78a7cd90a9df64b (diff) | |
download | qt3-d24053184c51974368634902f1c0e862c811098b.tar.gz qt3-d24053184c51974368634902f1c0e862c811098b.zip |
Update example styles to new style API
Diffstat (limited to 'examples/themes/metal.h')
-rw-r--r-- | examples/themes/metal.h | 24 |
1 files changed, 15 insertions, 9 deletions
diff --git a/examples/themes/metal.h b/examples/themes/metal.h index f3d4753..46257f6 100644 --- a/examples/themes/metal.h +++ b/examples/themes/metal.h @@ -26,13 +26,15 @@ class MetalStyle : public QWindowsStyle { public: MetalStyle(); - void polish( QApplication*); - void unPolish( QApplication*); - void polish( QWidget* ); - void unPolish( QWidget* ); + void applicationPolish( QStyleControlElementData ceData, ControlElementFlags elementFlags, void * ); + void applicationUnPolish( QStyleControlElementData ceData, ControlElementFlags elementFlags, void * ); + void polish( QStyleControlElementData ceData, ControlElementFlags elementFlags, void * ); + void unPolish( QStyleControlElementData ceData, ControlElementFlags elementFlags, void * ); void drawPrimitive( PrimitiveElement pe, QPainter *p, + QStyleControlElementData ceData, + ControlElementFlags elementFlags, const QRect &r, const QColorGroup &cg, SFlags flags = Style_Default, @@ -40,22 +42,26 @@ public: void drawControl( ControlElement element, QPainter *p, - const QWidget *widget, + QStyleControlElementData ceData, + ControlElementFlags elementFlags, const QRect &r, const QColorGroup &cg, SFlags how = Style_Default, - const QStyleOption& = QStyleOption::Default ) const; + const QStyleOption& = QStyleOption::Default, + const QWidget *widget = 0 ) const; void drawComplexControl( ComplexControl cc, QPainter *p, - const QWidget *widget, + QStyleControlElementData ceData, + ControlElementFlags elementFlags, const QRect &r, const QColorGroup &cg, SFlags how = Style_Default, SCFlags sub = SC_All, SCFlags subActive = SC_None, - const QStyleOption& = QStyleOption::Default ) const; - int pixelMetric( PixelMetric, const QWidget * ) const; + const QStyleOption& = QStyleOption::Default, + const QWidget *widget = 0 ) const; + int pixelMetric( PixelMetric, QStyleControlElementData ceData, ControlElementFlags elementFlags, const QWidget * = 0 ) const; private: |