diff options
author | Timothy Pearson <[email protected]> | 2012-08-05 01:00:53 -0500 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2012-08-05 01:00:53 -0500 |
commit | 0008bc5bcd95694b38b0d0322aac2ea6fdb21298 (patch) | |
tree | e36a2a63a9784451af847fc952b281969cb8c0c0 /src/styles/qcdestyle.h | |
parent | ebcb1d80bf517aceb69778e1e9f67e5f4da8c484 (diff) | |
download | qt3-0008bc5bcd95694b38b0d0322aac2ea6fdb21298.tar.gz qt3-0008bc5bcd95694b38b0d0322aac2ea6fdb21298.zip |
Update style API to function without an active widget object
Diffstat (limited to 'src/styles/qcdestyle.h')
-rw-r--r-- | src/styles/qcdestyle.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/styles/qcdestyle.h b/src/styles/qcdestyle.h index a94f620..3dee332 100644 --- a/src/styles/qcdestyle.h +++ b/src/styles/qcdestyle.h @@ -62,18 +62,22 @@ public: QCDEStyle( bool useHighlightCols = FALSE ); virtual ~QCDEStyle(); - int pixelMetric( PixelMetric metric, const QWidget *widget = 0 ) const; + int pixelMetric( PixelMetric metric, QStyleControlElementData ceData, ControlElementFlags elementFlags, const QWidget *widget = 0 ) const; 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 drawPrimitive( PrimitiveElement pe, QPainter *p, + QStyleControlElementData ceData, + ControlElementFlags elementFlags, const QRect &r, const QColorGroup &cg, SFlags flags = Style_Default, |