From 4ae0c208b66e0f7954e194384464fe2d0a2c56dd Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:51:49 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdesdk@1157652 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kompare/komparepart/komparelistview.h | 46 +++++++++++++++++------------------ 1 file changed, 23 insertions(+), 23 deletions(-) (limited to 'kompare/komparepart/komparelistview.h') 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 -#include -#include -#include +#include +#include +#include +#include #include @@ -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 m_items; - QPtrDict m_itemDict; + TQValueList m_items; + TQPtrDict 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(); -- cgit v1.2.1