summaryrefslogtreecommitdiffstats
path: root/juk/advancedsearchdialog.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/advancedsearchdialog.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/advancedsearchdialog.cpp')
-rw-r--r--juk/advancedsearchdialog.cpp48
1 files changed, 24 insertions, 24 deletions
diff --git a/juk/advancedsearchdialog.cpp b/juk/advancedsearchdialog.cpp
index 4b5f2dbb..711c1275 100644
--- a/juk/advancedsearchdialog.cpp
+++ b/juk/advancedsearchdialog.cpp
@@ -18,13 +18,13 @@
#include <kpushbutton.h>
#include <klocale.h>
-#include <qradiobutton.h>
-#include <qvgroupbox.h>
-#include <qlabel.h>
-#include <qhbox.h>
-#include <qvbox.h>
-#include <qlayout.h>
-#include <qhbuttongroup.h>
+#include <tqradiobutton.h>
+#include <tqvgroupbox.h>
+#include <tqlabel.h>
+#include <tqhbox.h>
+#include <tqvbox.h>
+#include <tqlayout.h>
+#include <tqhbuttongroup.h>
#include "collectionlist.h"
#include "advancedsearchdialog.h"
@@ -34,28 +34,28 @@
// public methods
////////////////////////////////////////////////////////////////////////////////
-AdvancedSearchDialog::AdvancedSearchDialog(const QString &defaultName,
+AdvancedSearchDialog::AdvancedSearchDialog(const TQString &defaultName,
const PlaylistSearch &defaultSearch,
- QWidget *parent,
+ TQWidget *parent,
const char *name) :
KDialogBase(parent, name, true, i18n("Create Search Playlist"), Ok|Cancel)
{
makeVBoxMainWidget();
- QHBox *box = new QHBox(mainWidget());
+ TQHBox *box = new TQHBox(mainWidget());
box->setSpacing(5);
- new QLabel(i18n("Playlist name:"), box);
+ new TQLabel(i18n("Playlist name:"), box);
m_playlistNameLineEdit = new KLineEdit(defaultName, box);
- QVGroupBox *criteriaGroupBox = new QVGroupBox(i18n("Search Criteria"), mainWidget());
- static_cast<QHBox *>(mainWidget())->setStretchFactor(criteriaGroupBox, 1);
+ TQVGroupBox *criteriaGroupBox = new TQVGroupBox(i18n("Search Criteria"), mainWidget());
+ static_cast<TQHBox *>(mainWidget())->setStretchFactor(criteriaGroupBox, 1);
- QHButtonGroup *group = new QHButtonGroup(criteriaGroupBox);
- m_matchAnyButton = new QRadioButton(i18n("Match any of the following"), group);
- m_matchAllButton = new QRadioButton(i18n("Match all of the following"), group);
+ TQHButtonGroup *group = new TQHButtonGroup(criteriaGroupBox);
+ m_matchAnyButton = new TQRadioButton(i18n("Match any of the following"), group);
+ m_matchAllButton = new TQRadioButton(i18n("Match all of the following"), group);
- m_criteria = new QVBox(criteriaGroupBox);
+ m_criteria = new TQVBox(criteriaGroupBox);
if(defaultSearch.isNull()) {
m_searchLines.append(new SearchLine(m_criteria));
@@ -78,21 +78,21 @@ AdvancedSearchDialog::AdvancedSearchDialog(const QString &defaultName,
m_matchAllButton->setChecked(true);
}
- QWidget *buttons = new QWidget(criteriaGroupBox);
- QBoxLayout *l = new QHBoxLayout(buttons, 0, 5);
+ TQWidget *buttons = new TQWidget(criteriaGroupBox);
+ TQBoxLayout *l = new TQHBoxLayout(buttons, 0, 5);
KPushButton *clearButton = new KPushButton(KStdGuiItem::clear(), buttons);
- connect(clearButton, SIGNAL(clicked()), SLOT(clear()));
+ connect(clearButton, TQT_SIGNAL(clicked()), TQT_SLOT(clear()));
l->addWidget(clearButton);
l->addStretch(1);
m_moreButton = new KPushButton(i18n("More"), buttons);
- connect(m_moreButton, SIGNAL(clicked()), SLOT(more()));
+ connect(m_moreButton, TQT_SIGNAL(clicked()), TQT_SLOT(more()));
l->addWidget(m_moreButton);
m_fewerButton = new KPushButton(i18n("Fewer"), buttons);
- connect(m_fewerButton, SIGNAL(clicked()), SLOT(fewer()));
+ connect(m_fewerButton, TQT_SIGNAL(clicked()), TQT_SLOT(fewer()));
l->addWidget(m_fewerButton);
m_playlistNameLineEdit->setFocus();
@@ -127,7 +127,7 @@ void AdvancedSearchDialog::accept()
m_search.addPlaylist(CollectionList::instance());
- QValueListConstIterator<SearchLine *> it = m_searchLines.begin();
+ TQValueListConstIterator<SearchLine *> it = m_searchLines.begin();
for(; it != m_searchLines.end(); ++it)
m_search.addComponent((*it)->searchComponent());
@@ -141,7 +141,7 @@ void AdvancedSearchDialog::accept()
void AdvancedSearchDialog::clear()
{
- QValueListConstIterator<SearchLine *> it = m_searchLines.begin();
+ TQValueListConstIterator<SearchLine *> it = m_searchLines.begin();
for(; it != m_searchLines.end(); ++it)
(*it)->clear();
}