diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:43:15 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:43:15 +0000 |
commit | e654398e46e37abf457b2b1122ab898d2c51c49f (patch) | |
tree | d39ee6440f3c3663c3ead84a2d4cc2d034667e96 /noatun/modules/splitplaylist/playlist.cpp | |
parent | e4f29b18e19394b9352f52a6c0d0d0e3932cf511 (diff) | |
download | tdemultimedia-e654398e46e37abf457b2b1122ab898d2c51c49f.tar.gz tdemultimedia-e654398e46e37abf457b2b1122ab898d2c51c49f.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdemultimedia@1157644 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'noatun/modules/splitplaylist/playlist.cpp')
-rw-r--r-- | noatun/modules/splitplaylist/playlist.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/noatun/modules/splitplaylist/playlist.cpp b/noatun/modules/splitplaylist/playlist.cpp index 57d6fb48..d0ded140 100644 --- a/noatun/modules/splitplaylist/playlist.cpp +++ b/noatun/modules/splitplaylist/playlist.cpp @@ -20,9 +20,9 @@ SplitPlaylist::SplitPlaylist() void SplitPlaylist::init() { view=new View(this); // 195 - connect(view->listView(), SIGNAL(executed(QListViewItem*)), SLOT(listItemSelected(QListViewItem*))); - connect(view, SIGNAL(shown()), SIGNAL(listShown())); - connect(view, SIGNAL(hidden()), SIGNAL(listHidden())); + connect(view->listView(), TQT_SIGNAL(executed(TQListViewItem*)), TQT_SLOT(listItemSelected(TQListViewItem*))); + connect(view, TQT_SIGNAL(shown()), TQT_SIGNAL(listShown())); + connect(view, TQT_SIGNAL(hidden()), TQT_SIGNAL(listHidden())); view->init(); // 1000 } @@ -112,7 +112,7 @@ PlaylistItem SplitPlaylist::previous() List *list = view->listView(); // check if the item still exists (hackitude: 50%) bool found=false; - for (QListViewItem *i = list->firstChild(); i; i = i->nextSibling()) + for (TQListViewItem *i = list->firstChild(); i; i = i->nextSibling()) { if (i == static_cast<SafeListViewItem*>(randomPrevious.data())) { @@ -215,15 +215,15 @@ void SplitPlaylist::setCurrent(const PlaylistItem &i, bool emitC) // remove the old icon SafeListViewItem *now=static_cast<SafeListViewItem*>(current().data()); if (now) - now->setPixmap(0, QPixmap()); + now->setPixmap(0, TQPixmap()); - QRect rect(view->listView()->itemRect(static_cast<SafeListViewItem*>(current().data()))); + TQRect rect(view->listView()->itemRect(static_cast<SafeListViewItem*>(current().data()))); rect.setWidth(view->listView()->viewport()->width()); currentItem=i; view->listView()->viewport()->repaint(rect,true); view->listView()->ensureItemVisible(static_cast<SafeListViewItem*>(current().data())); - QRect currentRect= view->listView()->itemRect(static_cast<SafeListViewItem*>(current().data())); + TQRect currentRect= view->listView()->itemRect(static_cast<SafeListViewItem*>(current().data())); view->listView()->viewport()->repaint(currentRect); now=static_cast<SafeListViewItem*>(current().data()); @@ -240,7 +240,7 @@ void SplitPlaylist::remove(const PlaylistItem &) // delete i; } -void SplitPlaylist::listItemSelected(QListViewItem *i) +void SplitPlaylist::listItemSelected(TQListViewItem *i) { setCurrent(PlaylistItem(static_cast<SafeListViewItem*>(i)), false); emit playCurrent(); @@ -253,8 +253,8 @@ void SplitPlaylist::randomize() view->setSorting(false); List *lview = view->listView(); // eeeeevil :) - QPtrList<void> list; - QPtrList<QListViewItem> items; + TQPtrList<void> list; + TQPtrList<TQListViewItem> items; for(int i = 0; i < lview->childCount(); i++) { list.append( (void*) i ); |