summaryrefslogtreecommitdiffstats
path: root/juk/coverdialog.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:43:15 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:43:15 +0000
commite654398e46e37abf457b2b1122ab898d2c51c49f (patch)
treed39ee6440f3c3663c3ead84a2d4cc2d034667e96 /juk/coverdialog.cpp
parente4f29b18e19394b9352f52a6c0d0d0e3932cf511 (diff)
downloadtdemultimedia-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 'juk/coverdialog.cpp')
-rw-r--r--juk/coverdialog.cpp38
1 files changed, 19 insertions, 19 deletions
diff --git a/juk/coverdialog.cpp b/juk/coverdialog.cpp
index cdb9853a..509f0695 100644
--- a/juk/coverdialog.cpp
+++ b/juk/coverdialog.cpp
@@ -21,8 +21,8 @@
#include <kpopupmenu.h>
#include <klocale.h>
-#include <qtimer.h>
-#include <qtoolbutton.h>
+#include <tqtimer.h>
+#include <tqtoolbutton.h>
#include "coverdialog.h"
#include "covericonview.h"
@@ -34,12 +34,12 @@ using CoverUtility::CoverIconViewItem;
class AllArtistsListViewItem : public KListViewItem
{
public:
- AllArtistsListViewItem(QListView *parent) :
+ AllArtistsListViewItem(TQListView *parent) :
KListViewItem(parent, i18n("<All Artists>"))
{
}
- int compare(QListViewItem *, int, bool) const
+ int compare(TQListViewItem *, int, bool) const
{
return -1; // Always be at the top.
}
@@ -48,22 +48,22 @@ public:
class CaseInsensitiveItem : public KListViewItem
{
public:
- CaseInsensitiveItem(QListView *parent, const QString &text) :
+ CaseInsensitiveItem(TQListView *parent, const TQString &text) :
KListViewItem(parent, text)
{
}
- int compare(QListViewItem *item, int column, bool ascending) const
+ int compare(TQListViewItem *item, int column, bool ascending) const
{
Q_UNUSED(ascending);
return text(column).lower().localeAwareCompare(item->text(column).lower());
}
};
-CoverDialog::CoverDialog(QWidget *parent) :
+CoverDialog::CoverDialog(TQWidget *parent) :
CoverDialogBase(parent, "juk_cover_dialog", WType_Dialog)
{
- m_covers->setResizeMode(QIconView::Adjust);
+ m_covers->setResizeMode(TQIconView::Adjust);
m_covers->setGridX(140);
m_covers->setGridY(150);
@@ -80,16 +80,16 @@ void CoverDialog::show()
m_artists->clear();
m_covers->clear();
- QStringList artists = CollectionList::instance()->uniqueSet(CollectionList::Artists);
+ TQStringList artists = CollectionList::instance()->uniqueSet(CollectionList::Artists);
m_artists->setSorting(-1);
new AllArtistsListViewItem(m_artists);
- for(QStringList::ConstIterator it = artists.begin(); it != artists.end(); ++it)
+ for(TQStringList::ConstIterator it = artists.begin(); it != artists.end(); ++it)
new CaseInsensitiveItem(m_artists, *it);
m_artists->setSorting(0);
- QTimer::singleShot(0, this, SLOT(loadCovers()));
+ TQTimer::singleShot(0, this, TQT_SLOT(loadCovers()));
CoverDialogBase::show();
}
@@ -97,8 +97,8 @@ void CoverDialog::show()
// covers.
void CoverDialog::loadCovers()
{
- QValueList<coverKey> keys = CoverManager::keys();
- QValueList<coverKey>::ConstIterator it;
+ TQValueList<coverKey> keys = CoverManager::keys();
+ TQValueList<coverKey>::ConstIterator it;
int i = 0;
for(it = keys.begin(); it != keys.end(); ++it) {
@@ -112,7 +112,7 @@ void CoverDialog::loadCovers()
}
// TODO: Add a way to show cover art for tracks with no artist.
-void CoverDialog::slotArtistClicked(QListViewItem *item)
+void CoverDialog::slotArtistClicked(TQListViewItem *item)
{
m_covers->clear();
@@ -121,9 +121,9 @@ void CoverDialog::slotArtistClicked(QListViewItem *item)
loadCovers();
}
else {
- QString artist = item->text(0).lower();
- QValueList<coverKey> keys = CoverManager::keys();
- QValueList<coverKey>::ConstIterator it;
+ TQString artist = item->text(0).lower();
+ TQValueList<coverKey> keys = CoverManager::keys();
+ TQValueList<coverKey>::ConstIterator it;
for(it = keys.begin(); it != keys.end(); ++it) {
CoverDataPtr data = CoverManager::coverInfo(*it);
@@ -133,7 +133,7 @@ void CoverDialog::slotArtistClicked(QListViewItem *item)
}
}
-void CoverDialog::slotContextRequested(QIconViewItem *item, const QPoint &pt)
+void CoverDialog::slotContextRequested(TQIconViewItem *item, const TQPoint &pt)
{
static KPopupMenu *menu = 0;
@@ -142,7 +142,7 @@ void CoverDialog::slotContextRequested(QIconViewItem *item, const QPoint &pt)
if(!menu) {
menu = new KPopupMenu(this);
- menu->insertItem(i18n("Remove Cover"), this, SLOT(removeSelectedCover()));
+ menu->insertItem(i18n("Remove Cover"), this, TQT_SLOT(removeSelectedCover()));
}
menu->popup(pt);