diff options
author | Timothy Pearson <[email protected]> | 2012-08-05 01:03:33 -0500 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2012-08-05 01:03:33 -0500 |
commit | 8a81e3e9ade5820c2764b7c912b5115c2fd64c1c (patch) | |
tree | 3537cb7bd39e607de03618b4b646ebd8446c75e2 /style/qtc_kstyle.h | |
parent | dc8692f8b3b7fd3e6c3f7be4d781adadf175a8fe (diff) | |
download | tde-style-qtcurve-8a81e3e9ade5820c2764b7c912b5115c2fd64c1c.tar.gz tde-style-qtcurve-8a81e3e9ade5820c2764b7c912b5115c2fd64c1c.zip |
Update to new style API
Diffstat (limited to 'style/qtc_kstyle.h')
-rw-r--r-- | style/qtc_kstyle.h | 50 |
1 files changed, 32 insertions, 18 deletions
diff --git a/style/qtc_kstyle.h b/style/qtc_kstyle.h index d7b50cf..b63db2c 100644 --- a/style/qtc_kstyle.h +++ b/style/qtc_kstyle.h @@ -228,11 +228,13 @@ class TQtCKStyle: public TQCommonStyle */ virtual void drawKStylePrimitive( KStylePrimitive kpe, TQPainter* p, - const TQWidget* widget, + TQStyleControlElementData ceData, + ControlElementFlags elementFlags, const TQRect &r, const TQColorGroup &cg, SFlags flags = Style_Default, - const TQStyleOption& = TQStyleOption::Default ) const; + const TQStyleOption& = TQStyleOption::Default, + const TQWidget* widget = 0 ) const; enum KStylePixelMetric { @@ -257,6 +259,8 @@ class TQtCKStyle: public TQCommonStyle void drawPrimitive( PrimitiveElement pe, TQPainter* p, + TQStyleControlElementData ceData, + ControlElementFlags elementFlags, const TQRect &r, const TQColorGroup &cg, SFlags flags = Style_Default, @@ -264,46 +268,56 @@ class TQtCKStyle: public TQCommonStyle void drawControl( ControlElement element, TQPainter* p, - const TQWidget* widget, + TQStyleControlElementData ceData, + ControlElementFlags elementFlags, const TQRect &r, const TQColorGroup &cg, SFlags flags = Style_Default, - const TQStyleOption& = TQStyleOption::Default ) const; + const TQStyleOption& = TQStyleOption::Default, + const TQWidget* widget = 0 ) const; void drawComplexControl( ComplexControl control, TQPainter *p, - const TQWidget* widget, + TQStyleControlElementData ceData, + ControlElementFlags elementFlags, const TQRect &r, const TQColorGroup &cg, SFlags flags = Style_Default, SCFlags controls = SC_All, SCFlags active = SC_None, - const TQStyleOption& = TQStyleOption::Default ) const; + const TQStyleOption& = TQStyleOption::Default, + const TQWidget* widget = 0 ) const; SubControl querySubControl( ComplexControl control, - const TQWidget* widget, + TQStyleControlElementData ceData, + ControlElementFlags elementFlags, const TQPoint &pos, - const TQStyleOption& = TQStyleOption::Default ) const; + const TQStyleOption& = TQStyleOption::Default, + const TQWidget* widget = 0 ) const; TQRect querySubControlMetrics( ComplexControl control, - const TQWidget* widget, + TQStyleControlElementData ceData, + ControlElementFlags elementFlags, SubControl sc, - const TQStyleOption& = TQStyleOption::Default ) const; + const TQStyleOption& = TQStyleOption::Default, + const TQWidget* widget = 0 ) const; - int pixelMetric( PixelMetric m, + int pixelMetric( PixelMetric m, TQStyleControlElementData ceData, ControlElementFlags elementFlags, const TQWidget* widget = 0 ) const; - TQRect subRect( SubRect r, - const TQWidget* widget ) const; + TQRect subRect( SubRect r, const TQStyleControlElementData ceData, const ControlElementFlags elementFlags, + const TQWidget* widget = 0 ) const; TQPixmap stylePixmap( StylePixmap stylepixmap, - const TQWidget* widget = 0, - const TQStyleOption& = TQStyleOption::Default ) const; + TQStyleControlElementData ceData, + ControlElementFlags elementFlags, + const TQStyleOption& = TQStyleOption::Default, + const TQWidget* widget = 0 ) const; - int styleHint( StyleHint sh, - const TQWidget* w = 0, + int styleHint( StyleHint sh, TQStyleControlElementData ceData, ControlElementFlags elementFlags, const TQStyleOption &opt = TQStyleOption::Default, - TQStyleHintReturn* shr = 0 ) const; + TQStyleHintReturn* shr = 0, + const TQWidget* w = 0 ) const; protected: bool eventFilter( TQObject* object, TQEvent* event ); |