diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:51:49 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:51:49 +0000 |
commit | 4ae0c208b66e0f7954e194384464fe2d0a2c56dd (patch) | |
tree | b0a7cd1c184f0003c0292eb416ed27f674f9cc43 /kompare/komparepart/komparelistview.h | |
parent | 1964ea0fb4ab57493ca2ebb709c8d3b5395fd653 (diff) | |
download | tdesdk-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 'kompare/komparepart/komparelistview.h')
-rw-r--r-- | kompare/komparepart/komparelistview.h | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/kompare/komparepart/komparelistview.h b/kompare/komparepart/komparelistview.h index 26a6dacb..d617fafd 100644 --- a/kompare/komparepart/komparelistview.h +++ b/kompare/komparepart/komparelistview.h @@ -22,10 +22,10 @@ #ifndef KOMPARELISTVIEW_H #define KOMPARELISTVIEW_H -#include <qptrlist.h> -#include <qptrdict.h> -#include <qlabel.h> -#include <qlayout.h> +#include <tqptrlist.h> +#include <tqptrdict.h> +#include <tqlabel.h> +#include <tqlayout.h> #include <klistview.h> @@ -48,13 +48,13 @@ class KompareListView : public KListView Q_OBJECT public: - KompareListView( bool isSource, ViewSettings* settings, QWidget* parent, const char* name = 0 ); + KompareListView( bool isSource, ViewSettings* settings, TQWidget* parent, const char* name = 0 ); virtual ~KompareListView(); KompareListViewItem* itemAtIndex( int i ); int firstVisibleDifference(); int lastVisibleDifference(); - QRect itemRect( int i ); + TQRect itemRect( int i ); int minScrollId(); int maxScrollId(); int contentsWidth(); @@ -64,7 +64,7 @@ public: void setSelectedDifference( const Diff2::Difference* diff, bool scroll ); - const QString& spaces() const { return m_spaces; }; + const TQString& spaces() const { return m_spaces; }; void setSpaces( int spaces ); public slots: @@ -83,23 +83,23 @@ signals: void resized(); protected: - void wheelEvent( QWheelEvent* e ); - void resizeEvent( QResizeEvent* e ); - void contentsMousePressEvent ( QMouseEvent * e ); - void contentsMouseDoubleClickEvent ( QMouseEvent* ); - void contentsMouseReleaseEvent ( QMouseEvent * ) {}; - void contentsMouseMoveEvent ( QMouseEvent * ) {}; + void wheelEvent( TQWheelEvent* e ); + void resizeEvent( TQResizeEvent* e ); + void contentsMousePressEvent ( TQMouseEvent * e ); + void contentsMouseDoubleClickEvent ( TQMouseEvent* ); + void contentsMouseReleaseEvent ( TQMouseEvent * ) {}; + void contentsMouseMoveEvent ( TQMouseEvent * ) {}; private: - QValueList<KompareListViewDiffItem*> m_items; - QPtrDict<KompareListViewDiffItem> m_itemDict; + TQValueList<KompareListViewDiffItem*> m_items; + TQPtrDict<KompareListViewDiffItem> m_itemDict; bool m_isSource; ViewSettings* m_settings; int m_scrollId; int m_maxMainWidth; const Diff2::DiffModel* m_selectedModel; const Diff2::Difference* m_selectedDifference; - QString m_spaces; + TQString m_spaces; }; class KompareListViewFrame : public QFrame @@ -116,8 +116,8 @@ public slots: private: KompareListView m_view; - QLabel m_label; - QVBoxLayout m_layout; + TQLabel m_label; + TQVBoxLayout m_layout; }; class KompareListViewItem : public QListViewItem @@ -128,7 +128,7 @@ public: KompareListViewItem( KompareListViewItem* parent ); KompareListViewItem( KompareListViewItem* parent, KompareListViewItem* after ); - void paintFocus( QPainter* p, const QColorGroup& cg, const QRect& r ); + void paintFocus( TQPainter* p, const TQColorGroup& cg, const TQRect& r ); int scrollId() { return m_scrollId; }; virtual int maxHeight() = 0; @@ -187,8 +187,8 @@ public: virtual void setup(); int maxHeight() { return 0; } - virtual void paintCell( QPainter* p, const QColorGroup& cg, int column, int width, int align ); - virtual void paintText( QPainter* p, const QColor& bg, int column, int width, int align ); + virtual void paintCell( TQPainter* p, const TQColorGroup& cg, int column, int width, int align ); + virtual void paintText( TQPainter* p, const TQColor& bg, int column, int width, int align ); KompareListViewDiffItem* diffItemParent() const; @@ -203,7 +203,7 @@ public: void setup(); - void paintText( QPainter* p, const QColor& bg, int column, int width, int align ); + void paintText( TQPainter* p, const TQColor& bg, int column, int width, int align ); }; class KompareListViewHunkItem : public KompareListViewItem @@ -213,7 +213,7 @@ public: KompareListViewHunkItem( KompareListView* parent, KompareListViewItem* after, Diff2::DiffHunk* hunk, bool zeroHeight= false ); void setup(); - void paintCell( QPainter* p, const QColorGroup& cg, int column, int width, int align ); + void paintCell( TQPainter* p, const TQColorGroup& cg, int column, int width, int align ); int maxHeight(); |