summaryrefslogtreecommitdiffstats
path: root/src/styles/qsgistyle.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/styles/qsgistyle.h')
-rw-r--r--src/styles/qsgistyle.h41
1 files changed, 25 insertions, 16 deletions
diff --git a/src/styles/qsgistyle.h b/src/styles/qsgistyle.h
index addb7d7..0afacd6 100644
--- a/src/styles/qsgistyle.h
+++ b/src/styles/qsgistyle.h
@@ -67,13 +67,15 @@ public:
#if !defined(Q_NO_USING_KEYWORD)
using QMotifStyle::polish;
#endif
- void polish( QWidget* );
- void unPolish( QWidget* );
- void polish( QApplication* );
- void unPolish( QApplication* );
+ void polish( QStyleControlElementData ceData, ControlElementFlags elementFlags, void * );
+ void unPolish( QStyleControlElementData ceData, ControlElementFlags elementFlags, void * );
+ void applicationPolish( QStyleControlElementData ceData, ControlElementFlags elementFlags, void * );
+ void applicationUnPolish( QStyleControlElementData ceData, ControlElementFlags elementFlags, void * );
void drawPrimitive( PrimitiveElement pe,
QPainter *p,
+ QStyleControlElementData ceData,
+ ControlElementFlags elementFlags,
const QRect &r,
const QColorGroup &cg,
SFlags flags = Style_Default,
@@ -81,15 +83,18 @@ public:
void drawControl( ControlElement element,
QPainter *p,
- const QWidget *widget,
+ QStyleControlElementData ceData,
+ ControlElementFlags elementFlags,
const QRect &r,
const QColorGroup &cg,
SFlags how = Style_Default,
- const QStyleOption& = QStyleOption::Default ) const;
+ const QStyleOption& = QStyleOption::Default,
+ const QWidget *widget = 0 ) const;
void drawComplexControl( ComplexControl control,
QPainter *p,
- const QWidget* widget,
+ QStyleControlElementData ceData,
+ ControlElementFlags elementFlags,
const QRect& r,
const QColorGroup& cg,
SFlags how = Style_Default,
@@ -99,23 +104,27 @@ public:
SCFlags sub = (uint)SC_All,
#endif
SCFlags subActive = SC_None,
- const QStyleOption& = QStyleOption::Default ) const;
+ const QStyleOption& = QStyleOption::Default,
+ const QWidget* widget = 0 ) const;
- int pixelMetric( PixelMetric metric, const QWidget *widget = 0 ) const;
+ int pixelMetric( PixelMetric metric, QStyleControlElementData ceData, ControlElementFlags elementFlags, const QWidget *widget = 0 ) const;
QSize sizeFromContents( ContentsType contents,
- const QWidget *widget,
+ QStyleControlElementData ceData,
+ ControlElementFlags elementFlags,
const QSize &contentsSize,
- const QStyleOption& = QStyleOption::Default ) const;
+ const QStyleOption& = QStyleOption::Default,
+ const QWidget *widget = 0 ) const;
- QRect subRect( SubRect r, const QWidget *widget ) const;
+ QRect subRect( SubRect r, QStyleControlElementData ceData, ControlElementFlags elementFlags, const QWidget *widget ) const;
QRect querySubControlMetrics( ComplexControl control,
- const QWidget *widget,
+ QStyleControlElementData ceData,
+ ControlElementFlags elementFlags,
SubControl sc,
- const QStyleOption& = QStyleOption::Default ) const;
+ const QStyleOption& = QStyleOption::Default,
+ const QWidget *widget = 0 ) const;
-protected:
- bool eventFilter( QObject*, QEvent*);
+ bool objectEventHandler( QStyleControlElementData ceData, ControlElementFlags elementFlags, void* source, QEvent *e );
private:
QSGIStylePrivate *d;