summaryrefslogtreecommitdiffstats
path: root/juk/playlistsplitter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'juk/playlistsplitter.cpp')
-rw-r--r--juk/playlistsplitter.cpp68
1 files changed, 34 insertions, 34 deletions
diff --git a/juk/playlistsplitter.cpp b/juk/playlistsplitter.cpp
index 5bc33a69..3454ee3d 100644
--- a/juk/playlistsplitter.cpp
+++ b/juk/playlistsplitter.cpp
@@ -16,8 +16,8 @@
#include <kaction.h>
#include <kdebug.h>
-#include <qlayout.h>
-#include <qevent.h>
+#include <tqlayout.h>
+#include <tqevent.h>
#include "playlistsplitter.h"
#include "searchwidget.h"
@@ -34,8 +34,8 @@ using namespace ActionCollection;
// public methods
////////////////////////////////////////////////////////////////////////////////
-PlaylistSplitter::PlaylistSplitter(QWidget *parent, const char *name) :
- QSplitter(Qt::Horizontal, parent, name),
+PlaylistSplitter::PlaylistSplitter(TQWidget *parent, const char *name) :
+ TQSplitter(Qt::Horizontal, parent, name),
m_newVisible(0),
m_playlistBox(0),
m_searchWidget(0),
@@ -61,7 +61,7 @@ PlaylistSplitter::~PlaylistSplitter()
delete m_playlistBox;
}
-bool PlaylistSplitter::eventFilter(QObject *, QEvent *event)
+bool PlaylistSplitter::eventFilter(TQObject *, TQEvent *event)
{
if(event->type() == FocusUpEvent::id) {
m_searchWidget->setFocus();
@@ -89,20 +89,20 @@ void PlaylistSplitter::slotFocusCurrentPlaylist()
// Select the top visible (and matching) item.
- PlaylistItem *item = static_cast<PlaylistItem *>(playlist->itemAt(QPoint(0, 0)));
+ PlaylistItem *item = static_cast<PlaylistItem *>(playlist->itemAt(TQPoint(0, 0)));
if(!item)
return;
- // A little bit of a hack to make QListView repaint things properly. Switch
+ // A little bit of a hack to make TQListView repaint things properly. Switch
// to single selection mode, set the selection and then switch back.
- playlist->setSelectionMode(QListView::Single);
+ playlist->setSelectionMode(TQListView::Single);
playlist->markItemSelected(item, true);
playlist->setCurrentItem(item);
- playlist->setSelectionMode(QListView::Extended);
+ playlist->setSelectionMode(TQListView::Extended);
}
}
@@ -121,7 +121,7 @@ void PlaylistSplitter::setupActions()
new KToggleAction(i18n("Show &Search Bar"), "filefind", 0, actions(), "showSearch");
showSearch->setCheckedState(i18n("Hide &Search Bar"));
- new KAction(i18n("Edit Track Search"), "edit_clear", "F6", this, SLOT(setFocus()), actions(), "editTrackSearch");
+ new KAction(i18n("Edit Track Search"), "edit_clear", "F6", this, TQT_SLOT(setFocus()), actions(), "editTrackSearch");
}
void PlaylistSplitter::setupLayout()
@@ -130,53 +130,53 @@ void PlaylistSplitter::setupLayout()
// Create a splitter to go between the playlists and the editor.
- QSplitter *editorSplitter = new QSplitter(Qt::Vertical, this, "editorSplitter");
+ TQSplitter *editorSplitter = new TQSplitter(Qt::Vertical, this, "editorSplitter");
// Create the playlist and the editor.
- QWidget *top = new QWidget(editorSplitter);
- QVBoxLayout *topLayout = new QVBoxLayout(top);
+ TQWidget *top = new TQWidget(editorSplitter);
+ TQVBoxLayout *topLayout = new TQVBoxLayout(top);
- m_playlistStack = new QWidgetStack(top, "playlistStack");
+ m_playlistStack = new TQWidgetStack(top, "playlistStack");
m_playlistStack->installEventFilter(this);
- connect(m_playlistStack, SIGNAL(aboutToShow(QWidget *)), this, SLOT(slotPlaylistChanged(QWidget *)));
+ connect(m_playlistStack, TQT_SIGNAL(aboutToShow(TQWidget *)), this, TQT_SLOT(slotPlaylistChanged(TQWidget *)));
m_editor = new TagEditor(editorSplitter, "tagEditor");
// Make the editor as small as possible (or at least as small as recommended)
- editorSplitter->setResizeMode(m_editor, QSplitter::FollowSizeHint);
+ editorSplitter->setResizeMode(m_editor, TQSplitter::FollowSizeHint);
// Create the PlaylistBox
m_playlistBox = new PlaylistBox(this, m_playlistStack, "playlistBox");
- connect(m_playlistBox->object(), SIGNAL(signalSelectedItemsChanged()),
- this, SLOT(slotPlaylistSelectionChanged()));
- connect(m_playlistBox, SIGNAL(signalPlaylistDestroyed(Playlist *)),
- m_editor, SLOT(slotPlaylistDestroyed(Playlist *)));
+ connect(m_playlistBox->object(), TQT_SIGNAL(signalSelectedItemsChanged()),
+ this, TQT_SLOT(slotPlaylistSelectionChanged()));
+ connect(m_playlistBox, TQT_SIGNAL(signalPlaylistDestroyed(Playlist *)),
+ m_editor, TQT_SLOT(slotPlaylistDestroyed(Playlist *)));
moveToFirst(m_playlistBox);
- connect(CollectionList::instance(), SIGNAL(signalCollectionChanged()),
- m_editor, SLOT(slotUpdateCollection()));
+ connect(CollectionList::instance(), TQT_SIGNAL(signalCollectionChanged()),
+ m_editor, TQT_SLOT(slotUpdateCollection()));
NowPlaying *nowPlaying = new NowPlaying(top, m_playlistBox);
// Create the search widget -- this must be done after the CollectionList is created.
m_searchWidget = new SearchWidget(top, "searchWidget");
- connect(m_searchWidget, SIGNAL(signalQueryChanged()),
- this, SLOT(slotShowSearchResults()));
- connect(m_searchWidget, SIGNAL(signalDownPressed()),
- this, SLOT(slotFocusCurrentPlaylist()));
- connect(m_searchWidget, SIGNAL(signalAdvancedSearchClicked()),
- m_playlistBox->object(), SLOT(slotCreateSearchPlaylist()));
- connect(m_searchWidget, SIGNAL(signalShown(bool)),
- m_playlistBox->object(), SLOT(slotSetSearchEnabled(bool)));
- connect(action<KToggleAction>("showSearch"), SIGNAL(toggled(bool)),
- m_searchWidget, SLOT(setEnabled(bool)));
+ connect(m_searchWidget, TQT_SIGNAL(signalQueryChanged()),
+ this, TQT_SLOT(slotShowSearchResults()));
+ connect(m_searchWidget, TQT_SIGNAL(signalDownPressed()),
+ this, TQT_SLOT(slotFocusCurrentPlaylist()));
+ connect(m_searchWidget, TQT_SIGNAL(signalAdvancedSearchClicked()),
+ m_playlistBox->object(), TQT_SLOT(slotCreateSearchPlaylist()));
+ connect(m_searchWidget, TQT_SIGNAL(signalShown(bool)),
+ m_playlistBox->object(), TQT_SLOT(slotSetSearchEnabled(bool)));
+ connect(action<KToggleAction>("showSearch"), TQT_SIGNAL(toggled(bool)),
+ m_searchWidget, TQT_SLOT(setEnabled(bool)));
topLayout->addWidget(nowPlaying);
topLayout->addWidget(m_searchWidget);
@@ -190,7 +190,7 @@ void PlaylistSplitter::readConfig()
{
KConfigGroup config(KGlobal::config(), "Splitter");
- QValueList<int> splitterSizes = config.readIntListEntry("PlaylistSplitterSizes");
+ TQValueList<int> splitterSizes = config.readIntListEntry("PlaylistSplitterSizes");
if(splitterSizes.isEmpty()) {
splitterSizes.append(100);
splitterSizes.append(640);
@@ -222,7 +222,7 @@ void PlaylistSplitter::slotPlaylistSelectionChanged()
m_editor->slotSetItems(visiblePlaylist()->selectedItems());
}
-void PlaylistSplitter::slotPlaylistChanged(QWidget *w)
+void PlaylistSplitter::slotPlaylistChanged(TQWidget *w)
{
Playlist *p = dynamic_cast<Playlist *>(w);