summaryrefslogtreecommitdiffstats
path: root/juk/directorylist.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/directorylist.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/directorylist.cpp')
-rw-r--r--juk/directorylist.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/juk/directorylist.cpp b/juk/directorylist.cpp
index 1e53cac8..43df3dda 100644
--- a/juk/directorylist.cpp
+++ b/juk/directorylist.cpp
@@ -18,7 +18,7 @@
#include <klistview.h>
#include <kpushbutton.h>
-#include <qcheckbox.h>
+#include <tqcheckbox.h>
#include "directorylistbase.h"
#include "directorylist.h"
@@ -27,8 +27,8 @@
// public methods
////////////////////////////////////////////////////////////////////////////////
-DirectoryList::DirectoryList(const QStringList &directories, bool importPlaylists,
- QWidget *parent, const char *name) :
+DirectoryList::DirectoryList(const TQStringList &directories, bool importPlaylists,
+ TQWidget *parent, const char *name) :
KDialogBase(parent, name, true, i18n("Folder List"), Ok | Cancel, Ok, true),
m_dirList(directories),
m_importPlaylists(importPlaylists)
@@ -39,18 +39,18 @@ DirectoryList::DirectoryList(const QStringList &directories, bool importPlaylist
m_base->directoryListView->setFullWidth(true);
- connect(m_base->addDirectoryButton, SIGNAL(clicked()),
- SLOT(slotAddDirectory()));
- connect(m_base->removeDirectoryButton, SIGNAL(clicked()),
- SLOT(slotRemoveDirectory()));
+ connect(m_base->addDirectoryButton, TQT_SIGNAL(clicked()),
+ TQT_SLOT(slotAddDirectory()));
+ connect(m_base->removeDirectoryButton, TQT_SIGNAL(clicked()),
+ TQT_SLOT(slotRemoveDirectory()));
- QStringList::ConstIterator it = directories.begin();
+ TQStringList::ConstIterator it = directories.begin();
for(; it != directories.end(); ++it)
new KListViewItem(m_base->directoryListView, *it);
m_base->importPlaylistsCheckBox->setChecked(importPlaylists);
- QSize sz = sizeHint();
+ TQSize sz = sizeHint();
setMinimumSize(kMax(350, sz.width()), kMax(250, sz.height()));
resize(sizeHint());
}
@@ -77,7 +77,7 @@ DirectoryList::Result DirectoryList::exec()
void DirectoryList::slotAddDirectory()
{
- QString dir = KFileDialog::getExistingDirectory();
+ TQString dir = KFileDialog::getExistingDirectory();
if(!dir.isEmpty() && m_dirList.find(dir) == m_dirList.end()) {
m_dirList.append(dir);
new KListViewItem(m_base->directoryListView, dir);
@@ -90,7 +90,7 @@ void DirectoryList::slotRemoveDirectory()
if(!m_base->directoryListView->selectedItem())
return;
- QString dir = m_base->directoryListView->selectedItem()->text(0);
+ TQString dir = m_base->directoryListView->selectedItem()->text(0);
m_dirList.remove(dir);
m_result.removedDirs.append(dir);
delete m_base->directoryListView->selectedItem();