summaryrefslogtreecommitdiffstats
path: root/src/styles/qcdestyle.h
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2012-11-14 23:45:27 -0600
committerTimothy Pearson <[email protected]>2012-11-14 23:45:27 -0600
commit5e04c37a6ce7a090adb9e6ea02a04761dea8a33e (patch)
treeb361ace08a667135125ac6bf00c82452b61c23d5 /src/styles/qcdestyle.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/qcdestyle.h')
-rw-r--r--src/styles/qcdestyle.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/styles/qcdestyle.h b/src/styles/qcdestyle.h
index 3dee332..6a4c562 100644
--- a/src/styles/qcdestyle.h
+++ b/src/styles/qcdestyle.h
@@ -62,11 +62,11 @@ public:
QCDEStyle( bool useHighlightCols = FALSE );
virtual ~QCDEStyle();
- 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;
void drawControl( ControlElement element,
QPainter *p,
- QStyleControlElementData ceData,
+ const QStyleControlElementData &ceData,
ControlElementFlags elementFlags,
const QRect &r,
const QColorGroup &cg,
@@ -76,7 +76,7 @@ public:
void drawPrimitive( PrimitiveElement pe,
QPainter *p,
- QStyleControlElementData ceData,
+ const QStyleControlElementData &ceData,
ControlElementFlags elementFlags,
const QRect &r,
const QColorGroup &cg,