From 99a2774ca6f1cab334de5d43fe36fc44ae889a4c Mon Sep 17 00:00:00 2001 From: tpearson Date: Sun, 12 Jun 2011 01:36:19 +0000 Subject: TQt4 convert kdesdk This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdesdk@1236185 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- cervisia/diffview.h | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'cervisia/diffview.h') diff --git a/cervisia/diffview.h b/cervisia/diffview.h index 160dd2cd..7099f172 100644 --- a/cervisia/diffview.h +++ b/cervisia/diffview.h @@ -39,15 +39,16 @@ protected: }; -class DiffView : public QtTableView +class DiffView : public TQtTableView { Q_OBJECT + TQ_OBJECT public: enum DiffType { Change, Insert, Delete, Neutral, Unchanged, Separator }; DiffView( KConfig& cfg, bool withlinenos, bool withmarker, - TQWidget *parent=0, const char *name=0 ); + TQWidget *tqparent=0, const char *name=0 ); void setPartner(DiffView *other); @@ -73,7 +74,7 @@ public: virtual void setFont(const TQFont &font); virtual int cellWidth(int col); - virtual TQSize sizeHint() const; + virtual TQSize tqsizeHint() const; virtual void paintCell(TQPainter *p, int row, int col); virtual void wheelEvent(TQWheelEvent *); const TQScrollBar *scrollBar() const @@ -101,16 +102,17 @@ private: }; -class DiffZoomWidget : public QFrame +class DiffZoomWidget : public TQFrame { Q_OBJECT + TQ_OBJECT public: - DiffZoomWidget(KConfig& cfg, TQWidget *parent=0, const char *name=0); + DiffZoomWidget(KConfig& cfg, TQWidget *tqparent=0, const char *name=0); ~DiffZoomWidget(); void setDiffView(DiffView *view); - TQSize sizeHint() const; + TQSize tqsizeHint() const; protected: void paintEvent(TQPaintEvent *); -- cgit v1.2.3