From 0a80cfd57d271dd44221467efb426675fa470356 Mon Sep 17 00:00:00 2001 From: tpearson Date: Tue, 28 Jun 2011 18:31:12 +0000 Subject: TQt4 port kvirc This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kvirc@1238719 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- src/modules/objects/class_listview.h | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'src/modules/objects/class_listview.h') diff --git a/src/modules/objects/class_listview.h b/src/modules/objects/class_listview.h index 7849f36c..2d419fe0 100644 --- a/src/modules/objects/class_listview.h +++ b/src/modules/objects/class_listview.h @@ -36,12 +36,13 @@ class KviKvsObject_listview : public KviKvsObject_widget { Q_OBJECT + TQ_OBJECT public: KVSO_DECLARE_OBJECT(KviKvsObject_listview) public: - QWidget * widget() { return (QWidget *)object(); }; - void fileDropped(QString &,KviTalListViewItem *); + TQWidget * widget() { return (TQWidget *)object(); }; + void fileDropped(TQString &,KviTalListViewItem *); protected: virtual bool init(KviKvsRunTimeContext * pContext,KviKvsVariantList *pParams); @@ -82,21 +83,22 @@ protected slots: void slotOnItem(KviTalListViewItem *); void slotItemExpanded(KviTalListViewItem *); void slotItemCollapsed(KviTalListViewItem *); - void slotItemRenamed(KviTalListViewItem *,int,const QString &); - void slotRightButtonClicked(KviTalListViewItem * i,const QPoint &coor, int col); + void slotItemRenamed(KviTalListViewItem *,int,const TQString &); + void slotRightButtonClicked(KviTalListViewItem * i,const TQPoint &coor, int col); }; class KviKvsMdmListView : public KviTalListView { Q_OBJECT + TQ_OBJECT public: - KviKvsMdmListView(QWidget * par,const char * name,KviKvsObject_listview *); + KviKvsMdmListView(TQWidget * par,const char * name,KviKvsObject_listview *); virtual ~KviKvsMdmListView(); protected: KviKvsObject_listview *m_pParentScript; - void contentsDropEvent(QDropEvent *e); - void contentsDragEnterEvent( QDragEnterEvent *e ); + void contentsDropEvent(TQDropEvent *e); + void contentsDragEnterEvent( TQDragEnterEvent *e ); }; #endif //!_CLASS_LISTVIEW_H_ -- cgit v1.2.1