From eba47f8f0637f451e21348187591e1f1fd58ac74 Mon Sep 17 00:00:00 2001 From: tpearson Date: Mon, 2 Aug 2010 19:23:46 +0000 Subject: TQt conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegraphics@1158446 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kolourpaint/tools/kptoolrectangle.h | 48 ++++++++++++++++++------------------- 1 file changed, 24 insertions(+), 24 deletions(-) (limited to 'kolourpaint/tools/kptoolrectangle.h') diff --git a/kolourpaint/tools/kptoolrectangle.h b/kolourpaint/tools/kptoolrectangle.h index 0fcf5ff4..a412a475 100644 --- a/kolourpaint/tools/kptoolrectangle.h +++ b/kolourpaint/tools/kptoolrectangle.h @@ -29,17 +29,17 @@ #ifndef __kptoolrectangle_h__ #define __kptoolrectangle_h__ -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include #include #include -class QString; +class TQString; class kpColor; class kpMainWindow; @@ -58,7 +58,7 @@ public: enum Mode {Rectangle, RoundedRectangle, Ellipse}; kpToolRectangle (Mode mode, - const QString &text, const QString &description, + const TQString &text, const TQString &description, int key, kpMainWindow *mainWindow, const char *name); @@ -70,7 +70,7 @@ public: virtual bool careAboutModifierState () const { return true; } private: - QString haventBegunDrawUserMessage () const; + TQString haventBegunDrawUserMessage () const; public: virtual void begin (); @@ -80,10 +80,10 @@ public: private: void updateShape (); public: - virtual void draw (const QPoint &, const QPoint &, const QRect &); + virtual void draw (const TQPoint &, const TQPoint &, const TQRect &); virtual void cancelShape (); virtual void releasedAllButtons (); - virtual void endDraw (const QPoint &, const QRect &); + virtual void endDraw (const TQPoint &, const TQRect &); private slots: void updatePens (); @@ -102,28 +102,28 @@ private: kpToolWidgetFillStyle *m_toolWidgetFillStyle; void updatePen (int mouseButton); - QPen m_pen [2], m_maskPen [2]; + TQPen m_pen [2], m_maskPen [2]; void updateBrush (int mouseButton); - QBrush m_brush [2], m_maskBrush [2]; + TQBrush m_brush [2], m_maskBrush [2]; void applyModifiers (); - QPoint m_toolRectangleStartPoint, m_toolRectangleEndPoint; - QRect m_toolRectangleRectWithoutLineWidth, m_toolRectangleRect; + TQPoint m_toolRectangleStartPoint, m_toolRectangleEndPoint; + TQRect m_toolRectangleRectWithoutLineWidth, m_toolRectangleRect; }; class kpToolRectangleCommand : public kpCommand { public: kpToolRectangleCommand (kpToolRectangle::Mode mode, - const QPen &pen, const QPen &maskPen, - const QBrush &brush, const QBrush &maskBrush, - const QRect &rect, - const QPoint &startPoint, const QPoint &endPoint, + const TQPen &pen, const TQPen &maskPen, + const TQBrush &brush, const TQBrush &maskBrush, + const TQRect &rect, + const TQPoint &startPoint, const TQPoint &endPoint, kpMainWindow *mainWindow); virtual ~kpToolRectangleCommand (); - virtual QString name () const; + virtual TQString name () const; virtual int size () const; @@ -132,11 +132,11 @@ public: private: kpToolRectangle::Mode m_mode; - QPen m_pen, m_maskPen; - QBrush m_brush, m_maskBrush; - QRect m_rect; - QPoint m_startPoint, m_endPoint; - QPixmap *m_oldPixmapPtr; + TQPen m_pen, m_maskPen; + TQBrush m_brush, m_maskBrush; + TQRect m_rect; + TQPoint m_startPoint, m_endPoint; + TQPixmap *m_oldPixmapPtr; }; #endif // __kptoolrectangle_h__ -- cgit v1.2.1