summaryrefslogtreecommitdiffstats
path: root/cervisia/diffview.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-12 01:36:19 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-12 01:36:19 +0000
commit99a2774ca6f1cab334de5d43fe36fc44ae889a4c (patch)
treeeff34cf0762227f6baf2a93e8fef48d4bed2651c /cervisia/diffview.h
parent1c104292188541106338d4940b0f04beeb4301a0 (diff)
downloadtdesdk-99a2774ca6f1cab334de5d43fe36fc44ae889a4c.tar.gz
tdesdk-99a2774ca6f1cab334de5d43fe36fc44ae889a4c.zip
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
Diffstat (limited to 'cervisia/diffview.h')
-rw-r--r--cervisia/diffview.h14
1 files changed, 8 insertions, 6 deletions
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 *);