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/k3bmixeddirtreeview.cpp | |
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/k3bmixeddirtreeview.cpp')
-rw-r--r-- | src/projects/k3bmixeddirtreeview.cpp | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/src/projects/k3bmixeddirtreeview.cpp b/src/projects/k3bmixeddirtreeview.cpp index 50d818a..9a014dc 100644 --- a/src/projects/k3bmixeddirtreeview.cpp +++ b/src/projects/k3bmixeddirtreeview.cpp @@ -22,7 +22,7 @@ #include <k3baudiodoc.h> #include <k3bdataviewitem.h> -#include <qevent.h> +#include <tqevent.h> #include <kdebug.h> #include <kiconloader.h> @@ -33,18 +33,18 @@ class K3bMixedDirTreeView::PrivateAudioRootViewItem : public K3bListViewItem { public: - PrivateAudioRootViewItem( K3bMixedDoc* doc, QListView* parent, QListViewItem* after ) - : K3bListViewItem( parent, after ), + PrivateAudioRootViewItem( K3bMixedDoc* doc, TQListView* tqparent, TQListViewItem* after ) + : K3bListViewItem( tqparent, after ), m_doc(doc) { setPixmap( 0, SmallIcon("sound") ); } - QString text( int col ) const { + TQString text( int col ) const { if( col == 0 ) - return i18n("Audio Tracks") + QString(" (%1)").arg(m_doc->audioDoc()->numOfTracks()); + return i18n("Audio Tracks") + TQString(" (%1)").tqarg(m_doc->audioDoc()->numOfTracks()); else - return QString::null; + return TQString(); } private: @@ -52,14 +52,14 @@ public: }; -K3bMixedDirTreeView::K3bMixedDirTreeView( K3bView* view, K3bMixedDoc* doc, QWidget* parent, const char* ) - : K3bDataDirTreeView( view, doc->dataDoc(), parent ), m_doc(doc) +K3bMixedDirTreeView::K3bMixedDirTreeView( K3bView* view, K3bMixedDoc* doc, TQWidget* tqparent, const char* ) + : K3bDataDirTreeView( view, doc->dataDoc(), tqparent ), m_doc(doc) { m_audioRootItem = new PrivateAudioRootViewItem( doc, this, root() ); - connect( this, SIGNAL(selectionChanged(QListViewItem*)), - this, SLOT(slotSelectionChanged(QListViewItem*)) ); - connect( m_doc->audioDoc(), SIGNAL(changed()), this, SLOT(slotNewAudioTracks()) ); + connect( this, TQT_SIGNAL(selectionChanged(TQListViewItem*)), + this, TQT_SLOT(slotSelectionChanged(TQListViewItem*)) ); + connect( m_doc->audioDoc(), TQT_SIGNAL(changed()), this, TQT_SLOT(slotNewAudioTracks()) ); } @@ -68,12 +68,12 @@ K3bMixedDirTreeView::~K3bMixedDirTreeView() } -void K3bMixedDirTreeView::slotDropped( QDropEvent* e, QListViewItem* parent, QListViewItem* after ) +void K3bMixedDirTreeView::slotDropped( TQDropEvent* e, TQListViewItem* tqparent, TQListViewItem* after ) { if( !e->isAccepted() ) return; - QListViewItem* droppedItem = itemAt(e->pos()); + TQListViewItem* droppedItem = itemAt(e->pos()); if( droppedItem == m_audioRootItem ) { KURL::List urls; if( KURLDrag::decode( e, urls ) ) { @@ -81,11 +81,11 @@ void K3bMixedDirTreeView::slotDropped( QDropEvent* e, QListViewItem* parent, QLi } } else - K3bDataDirTreeView::slotDropped( e, parent, after ); + K3bDataDirTreeView::slotDropped( e, tqparent, after ); } -void K3bMixedDirTreeView::slotSelectionChanged( QListViewItem* i ) +void K3bMixedDirTreeView::slotSelectionChanged( TQListViewItem* i ) { if( i == m_audioRootItem ) emit audioTreeSelected(); @@ -97,7 +97,7 @@ void K3bMixedDirTreeView::slotSelectionChanged( QListViewItem* i ) void K3bMixedDirTreeView::slotNewAudioTracks() { // update the tracknumber - m_audioRootItem->repaint(); + m_audioRootItem->tqrepaint(); } #include "k3bmixeddirtreeview.moc" |