From 4ae0c208b66e0f7954e194384464fe2d0a2c56dd Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:51:49 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdesdk@1157652 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- scheck/scheck.h | 110 ++++++++++++++++++++++++++++---------------------------- 1 file changed, 55 insertions(+), 55 deletions(-) (limited to 'scheck/scheck.h') diff --git a/scheck/scheck.h b/scheck/scheck.h index 303a8f22..e25104dc 100644 --- a/scheck/scheck.h +++ b/scheck/scheck.h @@ -38,11 +38,11 @@ #ifndef STYLE_CHECK_H #define STYLE_CHECK_H -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include #include #include @@ -57,13 +57,13 @@ class StyleCheckTitleWatcher: public QObject public: StyleCheckTitleWatcher(); - void addWatched(QWidget* w); + void addWatched(TQWidget* w); public slots: void slotCheck(); private: - QString cleanErrorMarkers(QString in); - QValueVector > watched; - QValueVector watchedTitles; + TQString cleanErrorMarkers(TQString in); + TQValueVector > watched; + TQValueVector watchedTitles; }; class StyleCheckStyle : public KStyle @@ -74,91 +74,91 @@ class StyleCheckStyle : public KStyle StyleCheckStyle( ); virtual ~StyleCheckStyle(); - void polish( QWidget* widget ); - void unPolish( QWidget* widget ); + void polish( TQWidget* widget ); + void unPolish( TQWidget* widget ); void drawKStylePrimitive( KStylePrimitive kpe, - QPainter* p, - const QWidget* widget, - const QRect &r, - const QColorGroup &cg, + TQPainter* p, + const TQWidget* widget, + const TQRect &r, + const TQColorGroup &cg, SFlags flags = Style_Default, - const QStyleOption& = QStyleOption::Default ) const; + const TQStyleOption& = TQStyleOption::Default ) const; void drawPrimitive( PrimitiveElement pe, - QPainter* p, - const QRect &r, - const QColorGroup &cg, + TQPainter* p, + const TQRect &r, + const TQColorGroup &cg, SFlags flags = Style_Default, - const QStyleOption& = QStyleOption::Default ) const; + const TQStyleOption& = TQStyleOption::Default ) const; void drawControl( ControlElement element, - QPainter *p, - const QWidget *widget, - const QRect &r, - const QColorGroup &cg, + TQPainter *p, + const TQWidget *widget, + const TQRect &r, + const TQColorGroup &cg, SFlags flags = Style_Default, - const QStyleOption& = QStyleOption::Default ) const; + const TQStyleOption& = TQStyleOption::Default ) const; void drawControlMask( ControlElement element, - QPainter *p, - const QWidget *widget, - const QRect &r, - const QStyleOption& = QStyleOption::Default ) const; + TQPainter *p, + const TQWidget *widget, + const TQRect &r, + const TQStyleOption& = TQStyleOption::Default ) const; void drawComplexControl( ComplexControl control, - QPainter *p, - const QWidget *widget, - const QRect &r, - const QColorGroup &cg, + TQPainter *p, + const TQWidget *widget, + const TQRect &r, + const TQColorGroup &cg, SFlags flags = Style_Default, SCFlags controls = SC_All, SCFlags active = SC_None, - const QStyleOption& = QStyleOption::Default ) const; + const TQStyleOption& = TQStyleOption::Default ) const; void drawComplexControlMask( ComplexControl control, - QPainter *p, - const QWidget *widget, - const QRect &r, - const QStyleOption& = QStyleOption::Default ) const; + TQPainter *p, + const TQWidget *widget, + const TQRect &r, + const TQStyleOption& = TQStyleOption::Default ) const; int pixelMetric( PixelMetric m, - const QWidget *widget = 0 ) const; + const TQWidget *widget = 0 ) const; - QSize sizeFromContents( ContentsType contents, - const QWidget *widget, - const QSize &contentSize, - const QStyleOption& opt ) const; + TQSize sizeFromContents( ContentsType contents, + const TQWidget *widget, + const TQSize &contentSize, + const TQStyleOption& opt ) const; - QRect subRect( SubRect r, - const QWidget *widget ) const; + TQRect subRect( SubRect r, + const TQWidget *widget ) const; // Fix Qt3's wacky image positions - QPixmap stylePixmap( StylePixmap stylepixmap, - const QWidget *widget = 0, - const QStyleOption& = QStyleOption::Default ) const; + TQPixmap stylePixmap( StylePixmap stylepixmap, + const TQWidget *widget = 0, + const TQStyleOption& = TQStyleOption::Default ) const; protected: - bool eventFilter( QObject *object, QEvent *event ); + bool eventFilter( TQObject *object, TQEvent *event ); - void renderGradient( QPainter* p, - const QRect& r, - QColor clr, + void renderGradient( TQPainter* p, + const TQRect& r, + TQColor clr, bool horizontal, int px=0, int py=0, int pwidth=-1, int pheight=-1 ) const; - QTimer *topLevelAccelManageTimer; - QWidget *hoverWidget; + TQTimer *topLevelAccelManageTimer; + TQWidget *hoverWidget; private slots: void slotAccelManage(); private: - void accelManageRecursive(QWidget* widget); + void accelManageRecursive(TQWidget* widget); StyleCheckTitleWatcher* watcher; -- cgit v1.2.1