diff options
Diffstat (limited to 'krita/ui/kis_ruler.h')
-rw-r--r-- | krita/ui/kis_ruler.h | 39 |
1 files changed, 20 insertions, 19 deletions
diff --git a/krita/ui/kis_ruler.h b/krita/ui/kis_ruler.h index 51153912..e93f2783 100644 --- a/krita/ui/kis_ruler.h +++ b/krita/ui/kis_ruler.h @@ -20,8 +20,8 @@ #ifndef KIS_RULER_H_ #define KIS_RULER_H_ -#include <qframe.h> -#include <qpixmap.h> +#include <tqframe.h> +#include <tqpixmap.h> #include <KoUnit.h> // XXX: Make this look more like the KOffice ruler -- the KOffice @@ -30,14 +30,15 @@ #define RULER_THICKNESS 20 -class QPainter; +class TQPainter; -class KisRuler : public QFrame { +class KisRuler : public TQFrame { Q_OBJECT - typedef QFrame super; + TQ_OBJECT + typedef TQFrame super; public: - KisRuler(Qt::Orientation, QWidget *parent = 0, const char *name = 0); + KisRuler(Qt::Orientation, TQWidget *tqparent = 0, const char *name = 0); virtual ~KisRuler(); public: @@ -45,31 +46,31 @@ public: public slots: void setZoom(double zoom); - void updatePointer(Q_INT32 x, Q_INT32 y); - void updateVisibleArea(Q_INT32 xpos, Q_INT32 ypos); + void updatePointer(TQ_INT32 x, TQ_INT32 y); + void updateVisibleArea(TQ_INT32 xpos, TQ_INT32 ypos); void setUnit(KoUnit::Unit u); void hide(); void show(); protected: - virtual void paintEvent(QPaintEvent *e); - virtual void resizeEvent(QResizeEvent *e); - virtual void styleChange(QStyle& oldStyle); - virtual void paletteChange(const QPalette& oldPalette); + virtual void paintEvent(TQPaintEvent *e); + virtual void resizeEvent(TQResizeEvent *e); + virtual void styleChange(TQStyle& oldStyle); + virtual void paletteChange(const TQPalette& oldPalette); void recalculateSize(); void drawRuler(); - void initMarker(Q_INT32 w, Q_INT32 h); - void drawNums(QPainter *gc, Q_INT32 x, Q_INT32 y, QString& num, bool orientationHoriz); + void initMarker(TQ_INT32 w, TQ_INT32 h); + void drawNums(TQPainter *gc, TQ_INT32 x, TQ_INT32 y, TQString& num, bool orientationHoriz); private: KoUnit::Unit m_unit; Qt::Orientation m_orientation; - Q_INT32 m_firstVisible; - Q_INT32 m_currentPosition; - QPixmap *m_pixmapBuffer; - QPixmap m_pixmapMarker; - QPixmap m_pixmapNums; + TQ_INT32 m_firstVisible; + TQ_INT32 m_currentPosition; + TQPixmap *m_pixmapBuffer; + TQPixmap m_pixmapMarker; + TQPixmap m_pixmapNums; double m_zoom; private: |