diff options
author | Timothy Pearson <[email protected]> | 2014-08-07 13:08:29 -0500 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2014-08-07 13:08:29 -0500 |
commit | 93b3efa8902c19e9b67114652dc84c463f8c219a (patch) | |
tree | aa0f907f2c1c2f2dd6da5b8ca9c09f41c56be11b /examples/themes/metal.h | |
parent | 71a6d7870f609df603d9520a8d292055ea5928c3 (diff) | |
download | qt3-93b3efa8902c19e9b67114652dc84c463f8c219a.tar.gz qt3-93b3efa8902c19e9b67114652dc84c463f8c219a.zip |
Refresh control element data structures before executing style object event handlers
This resolves Bug 1816
Fix FTBFS in style examples
Diffstat (limited to 'examples/themes/metal.h')
-rw-r--r-- | examples/themes/metal.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/examples/themes/metal.h b/examples/themes/metal.h index 46257f6..5e20657 100644 --- a/examples/themes/metal.h +++ b/examples/themes/metal.h @@ -26,14 +26,14 @@ class MetalStyle : public QWindowsStyle { public: MetalStyle(); - 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 applicationPolish( const QStyleControlElementData &ceData, ControlElementFlags elementFlags, void * ); + void applicationUnPolish( const QStyleControlElementData &ceData, ControlElementFlags elementFlags, void * ); + void polish( const QStyleControlElementData &ceData, ControlElementFlags elementFlags, void * ); + void unPolish( const QStyleControlElementData &ceData, ControlElementFlags elementFlags, void * ); void drawPrimitive( PrimitiveElement pe, QPainter *p, - QStyleControlElementData ceData, + const QStyleControlElementData &ceData, ControlElementFlags elementFlags, const QRect &r, const QColorGroup &cg, @@ -42,7 +42,7 @@ public: void drawControl( ControlElement element, QPainter *p, - QStyleControlElementData ceData, + const QStyleControlElementData &ceData, ControlElementFlags elementFlags, const QRect &r, const QColorGroup &cg, @@ -52,7 +52,7 @@ public: void drawComplexControl( ComplexControl cc, QPainter *p, - QStyleControlElementData ceData, + const QStyleControlElementData &ceData, ControlElementFlags elementFlags, const QRect &r, const QColorGroup &cg, @@ -61,7 +61,7 @@ public: SCFlags subActive = SC_None, const QStyleOption& = QStyleOption::Default, const QWidget *widget = 0 ) const; - int pixelMetric( PixelMetric, QStyleControlElementData ceData, ControlElementFlags elementFlags, const QWidget * = 0 ) const; + int pixelMetric( PixelMetric, const QStyleControlElementData &ceData, ControlElementFlags elementFlags, const QWidget * = 0 ) const; private: |