diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-05-27 19:21:21 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-05-27 19:21:21 +0000 |
commit | d8cc8bdfa7fa624a526d5aa1626974e1444cb799 (patch) | |
tree | f295f1c545b319963d5357af79fe08991d8141d9 /src/projects/k3bdatafileview.h | |
parent | 2a39a080579fb52a2599c02b2939795385b89093 (diff) | |
download | k3b-d8cc8bdfa7fa624a526d5aa1626974e1444cb799.tar.gz k3b-d8cc8bdfa7fa624a526d5aa1626974e1444cb799.zip |
TQt4 port k3b
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/k3b@1233803 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/projects/k3bdatafileview.h')
-rw-r--r-- | src/projects/k3bdatafileview.h | 31 |
1 files changed, 16 insertions, 15 deletions
diff --git a/src/projects/k3bdatafileview.h b/src/projects/k3bdatafileview.h index 580af96..cd7e2c8 100644 --- a/src/projects/k3bdatafileview.h +++ b/src/projects/k3bdatafileview.h @@ -21,7 +21,7 @@ #include <kurl.h> -#include <qmap.h> +#include <tqmap.h> class K3bDataDoc; @@ -29,16 +29,16 @@ class K3bDirItem; class K3bDataView; class K3bDataViewItem; class K3bDataItem; -class QDropEvent; +class TQDropEvent; class KActionCollection; class KActionMenu; class KAction; class K3bDataDirTreeView; class K3bDataDirViewItem; class K3bView; -class QPainter; -class QDragMoveEvent; -class QDragLeaveEvent; +class TQPainter; +class TQDragMoveEvent; +class TQDragLeaveEvent; /** *@author Sebastian Trueg @@ -47,9 +47,10 @@ class QDragLeaveEvent; class K3bDataFileView : public K3bListView { Q_OBJECT + TQ_OBJECT public: - K3bDataFileView( K3bView*, K3bDataDirTreeView*, K3bDataDoc*, QWidget* parent ); + K3bDataFileView( K3bView*, K3bDataDirTreeView*, K3bDataDoc*, TQWidget* tqparent ); ~K3bDataFileView(); K3bDirItem* currentDir() const; @@ -65,24 +66,24 @@ class K3bDataFileView : public K3bListView private slots: void slotDataItemRemoved( K3bDataItem* ); - void slotExecuted( QListViewItem* ); - void slotDropped( QDropEvent* e, QListViewItem* after, QListViewItem* parent ); - void showPopupMenu( KListView*, QListViewItem* _item, const QPoint& ); + void slotExecuted( TQListViewItem* ); + void slotDropped( TQDropEvent* e, TQListViewItem* after, TQListViewItem* tqparent ); + void showPopupMenu( KListView*, TQListViewItem* _item, const TQPoint& ); void slotRenameItem(); void slotRemoveItem(); void slotNewDir(); void slotParentDir(); void slotProperties(); - void slotDoubleClicked( QListViewItem* item ); + void slotDoubleClicked( TQListViewItem* item ); void slotItemAdded( K3bDataItem* ); void slotAddUrls(); void slotOpen(); protected: - bool acceptDrag(QDropEvent* e) const; - void contentsDragMoveEvent( QDragMoveEvent* e ); - void contentsDragLeaveEvent( QDragLeaveEvent* e ); - QDragObject* dragObject(); + bool acceptDrag(TQDropEvent* e) const; + void contentsDragMoveEvent( TQDragMoveEvent* e ); + void contentsDragLeaveEvent( TQDragLeaveEvent* e ); + TQDragObject* dragObject(); private: void clearItems(); @@ -105,7 +106,7 @@ class K3bDataFileView : public K3bListView K3bDataDirViewItem* m_dropDirItem; - QMap<K3bDataItem*, K3bDataViewItem*> m_itemMap; + TQMap<K3bDataItem*, K3bDataViewItem*> m_itemMap; // used for the urladdingdialog hack KURL::List m_addUrls; |