diff options
Diffstat (limited to 'scheck/scheck.h')
-rw-r--r-- | scheck/scheck.h | 110 |
1 files changed, 55 insertions, 55 deletions
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 <qbitmap.h> -#include <qheader.h> -#include <qintdict.h> -#include <qvaluevector.h> -#include <qguardedptr.h> +#include <tqbitmap.h> +#include <tqheader.h> +#include <tqintdict.h> +#include <tqvaluevector.h> +#include <tqguardedptr.h> #include <kdrawutil.h> #include <kpixmap.h> @@ -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<QGuardedPtr<QWidget> > watched; - QValueVector<QString> watchedTitles; + TQString cleanErrorMarkers(TQString in); + TQValueVector<TQGuardedPtr<TQWidget> > watched; + TQValueVector<TQString> 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; |