summaryrefslogtreecommitdiffstats
path: root/src/styles/qplatinumstyle.h
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-11-14 23:45:27 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-11-14 23:45:27 -0600
commit5e04c37a6ce7a090adb9e6ea02a04761dea8a33e (patch)
treeb361ace08a667135125ac6bf00c82452b61c23d5 /src/styles/qplatinumstyle.h
parent30c5994817cb87f4a291eec0bc6eaec485eefb15 (diff)
downloadqt3-5e04c37a6ce7a090adb9e6ea02a04761dea8a33e.tar.gz
qt3-5e04c37a6ce7a090adb9e6ea02a04761dea8a33e.zip
Increase style method call speed
This breaks the style ABI
Diffstat (limited to 'src/styles/qplatinumstyle.h')
-rw-r--r--src/styles/qplatinumstyle.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/styles/qplatinumstyle.h b/src/styles/qplatinumstyle.h
index 6bf409f..13cc866 100644
--- a/src/styles/qplatinumstyle.h
+++ b/src/styles/qplatinumstyle.h
@@ -65,7 +65,7 @@ public:
// new Style Stuff
void drawPrimitive( PrimitiveElement pe,
QPainter *p,
- QStyleControlElementData ceData,
+ const QStyleControlElementData &ceData,
ControlElementFlags elementFlags,
const QRect &r,
const QColorGroup &cg,
@@ -74,7 +74,7 @@ public:
void drawControl( ControlElement element,
QPainter *p,
- QStyleControlElementData ceData,
+ const QStyleControlElementData &ceData,
ControlElementFlags elementFlags,
const QRect &r,
const QColorGroup &cg,
@@ -84,7 +84,7 @@ public:
void drawComplexControl( ComplexControl control,
QPainter *p,
- QStyleControlElementData ceData,
+ const QStyleControlElementData &ceData,
ControlElementFlags elementFlags,
const QRect &r,
const QColorGroup &cg,
@@ -99,15 +99,15 @@ public:
const QWidget *widget = 0 ) const;
QRect querySubControlMetrics( ComplexControl control,
- QStyleControlElementData ceData,
+ const QStyleControlElementData &ceData,
ControlElementFlags elementFlags,
SubControl sc,
const QStyleOption& = QStyleOption::Default,
const QWidget *widget = 0 ) const;
- int pixelMetric( PixelMetric metric, QStyleControlElementData ceData, ControlElementFlags elementFlags, const QWidget *widget = 0 ) const;
+ int pixelMetric( PixelMetric metric, const QStyleControlElementData &ceData, ControlElementFlags elementFlags, const QWidget *widget = 0 ) const;
- QRect subRect( SubRect r, QStyleControlElementData ceData, ControlElementFlags elementFlags, const QWidget *widget ) const;
+ QRect subRect( SubRect r, const QStyleControlElementData &ceData, ControlElementFlags elementFlags, const QWidget *widget ) const;
protected:
QColor mixedColor(const QColor &, const QColor &) const;