diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-11-14 23:46:54 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-11-14 23:46:54 -0600 |
commit | f7f497fd05150ee34a84e2eb91c8f509ee01ec93 (patch) | |
tree | 4df5e55cbdc04a5e97d5159be4dfee62d8e5f65b /kstyles/asteroid | |
parent | 189c12d0b1d3362f490f26cc0fcd3005af8b426c (diff) | |
download | tdelibs-f7f497fd05150ee34a84e2eb91c8f509ee01ec93.tar.gz tdelibs-f7f497fd05150ee34a84e2eb91c8f509ee01ec93.zip |
Update to latest style API
Diffstat (limited to 'kstyles/asteroid')
-rw-r--r-- | kstyles/asteroid/asteroid.cpp | 32 | ||||
-rw-r--r-- | kstyles/asteroid/asteroid.h | 34 |
2 files changed, 33 insertions, 33 deletions
diff --git a/kstyles/asteroid/asteroid.cpp b/kstyles/asteroid/asteroid.cpp index a14574bb0..11a06f29a 100644 --- a/kstyles/asteroid/asteroid.cpp +++ b/kstyles/asteroid/asteroid.cpp @@ -106,7 +106,7 @@ AsteroidStyle::~AsteroidStyle() * get deleted here. */ } -void AsteroidStyle::polish(TQStyleControlElementData ceData, ControlElementFlags elementFlags, void *ptr) +void AsteroidStyle::polish(const TQStyleControlElementData &ceData, ControlElementFlags elementFlags, void *ptr) { if (ceData.widgetObjectTypes.contains(TQWIDGET_OBJECT_NAME_STRING)) { TQWidget *w = reinterpret_cast<TQWidget*>(ptr); @@ -143,7 +143,7 @@ void AsteroidStyle::polish(TQStyleControlElementData ceData, ControlElementFlags } } -void AsteroidStyle::unPolish(TQStyleControlElementData ceData, ControlElementFlags elementFlags, void *ptr) +void AsteroidStyle::unPolish(const TQStyleControlElementData &ceData, ControlElementFlags elementFlags, void *ptr) { KStyle::unPolish(ceData, elementFlags, ptr); } @@ -154,7 +154,7 @@ void AsteroidStyle::unPolish(TQStyleControlElementData ceData, ControlElementFla Changes some application-wide settings */ void -AsteroidStyle::applicationPolish(TQStyleControlElementData, ControlElementFlags, void *) +AsteroidStyle::applicationPolish(const TQStyleControlElementData&, ControlElementFlags, void *) { TQPalette wp = TQApplication::palette(); wp.setColor(TQColorGroup::Dark, TQColor(128, 128, 128)); @@ -165,7 +165,7 @@ AsteroidStyle::applicationPolish(TQStyleControlElementData, ControlElementFlags, /*! \reimp */ void -AsteroidStyle::applicationUnPolish(TQStyleControlElementData, ControlElementFlags, void *) +AsteroidStyle::applicationUnPolish(const TQStyleControlElementData&, ControlElementFlags, void *) { } @@ -181,7 +181,7 @@ void AsteroidStyle::renderMenuBlendPixmap(KPixmap &pix, void AsteroidStyle::drawKStylePrimitive(KStylePrimitive ksp, TQPainter *p, - TQStyleControlElementData ceData, + const TQStyleControlElementData &ceData, ControlElementFlags elementFlags, const TQRect &r, const TQColorGroup &cg, @@ -295,7 +295,7 @@ void AsteroidStyle::drawKStylePrimitive(KStylePrimitive ksp, } int AsteroidStyle::styleHint( TQ_StyleHint stylehint, - TQStyleControlElementData ceData, + const TQStyleControlElementData &ceData, ControlElementFlags elementFlags, const TQStyleOption &option, TQStyleHintReturn* returnData, @@ -326,7 +326,7 @@ int AsteroidStyle::styleHint( TQ_StyleHint stylehint, void AsteroidStyle::drawPrimitive(TQ_PrimitiveElement pe, TQPainter *p, - TQStyleControlElementData ceData, + const TQStyleControlElementData &ceData, ControlElementFlags elementFlags, const TQRect &r, const TQColorGroup &cg, @@ -982,7 +982,7 @@ void AsteroidStyle::drawPrimitive(TQ_PrimitiveElement pe, void AsteroidStyle::drawControl(TQ_ControlElement ce, TQPainter *p, - TQStyleControlElementData ceData, + const TQStyleControlElementData &ceData, ControlElementFlags elementFlags, const TQRect &r, const TQColorGroup &cg, @@ -1723,7 +1723,7 @@ void AsteroidStyle::drawControl(TQ_ControlElement ce, void AsteroidStyle::drawControlMask(TQ_ControlElement ce, TQPainter *p, - TQStyleControlElementData ceData, + const TQStyleControlElementData &ceData, ControlElementFlags elementFlags, const TQRect &r, const TQStyleOption &o, @@ -1770,7 +1770,7 @@ void AsteroidStyle::drawControlMask(TQ_ControlElement ce, void AsteroidStyle::drawComplexControl(TQ_ComplexControl cc, TQPainter *p, - TQStyleControlElementData ceData, + const TQStyleControlElementData &ceData, ControlElementFlags elementFlags, const TQRect &r, const TQColorGroup &cg, @@ -2186,7 +2186,7 @@ void AsteroidStyle::drawComplexControl(TQ_ComplexControl cc, void AsteroidStyle::drawComplexControlMask(TQ_ComplexControl cc, TQPainter *p, - const TQStyleControlElementData ceData, + const TQStyleControlElementData &ceData, const ControlElementFlags elementFlags, const TQRect &r, const TQStyleOption &o, @@ -2209,7 +2209,7 @@ void AsteroidStyle::drawComplexControlMask(TQ_ComplexControl cc, } } -int AsteroidStyle::pixelMetric(PixelMetric pm, TQStyleControlElementData ceData, ControlElementFlags elementFlags, const TQWidget *w) const +int AsteroidStyle::pixelMetric(PixelMetric pm, const TQStyleControlElementData &ceData, ControlElementFlags elementFlags, const TQWidget *w) const { switch (pm) { /* PixelMetrics available are: @@ -2340,7 +2340,7 @@ int AsteroidStyle::pixelMetric(PixelMetric pm, TQStyleControlElementData ceData, } } -TQRect AsteroidStyle::subRect(SubRect sr, const TQStyleControlElementData ceData, const ControlElementFlags elementFlags, const TQWidget *w) const +TQRect AsteroidStyle::subRect(SubRect sr, const TQStyleControlElementData &ceData, const ControlElementFlags elementFlags, const TQWidget *w) const { switch (sr) { /* SubRects to calculate are: @@ -2385,7 +2385,7 @@ TQRect AsteroidStyle::subRect(SubRect sr, const TQStyleControlElementData ceData } TQRect AsteroidStyle::querySubControlMetrics(TQ_ComplexControl cc, - TQStyleControlElementData ceData, + const TQStyleControlElementData &ceData, ControlElementFlags elementFlags, SubControl sc, const TQStyleOption &o, @@ -2488,7 +2488,7 @@ TQRect AsteroidStyle::querySubControlMetrics(TQ_ComplexControl cc, } TQSize AsteroidStyle::sizeFromContents(ContentsType ct, - TQStyleControlElementData ceData, + const TQStyleControlElementData &ceData, ControlElementFlags elementFlags, const TQSize &s, const TQStyleOption &o, @@ -2624,7 +2624,7 @@ void AsteroidStyle::paletteChanged() { } -bool AsteroidStyle::objectEventHandler( TQStyleControlElementData ceData, ControlElementFlags elementFlags, void* source, TQEvent *e ) +bool AsteroidStyle::objectEventHandler( const TQStyleControlElementData &ceData, ControlElementFlags elementFlags, void* source, TQEvent *e ) { /* Win2K has this interesting behaviour where it sets the current default button to whatever pushbutton the user presses the mouse diff --git a/kstyles/asteroid/asteroid.h b/kstyles/asteroid/asteroid.h index d6b05e8ae..7bd652a12 100644 --- a/kstyles/asteroid/asteroid.h +++ b/kstyles/asteroid/asteroid.h @@ -17,10 +17,10 @@ public: AsteroidStyle(); virtual ~AsteroidStyle(); - void polish(TQStyleControlElementData ceData, ControlElementFlags elementFlags, void *); - void unPolish(TQStyleControlElementData ceData, ControlElementFlags elementFlags, void *); - void applicationPolish(TQStyleControlElementData ceData, ControlElementFlags elementFlags, void *); - void applicationUnPolish(TQStyleControlElementData ceData, ControlElementFlags elementFlags, void *); + void polish(const TQStyleControlElementData &ceData, ControlElementFlags elementFlags, void *); + void unPolish(const TQStyleControlElementData &ceData, ControlElementFlags elementFlags, void *); + void applicationPolish(const TQStyleControlElementData &ceData, ControlElementFlags elementFlags, void *); + void applicationUnPolish(const TQStyleControlElementData &ceData, ControlElementFlags elementFlags, void *); void renderSliderHandle(TQPainter *p, @@ -36,7 +36,7 @@ public: void drawKStylePrimitive(KStylePrimitive, TQPainter *, - TQStyleControlElementData ceData, + const TQStyleControlElementData &ceData, ControlElementFlags elementFlags, const TQRect &, const TQColorGroup &, @@ -44,14 +44,14 @@ public: const TQStyleOption & = TQStyleOption::Default, const TQWidget * = 0) const; - int styleHint(TQ_StyleHint, TQStyleControlElementData ceData, ControlElementFlags elementFlags, + int styleHint(TQ_StyleHint, const TQStyleControlElementData &ceData, ControlElementFlags elementFlags, const TQStyleOption & = TQStyleOption::Default, TQStyleHintReturn * = 0, const TQWidget * = 0 ) const; void drawPrimitive(TQ_PrimitiveElement, TQPainter *, - TQStyleControlElementData ceData, + const TQStyleControlElementData &ceData, ControlElementFlags elementFlags, const TQRect &, const TQColorGroup &, @@ -60,7 +60,7 @@ public: void drawControl(TQ_ControlElement, TQPainter *, - TQStyleControlElementData ceData, + const TQStyleControlElementData &ceData, ControlElementFlags elementFlags, const TQRect &, const TQColorGroup &, @@ -70,7 +70,7 @@ public: void drawControlMask(TQ_ControlElement, TQPainter *, - TQStyleControlElementData ceData, + const TQStyleControlElementData &ceData, ControlElementFlags elementFlags, const TQRect &, const TQStyleOption &, @@ -78,7 +78,7 @@ public: void drawComplexControl(TQ_ComplexControl, TQPainter *, - TQStyleControlElementData ceData, + const TQStyleControlElementData &ceData, ControlElementFlags elementFlags, const TQRect &, const TQColorGroup &, @@ -90,33 +90,33 @@ public: void drawComplexControlMask(TQ_ComplexControl, TQPainter *, - const TQStyleControlElementData ceData, + const TQStyleControlElementData &ceData, const ControlElementFlags elementFlags, const TQRect &r, const TQStyleOption & = TQStyleOption::Default, const TQWidget * = 0) const; - int pixelMetric(PixelMetric, TQStyleControlElementData ceData, ControlElementFlags elementFlags, const TQWidget * = 0) const; + int pixelMetric(PixelMetric, const TQStyleControlElementData &ceData, ControlElementFlags elementFlags, const TQWidget * = 0) const; - int kPixelMetric( KStylePixelMetric kpm, TQStyleControlElementData ceData, ControlElementFlags elementFlags, const TQWidget* /* widget */) const; + int kPixelMetric( KStylePixelMetric kpm, const TQStyleControlElementData &ceData, ControlElementFlags elementFlags, const TQWidget* /* widget */) const; - TQRect subRect(SubRect, const TQStyleControlElementData ceData, const ControlElementFlags elementFlags, const TQWidget *) const; + TQRect subRect(SubRect, const TQStyleControlElementData &ceData, const ControlElementFlags elementFlags, const TQWidget *) const; TQRect querySubControlMetrics(TQ_ComplexControl, - TQStyleControlElementData ceData, + const TQStyleControlElementData &ceData, ControlElementFlags elementFlags, SubControl, const TQStyleOption & = TQStyleOption::Default, const TQWidget * = 0) const; TQSize sizeFromContents(ContentsType, - TQStyleControlElementData ceData, + const TQStyleControlElementData &ceData, ControlElementFlags elementFlags, const TQSize &, const TQStyleOption &, const TQWidget * = 0) const; - virtual bool objectEventHandler( TQStyleControlElementData ceData, ControlElementFlags elementFlags, void* source, TQEvent *e ); + virtual bool objectEventHandler( const TQStyleControlElementData &ceData, ControlElementFlags elementFlags, void* source, TQEvent *e ); protected slots: void paletteChanged(); |