diff options
author | Timothy Pearson <[email protected]> | 2012-11-14 23:45:27 -0600 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2012-11-14 23:45:27 -0600 |
commit | 5e04c37a6ce7a090adb9e6ea02a04761dea8a33e (patch) | |
tree | b361ace08a667135125ac6bf00c82452b61c23d5 /src/styles/qmotifstyle.h | |
parent | 30c5994817cb87f4a291eec0bc6eaec485eefb15 (diff) | |
download | qt3-5e04c37a6ce7a090adb9e6ea02a04761dea8a33e.tar.gz qt3-5e04c37a6ce7a090adb9e6ea02a04761dea8a33e.zip |
Increase style method call speed
This breaks the style ABI
Diffstat (limited to 'src/styles/qmotifstyle.h')
-rw-r--r-- | src/styles/qmotifstyle.h | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/styles/qmotifstyle.h b/src/styles/qmotifstyle.h index 31ec525..31541f6 100644 --- a/src/styles/qmotifstyle.h +++ b/src/styles/qmotifstyle.h @@ -67,15 +67,15 @@ public: bool useHighlightColors() const; void polish( QPalette& ); - void polish( QStyleControlElementData ceData, ControlElementFlags elementFlags, void * ); - void applicationPolish( QStyleControlElementData ceData, ControlElementFlags elementFlags, void * ); + void polish( const QStyleControlElementData &ceData, ControlElementFlags elementFlags, void * ); + void applicationPolish( const QStyleControlElementData &ceData, ControlElementFlags elementFlags, void * ); - void polishPopupMenu( QStyleControlElementData ceData, ControlElementFlags elementFlags, void * ); + void polishPopupMenu( const QStyleControlElementData &ceData, ControlElementFlags elementFlags, void * ); // new style API void drawPrimitive( PrimitiveElement pe, QPainter *p, - QStyleControlElementData ceData, + const QStyleControlElementData &ceData, ControlElementFlags elementFlags, const QRect &r, const QColorGroup &cg, @@ -84,7 +84,7 @@ public: void drawControl( ControlElement element, QPainter *p, - QStyleControlElementData ceData, + const QStyleControlElementData &ceData, ControlElementFlags elementFlags, const QRect &r, const QColorGroup &cg, @@ -94,7 +94,7 @@ public: void drawComplexControl( ComplexControl control, QPainter *p, - QStyleControlElementData ceData, + const QStyleControlElementData &ceData, ControlElementFlags elementFlags, const QRect& r, const QColorGroup& cg, @@ -109,26 +109,26 @@ 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; QSize sizeFromContents( ContentsType contents, - QStyleControlElementData ceData, + const QStyleControlElementData &ceData, ControlElementFlags elementFlags, const QSize &contentsSize, const QStyleOption& = QStyleOption::Default, 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; - QPixmap stylePixmap(StylePixmap, QStyleControlElementData ceData, ControlElementFlags elementFlags, const QStyleOption& = QStyleOption::Default, const QWidget * = 0) const; + QPixmap stylePixmap(StylePixmap, const QStyleControlElementData &ceData, ControlElementFlags elementFlags, const QStyleOption& = QStyleOption::Default, const QWidget * = 0) const; - int styleHint(StyleHint sh, QStyleControlElementData ceData, ControlElementFlags elementFlags, const QStyleOption & = QStyleOption::Default, + int styleHint(StyleHint sh, const QStyleControlElementData &ceData, ControlElementFlags elementFlags, const QStyleOption & = QStyleOption::Default, QStyleHintReturn* = 0, const QWidget * = 0) const; private: |