summaryrefslogtreecommitdiffstats
path: root/juk/playlistbox.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'juk/playlistbox.cpp')
-rw-r--r--juk/playlistbox.cpp32
1 files changed, 16 insertions, 16 deletions
diff --git a/juk/playlistbox.cpp b/juk/playlistbox.cpp
index 94e1cd91..71329ae1 100644
--- a/juk/playlistbox.cpp
+++ b/juk/playlistbox.cpp
@@ -48,7 +48,7 @@ using namespace ActionCollection;
PlaylistBox::PlaylistBox(TQWidget *parent, TQWidgetStack *playlistStack,
const char *name) :
- KListView(parent, name),
+ TDEListView(parent, name),
PlaylistCollection(playlistStack),
m_viewModeIndex(0),
m_hasSelection(false),
@@ -70,7 +70,7 @@ PlaylistBox::PlaylistBox(TQWidget *parent, TQWidgetStack *playlistStack,
setAcceptDrops(true);
setSelectionModeExt(Extended);
- m_contextMenu = new KPopupMenu(this);
+ m_contextMenu = new TDEPopupMenu(this);
K3bPlaylistExporter *exporter = new K3bPlaylistExporter(this);
m_k3bAction = exporter->action();
@@ -90,8 +90,8 @@ PlaylistBox::PlaylistBox(TQWidget *parent, TQWidgetStack *playlistStack,
// add the view modes stuff
- KSelectAction *viewModeAction =
- new KSelectAction(i18n("View Modes"), "view_choose", KShortcut(), ActionCollection::actions(), "viewModeMenu");
+ TDESelectAction *viewModeAction =
+ new TDESelectAction(i18n("View Modes"), "view_choose", TDEShortcut(), ActionCollection::actions(), "viewModeMenu");
m_viewModes.append(new ViewMode(this));
m_viewModes.append(new CompactViewMode(this));
@@ -263,7 +263,7 @@ void PlaylistBox::readConfig()
void PlaylistBox::saveConfig()
{
TDEConfigGroup config(TDEGlobal::config(), "PlaylistBox");
- config.writeEntry("ViewMode", action<KSelectAction>("viewModeMenu")->currentItem());
+ config.writeEntry("ViewMode", action<TDESelectAction>("viewModeMenu")->currentItem());
TDEGlobal::config()->sync();
}
@@ -344,7 +344,7 @@ void PlaylistBox::remove()
if(*it != upcomingPlaylist())
delete *it;
else {
- action<KToggleAction>("showUpcoming")->setChecked(false);
+ action<TDEToggleAction>("showUpcoming")->setChecked(false);
setUpcomingPlaylistEnabled(false);
}
}
@@ -519,14 +519,14 @@ void PlaylistBox::contentsDragLeaveEvent(TQDragLeaveEvent *e)
m_dropItem = 0;
old->repaint();
}
- KListView::contentsDragLeaveEvent(e);
+ TDEListView::contentsDragLeaveEvent(e);
}
void PlaylistBox::contentsMousePressEvent(TQMouseEvent *e)
{
if(e->button() == Qt::LeftButton)
m_doingMultiSelect = true;
- KListView::contentsMousePressEvent(e);
+ TDEListView::contentsMousePressEvent(e);
}
void PlaylistBox::contentsMouseReleaseEvent(TQMouseEvent *e)
@@ -535,14 +535,14 @@ void PlaylistBox::contentsMouseReleaseEvent(TQMouseEvent *e)
m_doingMultiSelect = false;
slotPlaylistChanged();
}
- KListView::contentsMouseReleaseEvent(e);
+ TDEListView::contentsMouseReleaseEvent(e);
}
void PlaylistBox::keyPressEvent(TQKeyEvent *e)
{
if((e->key() == Key_Up || e->key() == Key_Down) && e->state() == ShiftButton)
m_doingMultiSelect = true;
- KListView::keyPressEvent(e);
+ TDEListView::keyPressEvent(e);
}
void PlaylistBox::keyReleaseEvent(TQKeyEvent *e)
@@ -551,7 +551,7 @@ void PlaylistBox::keyReleaseEvent(TQKeyEvent *e)
m_doingMultiSelect = false;
slotPlaylistChanged();
}
- KListView::keyReleaseEvent(e);
+ TDEListView::keyReleaseEvent(e);
}
PlaylistBox::ItemList PlaylistBox::selectedItems() const
@@ -568,7 +568,7 @@ PlaylistBox::ItemList PlaylistBox::selectedItems() const
void PlaylistBox::setSingleItem(TQListViewItem *item)
{
setSelectionModeExt(Single);
- KListView::setCurrentItem(item);
+ TDEListView::setCurrentItem(item);
setSelectionModeExt(Extended);
}
@@ -676,7 +676,7 @@ void PlaylistBox::setupUpcomingPlaylist()
bool enable = config.readBoolEntry("showUpcoming", false);
setUpcomingPlaylistEnabled(enable);
- action<KToggleAction>("showUpcoming")->setChecked(enable);
+ action<TDEToggleAction>("showUpcoming")->setChecked(enable);
}
////////////////////////////////////////////////////////////////////////////////
@@ -686,14 +686,14 @@ void PlaylistBox::setupUpcomingPlaylist()
PlaylistBox::Item *PlaylistBox::Item::m_collectionItem = 0;
PlaylistBox::Item::Item(PlaylistBox *listBox, const TQString &icon, const TQString &text, Playlist *l)
- : TQObject(listBox), KListViewItem(listBox, 0, text),
+ : TQObject(listBox), TDEListViewItem(listBox, 0, text),
m_playlist(l), m_text(text), m_iconName(icon), m_sortedFirst(false)
{
init();
}
PlaylistBox::Item::Item(Item *parent, const TQString &icon, const TQString &text, Playlist *l)
- : TQObject(parent->listView()), KListViewItem(parent, text),
+ : TQObject(parent->listView()), TDEListViewItem(parent, text),
m_playlist(l), m_text(text), m_iconName(icon), m_sortedFirst(false)
{
init();
@@ -731,7 +731,7 @@ void PlaylistBox::Item::paintCell(TQPainter *painter, const TQColorGroup &colorG
void PlaylistBox::Item::setText(int column, const TQString &text)
{
m_text = text;
- KListViewItem::setText(column, text);
+ TDEListViewItem::setText(column, text);
}
void PlaylistBox::Item::setup()