Update for new style API

pull/1/head
Timothy Pearson 12 years ago
parent 3ac6ea31fc
commit 5a8d0deed8

@ -86,19 +86,22 @@ public:
KPM_ListViewBranchThickness KPM_ListViewBranchThickness
}; };
int kPixelMetric (KStyle::KStylePixelMetric, const TQWidget* = 0) const; int kPixelMetric( KStylePixelMetric kpm, TQStyleControlElementData ceData, ControlElementFlags elementFlags, const TQWidget* widget = 0 ) const;
void polish (TQWidget*); void polish( TQStyleControlElementData ceData, ControlElementFlags elementFlags, void * );
void unPolish (TQWidget*); void unPolish( TQStyleControlElementData ceData, ControlElementFlags elementFlags, void * );
void polishPopupMenu (TQPopupMenu*); void polishPopupMenu( TQStyleControlElementData ceData, ControlElementFlags elementFlags, void *ptr );
void drawPrimitive (PrimitiveElement, TQPainter*, const TQRect&, const TQColorGroup&, SFlags = Style_Default , const TQStyleOption& = TQStyleOption (TQStyleOption ::Default )) const; void drawPrimitive( PrimitiveElement, TQPainter*, TQStyleControlElementData, ControlElementFlags, const TQRect&, const TQColorGroup&, SFlags = Style_Default, const TQStyleOption& = TQStyleOption::SO_Default ) const;
void drawControl (ControlElement, TQPainter*, const TQWidget*, const TQRect&, const TQColorGroup&, SFlags = Style_Default , const TQStyleOption& = TQStyleOption (TQStyleOption ::Default )) const; void drawControl( ControlElement, TQPainter*, TQStyleControlElementData, ControlElementFlags, const TQRect&, const TQColorGroup&, SFlags = Style_Default, const TQStyleOption& = TQStyleOption::SO_Default, const TQWidget* = 0 ) const;
void drawComplexControl (ComplexControl, TQPainter*, const TQWidget*, const TQRect&, const TQColorGroup&, SFlags = Style_Default , SCFlags = SC_All , SCFlags = SC_None , const TQStyleOption& = TQStyleOption (TQStyleOption ::Default )) const; void drawComplexControl( ComplexControl, TQPainter*, TQStyleControlElementData, ControlElementFlags, const TQRect&, const TQColorGroup&, SFlags = Style_Default, SCFlags = SC_All, SCFlags = SC_None, const TQStyleOption& = TQStyleOption::SO_Default, const TQWidget* = 0 ) const;
SubControl querySubControl (ComplexControl, const TQWidget*, const TQPoint&, const TQStyleOption& = TQStyleOption (TQStyleOption ::Default )) const; SubControl querySubControl( ComplexControl, TQStyleControlElementData, ControlElementFlags, const TQPoint&, const TQStyleOption& = TQStyleOption::SO_Default, const TQWidget* = 0 ) const;
TQRect querySubControlMetrics (ComplexControl, const TQWidget*, SubControl, const TQStyleOption& = TQStyleOption (TQStyleOption ::Default )) const; TQRect querySubControlMetrics( ComplexControl, TQStyleControlElementData, ControlElementFlags, SubControl, const TQStyleOption& = TQStyleOption::SO_Default, const TQWidget* = 0 ) const;
int pixelMetric (PixelMetric, const TQWidget* = 0) const; int pixelMetric( PixelMetric, TQStyleControlElementData, ControlElementFlags, const TQWidget* = 0 ) const;
TQRect subRect (SubRect, const TQWidget*) const; TQRect subRect( SubRect, const TQStyleControlElementData, const ControlElementFlags, const TQWidget* = 0 ) const;
TQPixmap stylePixmap (StylePixmap, const TQWidget* = 0, const TQStyleOption& = TQStyleOption (TQStyleOption ::Default )) const; TQPixmap stylePixmap( StylePixmap, TQStyleControlElementData, ControlElementFlags, const TQStyleOption& = TQStyleOption::SO_Default, const TQWidget* = 0 ) const;
int styleHint (StyleHint, const TQWidget* = 0, const TQStyleOption& = TQStyleOption (TQStyleOption ::Default ), TQStyleHintReturn* = 0) const; int styleHint( StyleHint, TQStyleControlElementData, ControlElementFlags, const TQStyleOption& = TQStyleOption::SO_Default, TQStyleHintReturn* = 0, const TQWidget* = 0 ) const;
// New API
virtual void drawKStylePrimitive( KStylePrimitive, TQPainter*, TQStyleControlElementData, ControlElementFlags, const TQRect&, const TQColorGroup&, SFlags = Style_Default, const TQStyleOption& = TQStyleOption::SO_Default, const TQWidget* = 0 ) const;
protected: protected:
bool eventFilter (TQObject*, TQEvent*); bool eventFilter (TQObject*, TQEvent*);

Loading…
Cancel
Save