summaryrefslogtreecommitdiffstats
path: root/src/styles/ntqmotifstyle.h
diff options
context:
space:
mode:
authorDarrell Anderson <humanreadable@yahoo.com>2012-08-08 15:38:47 -0500
committerDarrell Anderson <humanreadable@yahoo.com>2012-08-08 15:38:47 -0500
commit785106b36c47923c338b6d3d61584eea448863ca (patch)
tree6b2bbbde4a5ff5e43c1c9ec31ad0bd72ea43e0df /src/styles/ntqmotifstyle.h
parent7d22e97622a6b963382b88aac6dfde06a2cd8f03 (diff)
parent43db215f601fd50f1fd8b502fae30c75c1bdee4a (diff)
downloadtqt3-785106b36c47923c338b6d3d61584eea448863ca.tar.gz
tqt3-785106b36c47923c338b6d3d61584eea448863ca.zip
Merge branch 'master' of http://scm.trinitydesktop.org/scm/git/tqt3
Diffstat (limited to 'src/styles/ntqmotifstyle.h')
-rw-r--r--src/styles/ntqmotifstyle.h40
1 files changed, 25 insertions, 15 deletions
diff --git a/src/styles/ntqmotifstyle.h b/src/styles/ntqmotifstyle.h
index fbfbf2508..9b9d3650d 100644
--- a/src/styles/ntqmotifstyle.h
+++ b/src/styles/ntqmotifstyle.h
@@ -67,14 +67,16 @@ public:
bool useHighlightColors() const;
void polish( TQPalette& );
- void polish( TQWidget* );
- void polish( TQApplication* );
+ void polish( TQStyleControlElementData ceData, ControlElementFlags elementFlags, void * );
+ void applicationPolish( TQStyleControlElementData ceData, ControlElementFlags elementFlags, void * );
void polishPopupMenu( TQPopupMenu* );
// new style API
void drawPrimitive( PrimitiveElement pe,
TQPainter *p,
+ TQStyleControlElementData ceData,
+ ControlElementFlags elementFlags,
const TQRect &r,
const TQColorGroup &cg,
SFlags flags = Style_Default,
@@ -82,15 +84,18 @@ public:
void drawControl( ControlElement element,
TQPainter *p,
- const TQWidget *widget,
+ TQStyleControlElementData ceData,
+ ControlElementFlags elementFlags,
const TQRect &r,
const TQColorGroup &cg,
SFlags how = 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 how = Style_Default,
@@ -100,26 +105,31 @@ public:
SCFlags sub = (uint)SC_All,
#endif
SCFlags subActive = SC_None,
- 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 metric, const TQWidget *widget = 0 ) const;
+ int pixelMetric( PixelMetric metric, TQStyleControlElementData ceData, ControlElementFlags elementFlags, const TQWidget *widget = 0 ) const;
TQSize sizeFromContents( ContentsType contents,
- const TQWidget *widget,
+ TQStyleControlElementData ceData,
+ ControlElementFlags elementFlags,
const TQSize &contentsSize,
- const TQStyleOption& = TQStyleOption::Default ) const;
+ const TQStyleOption& = TQStyleOption::Default,
+ const TQWidget *widget = 0 ) const;
- TQRect subRect( SubRect r, const TQWidget *widget ) const;
+ TQRect subRect( SubRect r, TQStyleControlElementData ceData, ControlElementFlags elementFlags, const TQWidget *widget ) const;
- TQPixmap stylePixmap(StylePixmap, const TQWidget * = 0, const TQStyleOption& = TQStyleOption::Default) const;
+ TQPixmap stylePixmap(StylePixmap, TQStyleControlElementData ceData, ControlElementFlags elementFlags, const TQStyleOption& = TQStyleOption::Default, const TQWidget * = 0) const;
- int styleHint(StyleHint sh, const TQWidget *, const TQStyleOption & = TQStyleOption::Default,
- TQStyleHintReturn* = 0) const;
+ int styleHint(StyleHint sh, TQStyleControlElementData ceData, ControlElementFlags elementFlags, const TQStyleOption & = TQStyleOption::Default,
+ TQStyleHintReturn* = 0, const TQWidget * = 0) const;
private:
bool highlightCols;