From f7e71d47719ab6094cf4a9fafffa5ea351973522 Mon Sep 17 00:00:00 2001 From: tpearson Date: Thu, 13 Jan 2011 08:32:36 +0000 Subject: Initial conversion for TQt for Qt4 3.4.0 TP2 This will also compile with TQt for Qt3, and should not cause any problems with dependent modules such as kdebase. If it does then it needs to be fixed! git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1214149 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kdeui/klistview.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'kdeui/klistview.h') diff --git a/kdeui/klistview.h b/kdeui/klistview.h index d78ec2724..a4e7d4b85 100644 --- a/kdeui/klistview.h +++ b/kdeui/klistview.h @@ -50,11 +50,12 @@ class KLineEdit; * Reimplement dragObject() and (possibly) startDrag(), * and setDragEnabled(true). */ -class KDEUI_EXPORT KListView : public QListView +class KDEUI_EXPORT KListView : public TQListView { friend class KListViewItem; Q_OBJECT + TQ_OBJECT Q_ENUMS( SelectionModeExt ) Q_PROPERTY( bool fullWidth READ fullWidth WRITE setFullWidth ) Q_PROPERTY( bool itemsMovable READ itemsMovable WRITE setItemsMovable ) @@ -684,7 +685,7 @@ protected: */ inline bool below (TQListViewItem* i, const TQPoint& p) { - return below (itemRect(i), contentsToViewport(p)); + return below (tqitemRect(i), contentsToViewport(p)); } /** @@ -1006,7 +1007,7 @@ private: * * @short listview item with alternate background color support */ -class KDEUI_EXPORT KListViewItem : public QListViewItem +class KDEUI_EXPORT KListViewItem : public TQListViewItem { friend class KListView; public: @@ -1069,7 +1070,7 @@ public: TQColor backgroundColor(int column); virtual void paintCell(TQPainter *p, const TQColorGroup &cg, - int column, int width, int alignment); + int column, int width, int tqalignment); private: void init(); -- cgit v1.2.3