From e69e8b1d09fb579316595b4e6a850e717358a8b1 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sun, 19 Jun 2011 19:03:33 +0000 Subject: TQt4 port kdegraphics This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegraphics@1237557 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kiconedit/kicongrid.h | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'kiconedit/kicongrid.h') diff --git a/kiconedit/kicongrid.h b/kiconedit/kicongrid.h index da61f3a1..3ef73690 100644 --- a/kiconedit/kicongrid.h +++ b/kiconedit/kicongrid.h @@ -80,18 +80,19 @@ class RepaintCommand : public KCommand { } TQString name() const { - return "repainted"; + return "tqrepainted"; } protected: KIconEditGrid* grid; TQRect area; }; -class KGridView : public QFrame +class KGridView : public TQFrame { Q_OBJECT + TQ_OBJECT public: - KGridView( TQImage *image, KCommandHistory* history, TQWidget * parent = 0, const char *name = 0); + KGridView( TQImage *image, KCommandHistory* history, TQWidget * tqparent = 0, const char *name = 0); KRuler *hruler() { return _hruler;} KRuler *vruler() { return _vruler;} @@ -131,8 +132,9 @@ protected: class KIconEditGrid : public KColorGrid { Q_OBJECT + TQ_OBJECT public: - KIconEditGrid( TQImage *image, KCommandHistory* h, TQWidget * parent = 0, const char *name = 0); + KIconEditGrid( TQImage *image, KCommandHistory* h, TQWidget * tqparent = 0, const char *name = 0); virtual ~KIconEditGrid(); enum DrawTool { Line, Freehand, FloodFill, Spray, Rect, FilledRect, Circle, @@ -189,7 +191,7 @@ public slots: void editSelectAll(); void editClear(); void getImage(TQImage *image); -//#if QT_VERSION <= 140 +//#if [[[TQT_VERSION IS DEPRECATED]]] <= 140 void editResize(); //#endif void setSize(const TQSize s); -- cgit v1.2.1