From e654398e46e37abf457b2b1122ab898d2c51c49f Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:43:15 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdemultimedia@1157644 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- juk/advancedsearchdialog.cpp | 48 ++++++++++++++++++++++---------------------- 1 file changed, 24 insertions(+), 24 deletions(-) (limited to 'juk/advancedsearchdialog.cpp') 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 #include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include #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(mainWidget())->setStretchFactor(criteriaGroupBox, 1); + TQVGroupBox *criteriaGroupBox = new TQVGroupBox(i18n("Search Criteria"), mainWidget()); + static_cast(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 it = m_searchLines.begin(); + TQValueListConstIterator 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 it = m_searchLines.begin(); + TQValueListConstIterator it = m_searchLines.begin(); for(; it != m_searchLines.end(); ++it) (*it)->clear(); } -- cgit v1.2.1