summaryrefslogtreecommitdiffstats
path: root/cervisia/diffview.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:51:49 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:51:49 +0000
commit4ae0c208b66e0f7954e194384464fe2d0a2c56dd (patch)
treeb0a7cd1c184f0003c0292eb416ed27f674f9cc43 /cervisia/diffview.h
parent1964ea0fb4ab57493ca2ebb709c8d3b5395fd653 (diff)
downloadtdesdk-4ae0c208b66e0f7954e194384464fe2d0a2c56dd.tar.gz
tdesdk-4ae0c208b66e0f7954e194384464fe2d0a2c56dd.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdesdk@1157652 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'cervisia/diffview.h')
-rw-r--r--cervisia/diffview.h50
1 files changed, 25 insertions, 25 deletions
diff --git a/cervisia/diffview.h b/cervisia/diffview.h
index b79c7189..160dd2cd 100644
--- a/cervisia/diffview.h
+++ b/cervisia/diffview.h
@@ -24,18 +24,18 @@
#include "qttableview.h"
-#include <qptrcollection.h>
-#include <qptrlist.h>
+#include <tqptrcollection.h>
+#include <tqptrlist.h>
class KConfig;
class DiffViewItem;
-class DiffViewItemList : public QPtrList<DiffViewItem>
+class DiffViewItemList : public TQPtrList<DiffViewItem>
{
protected:
- virtual int compareItems(QPtrCollection::Item item1, QPtrCollection::Item item2);
+ virtual int compareItems(TQPtrCollection::Item item1, TQPtrCollection::Item item2);
};
@@ -47,7 +47,7 @@ public:
enum DiffType { Change, Insert, Delete, Neutral, Unchanged, Separator };
DiffView( KConfig& cfg, bool withlinenos, bool withmarker,
- QWidget *parent=0, const char *name=0 );
+ TQWidget *parent=0, const char *name=0 );
void setPartner(DiffView *other);
@@ -60,23 +60,23 @@ public:
void prior()
{ setTopCell(topCell()-viewHeight()/cellHeight()); }
- void addLine(const QString &line, DiffType type, int no=-1);
- QString stringAtLine(int lineno);
+ void addLine(const TQString &line, DiffType type, int no=-1);
+ TQString stringAtLine(int lineno);
void setCenterLine(int lineno);
void setInverted(int lineno, bool inverted);
int count();
void removeAtOffset(int offset);
- void insertAtOffset(const QString &line, DiffType type, int offset);
+ void insertAtOffset(const TQString &line, DiffType type, int offset);
void setCenterOffset(int offset);
- QString stringAtOffset(int offset);
- QByteArray compressedContent();
+ TQString stringAtOffset(int offset);
+ TQByteArray compressedContent();
- virtual void setFont(const QFont &font);
+ virtual void setFont(const TQFont &font);
virtual int cellWidth(int col);
- virtual QSize sizeHint() const;
- virtual void paintCell(QPainter *p, int row, int col);
- virtual void wheelEvent(QWheelEvent *);
- const QScrollBar *scrollBar() const
+ virtual TQSize sizeHint() const;
+ virtual void paintCell(TQPainter *p, int row, int col);
+ virtual void wheelEvent(TQWheelEvent *);
+ const TQScrollBar *scrollBar() const
{ return verticalScrollBar(); }
protected slots:
@@ -92,9 +92,9 @@ private:
DiffView *partner;
static const int BORDER;
- QColor diffChangeColor;
- QColor diffInsertColor;
- QColor diffDeleteColor;
+ TQColor diffChangeColor;
+ TQColor diffInsertColor;
+ TQColor diffDeleteColor;
int m_tabWidth;
KConfig& partConfig;
@@ -106,22 +106,22 @@ class DiffZoomWidget : public QFrame
Q_OBJECT
public:
- DiffZoomWidget(KConfig& cfg, QWidget *parent=0, const char *name=0);
+ DiffZoomWidget(KConfig& cfg, TQWidget *parent=0, const char *name=0);
~DiffZoomWidget();
void setDiffView(DiffView *view);
- QSize sizeHint() const;
+ TQSize sizeHint() const;
protected:
- void paintEvent(QPaintEvent *);
- bool eventFilter(QObject *, QEvent *e);
+ void paintEvent(TQPaintEvent *);
+ bool eventFilter(TQObject *, TQEvent *e);
private:
DiffView *diffview;
- QColor diffChangeColor;
- QColor diffInsertColor;
- QColor diffDeleteColor;
+ TQColor diffChangeColor;
+ TQColor diffInsertColor;
+ TQColor diffDeleteColor;
};
#endif