summaryrefslogtreecommitdiffstats
path: root/tdefx/kstyle.h
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2012-08-05 01:02:07 -0500
committerTimothy Pearson <[email protected]>2012-08-05 01:02:07 -0500
commit2ba2bd6da04b86d32ce1d3a3680a00810938cf9c (patch)
treef1134ea213a90d50b465a9dbf38bafc63445e470 /tdefx/kstyle.h
parente9f29cfb2a76657f150ec585fa6775f372d7e460 (diff)
downloadtdelibs-2ba2bd6da04b86d32ce1d3a3680a00810938cf9c.tar.gz
tdelibs-2ba2bd6da04b86d32ce1d3a3680a00810938cf9c.zip
Update to new style API
Diffstat (limited to 'tdefx/kstyle.h')
-rw-r--r--tdefx/kstyle.h66
1 files changed, 48 insertions, 18 deletions
diff --git a/tdefx/kstyle.h b/tdefx/kstyle.h
index 75cdc32ff..3d127d048 100644
--- a/tdefx/kstyle.h
+++ b/tdefx/kstyle.h
@@ -237,6 +237,19 @@ class TDEFX_EXPORT KStyle: public TQCommonStyle
KPE_ListViewBranch
};
+ // Old API
+ // DEPRECATED
+#ifdef MARK_OLD_VIRTUAL_STYLE_API_CALLS_DEPRECATED
+ __attribute__ ((deprecated))
+#endif
+ virtual void drawKStylePrimitive( KStylePrimitive kpe,
+ TQPainter* p,
+ const TQWidget* widget,
+ const TQRect &r,
+ const TQColorGroup &cg,
+ SFlags flags = Style_Default,
+ const TQStyleOption& = TQStyleOption::SO_Default ) const;
+
/**
* This function is identical to Qt's TQStyle::tqdrawPrimitive(), except that
* it adds one further parameter, 'widget', that can be used to determine
@@ -248,11 +261,13 @@ class TDEFX_EXPORT KStyle: public TQCommonStyle
*/
virtual void drawKStylePrimitive( KStylePrimitive kpe,
TQPainter* p,
- const TQWidget* widget,
+ TQStyleControlElementData ceData,
+ ControlElementFlags elementFlags,
const TQRect &r,
const TQColorGroup &cg,
SFlags flags = Style_Default,
- const TQStyleOption& = TQStyleOption::SO_Default ) const;
+ const TQStyleOption& = TQStyleOption::SO_Default,
+ const TQWidget* widget = 0 ) const;
enum KStylePixelMetric {
@@ -277,6 +292,8 @@ class TDEFX_EXPORT KStyle: public TQCommonStyle
void tqdrawPrimitive( TQ_PrimitiveElement pe,
TQPainter* p,
+ TQStyleControlElementData ceData,
+ ControlElementFlags elementFlags,
const TQRect &r,
const TQColorGroup &cg,
SFlags flags = Style_Default,
@@ -286,6 +303,8 @@ class TDEFX_EXPORT KStyle: public TQCommonStyle
// void tqdrawPrimitive( TQ_ControlElement pe,
// TQPainter* p,
+// TQStyleControlElementData ceData,
+// ControlElementFlags elementFlags,
// const TQRect &r,
// const TQColorGroup &cg,
// SFlags flags = Style_Default,
@@ -295,46 +314,57 @@ class TDEFX_EXPORT KStyle: public TQCommonStyle
void drawControl( TQ_ControlElement element,
TQPainter* p,
- const TQWidget* widget,
+ TQStyleControlElementData ceData,
+ ControlElementFlags elementFlags,
const TQRect &r,
const TQColorGroup &cg,
SFlags flags = Style_Default,
- const TQStyleOption& = TQStyleOption::SO_Default ) const;
+ const TQStyleOption& = TQStyleOption::SO_Default,
+ const TQWidget* widget = 0 ) const;
void drawComplexControl( TQ_ComplexControl control,
TQPainter *p,
- const TQWidget* widget,
+ TQStyleControlElementData ceData,
+ ControlElementFlags elementFlags,
const TQRect &r,
const TQColorGroup &cg,
SFlags flags = Style_Default,
SCFlags controls = SC_All,
SCFlags active = SC_None,
- const TQStyleOption& = TQStyleOption::SO_Default ) const;
+ const TQStyleOption& = TQStyleOption::SO_Default,
+ const TQWidget* widget = 0 ) const;
SubControl querySubControl( TQ_ComplexControl control,
- const TQWidget* widget,
+ TQStyleControlElementData ceData,
+ ControlElementFlags elementFlags,
const TQPoint &pos,
- const TQStyleOption& = TQStyleOption::SO_Default ) const;
+ const TQStyleOption& = TQStyleOption::SO_Default,
+ const TQWidget* widget = 0 ) const;
TQRect querySubControlMetrics( TQ_ComplexControl control,
- const TQWidget* widget,
+ TQStyleControlElementData ceData,
+ ControlElementFlags elementFlags,
SubControl sc,
- const TQStyleOption& = TQStyleOption::SO_Default ) const;
+ const TQStyleOption& = TQStyleOption::SO_Default,
+ const TQWidget* widget = 0 ) const;
- int pixelMetric( PixelMetric m,
+ int pixelMetric( PixelMetric m, TQStyleControlElementData ceData, ControlElementFlags elementFlags,
const TQWidget* widget = 0 ) const;
- TQRect subRect( SubRect r,
- const TQWidget* widget ) const;
+ TQRect subRect( SubRect r, const TQStyleControlElementData ceData, const ControlElementFlags elementFlags,
+ const TQWidget* widget = 0 ) const;
TQPixmap stylePixmap( StylePixmap stylepixmap,
- const TQWidget* widget = 0,
- const TQStyleOption& = TQStyleOption::SO_Default ) const;
+ TQStyleControlElementData ceData,
+ ControlElementFlags elementFlags,
+ const TQStyleOption& = TQStyleOption::SO_Default,
+ const TQWidget* widget = 0 ) const;
- int styleHint( TQ_StyleHint sh,
- const TQWidget* w = 0,
+ int styleHint( TQ_StyleHint sh, TQStyleControlElementData ceData,
+ ControlElementFlags elementFlags,
const TQStyleOption &opt = TQStyleOption::SO_Default,
- TQStyleHintReturn* shr = 0 ) const;
+ TQStyleHintReturn* shr = 0,
+ const TQWidget* w = 0 ) const;
protected:
bool eventFilter( TQObject* object, TQEvent* event );