summaryrefslogtreecommitdiffstats
path: root/juk/advancedsearchdialog.cpp
diff options
context:
space:
mode:
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();
}