summaryrefslogtreecommitdiffstats
path: root/src/styles/qplatinumstyle.h
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-08-05 01:00:53 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-08-05 01:00:53 -0500
commit0008bc5bcd95694b38b0d0322aac2ea6fdb21298 (patch)
treee36a2a63a9784451af847fc952b281969cb8c0c0 /src/styles/qplatinumstyle.h
parentebcb1d80bf517aceb69778e1e9f67e5f4da8c484 (diff)
downloadqt3-0008bc5bcd95694b38b0d0322aac2ea6fdb21298.tar.gz
qt3-0008bc5bcd95694b38b0d0322aac2ea6fdb21298.zip
Update style API to function without an active widget object
Diffstat (limited to 'src/styles/qplatinumstyle.h')
-rw-r--r--src/styles/qplatinumstyle.h24
1 files changed, 16 insertions, 8 deletions
diff --git a/src/styles/qplatinumstyle.h b/src/styles/qplatinumstyle.h
index 8c83aea..6bf409f 100644
--- a/src/styles/qplatinumstyle.h
+++ b/src/styles/qplatinumstyle.h
@@ -65,6 +65,8 @@ public:
// new Style Stuff
void drawPrimitive( PrimitiveElement pe,
QPainter *p,
+ QStyleControlElementData ceData,
+ ControlElementFlags elementFlags,
const QRect &r,
const QColorGroup &cg,
SFlags flags = Style_Default,
@@ -72,15 +74,18 @@ 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 control,
QPainter *p,
- const QWidget *widget,
+ QStyleControlElementData ceData,
+ ControlElementFlags elementFlags,
const QRect &r,
const QColorGroup &cg,
SFlags how = Style_Default,
@@ -90,16 +95,19 @@ public:
SCFlags sub = (uint)SC_All,
#endif
SCFlags subActive = SC_None,
- const QStyleOption& = QStyleOption::Default ) const;
+ const QStyleOption& = QStyleOption::Default,
+ const QWidget *widget = 0 ) const;
QRect querySubControlMetrics( ComplexControl control,
- const QWidget *widget,
+ QStyleControlElementData ceData,
+ ControlElementFlags elementFlags,
SubControl sc,
- const QStyleOption& = QStyleOption::Default ) const;
+ const QStyleOption& = QStyleOption::Default,
+ const QWidget *widget = 0 ) const;
- int pixelMetric( PixelMetric metric, const QWidget *widget = 0 ) const;
+ int pixelMetric( PixelMetric metric, QStyleControlElementData ceData, ControlElementFlags elementFlags, const QWidget *widget = 0 ) const;
- QRect subRect( SubRect r, const QWidget *widget ) const;
+ QRect subRect( SubRect r, QStyleControlElementData ceData, ControlElementFlags elementFlags, const QWidget *widget ) const;
protected:
QColor mixedColor(const QColor &, const QColor &) const;