summaryrefslogtreecommitdiffstats
path: root/kstyles/asteroid/asteroid.h
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-08-05 01:02:07 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-08-05 01:02:07 -0500
commit2ba2bd6da04b86d32ce1d3a3680a00810938cf9c (patch)
treef1134ea213a90d50b465a9dbf38bafc63445e470 /kstyles/asteroid/asteroid.h
parente9f29cfb2a76657f150ec585fa6775f372d7e460 (diff)
downloadtdelibs-2ba2bd6da04b86d32ce1d3a3680a00810938cf9c.tar.gz
tdelibs-2ba2bd6da04b86d32ce1d3a3680a00810938cf9c.zip
Update to new style API
Diffstat (limited to 'kstyles/asteroid/asteroid.h')
-rw-r--r--kstyles/asteroid/asteroid.h57
1 files changed, 37 insertions, 20 deletions
diff --git a/kstyles/asteroid/asteroid.h b/kstyles/asteroid/asteroid.h
index cbffa7112..9b8450084 100644
--- a/kstyles/asteroid/asteroid.h
+++ b/kstyles/asteroid/asteroid.h
@@ -36,18 +36,23 @@ public:
void drawKStylePrimitive(KStylePrimitive,
TQPainter *,
- const TQWidget *,
+ TQStyleControlElementData ceData,
+ ControlElementFlags elementFlags,
const TQRect &,
const TQColorGroup &,
SFlags = Style_Default,
- const TQStyleOption & = TQStyleOption::Default) const;
+ const TQStyleOption & = TQStyleOption::Default,
+ const TQWidget * = 0) const;
- int styleHint(TQ_StyleHint, const TQWidget * = 0,
+ int styleHint(TQ_StyleHint, TQStyleControlElementData ceData, ControlElementFlags elementFlags,
const TQStyleOption & = TQStyleOption::Default,
- TQStyleHintReturn * = 0 ) const;
+ TQStyleHintReturn * = 0,
+ const TQWidget * = 0 ) const;
- void tqdrawPrimitive(TQ_PrimitiveElement,
+ void drawPrimitive(TQ_PrimitiveElement,
TQPainter *,
+ TQStyleControlElementData ceData,
+ ControlElementFlags elementFlags,
const TQRect &,
const TQColorGroup &,
SFlags = Style_Default,
@@ -55,49 +60,61 @@ public:
void drawControl(TQ_ControlElement,
TQPainter *,
- const TQWidget *,
+ TQStyleControlElementData ceData,
+ ControlElementFlags elementFlags,
const TQRect &,
const TQColorGroup &,
SFlags = Style_Default,
- const TQStyleOption & = TQStyleOption::Default) const;
+ const TQStyleOption & = TQStyleOption::Default,
+ const TQWidget * = 0) const;
void drawControlMask(TQ_ControlElement,
TQPainter *,
- const TQWidget *,
+ TQStyleControlElementData ceData,
+ ControlElementFlags elementFlags,
const TQRect &,
- const TQStyleOption &) const;
+ const TQStyleOption &,
+ const TQWidget * = 0) const;
void drawComplexControl(TQ_ComplexControl,
TQPainter *,
- const TQWidget *,
+ TQStyleControlElementData ceData,
+ ControlElementFlags elementFlags,
const TQRect &,
const TQColorGroup &,
SFlags = Style_Default,
SCFlags controls = SC_All,
SCFlags active = SC_None,
- const TQStyleOption & = TQStyleOption::Default) const;
+ const TQStyleOption & = TQStyleOption::Default,
+ const TQWidget * = 0) const;
void drawComplexControlMask(TQ_ComplexControl,
TQPainter *,
- const TQWidget *,
+ const TQStyleControlElementData ceData,
+ const ControlElementFlags elementFlags,
const TQRect &r,
- const TQStyleOption & = TQStyleOption::Default) const;
+ const TQStyleOption & = TQStyleOption::Default,
+ const TQWidget * = 0) const;
- int pixelMetric(PixelMetric, const TQWidget * = 0) const;
+ int pixelMetric(PixelMetric, TQStyleControlElementData ceData, ControlElementFlags elementFlags, const TQWidget * = 0) const;
int kPixelMetric( KStylePixelMetric kpm, const TQWidget* /* widget */) const;
- TQRect subRect(SubRect, const TQWidget *) const;
+ TQRect subRect(SubRect, const TQStyleControlElementData ceData, const ControlElementFlags elementFlags, const TQWidget *) const;
TQRect querySubControlMetrics(TQ_ComplexControl,
- const TQWidget *,
+ TQStyleControlElementData ceData,
+ ControlElementFlags elementFlags,
SubControl,
- const TQStyleOption & = TQStyleOption::Default) const;
+ const TQStyleOption & = TQStyleOption::Default,
+ const TQWidget * = 0) const;
- TQSize tqsizeFromContents(ContentsType,
- const TQWidget *,
+ TQSize sizeFromContents(ContentsType,
+ TQStyleControlElementData ceData,
+ ControlElementFlags elementFlags,
const TQSize &,
- const TQStyleOption &) const;
+ const TQStyleOption &,
+ const TQWidget * = 0) const;
protected:
bool eventFilter(TQObject *, TQEvent *);