diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:54:04 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:54:04 +0000 |
commit | dc6b8e72fed2586239e3514819238c520636c9d9 (patch) | |
tree | 88b200df0a0b7fab9d6f147596173556f1ed9a13 /klinkstatus/src/ui/resultssearchbar.cpp | |
parent | 6927d4436e54551917f600b706a8d6109e49de1c (diff) | |
download | tdewebdev-dc6b8e72fed2586239e3514819238c520636c9d9.tar.gz tdewebdev-dc6b8e72fed2586239e3514819238c520636c9d9.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdewebdev@1157656 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'klinkstatus/src/ui/resultssearchbar.cpp')
-rw-r--r-- | klinkstatus/src/ui/resultssearchbar.cpp | 76 |
1 files changed, 38 insertions, 38 deletions
diff --git a/klinkstatus/src/ui/resultssearchbar.cpp b/klinkstatus/src/ui/resultssearchbar.cpp index 7f772b54..11ec6134 100644 --- a/klinkstatus/src/ui/resultssearchbar.cpp +++ b/klinkstatus/src/ui/resultssearchbar.cpp @@ -27,15 +27,15 @@ #include <kstandarddirs.h> #include <kdebug.h> -#include <qapplication.h> -#include <qhbox.h> -#include <qlabel.h> -#include <qpixmap.h> -#include <qstring.h> -#include <qtimer.h> -#include <qtoolbutton.h> -#include <qtooltip.h> -#include <qlayout.h> +#include <tqapplication.h> +#include <tqhbox.h> +#include <tqlabel.h> +#include <tqpixmap.h> +#include <tqstring.h> +#include <tqtimer.h> +#include <tqtoolbutton.h> +#include <tqtooltip.h> +#include <tqlayout.h> class ResultsSearchBar::ResultsSearchBarPrivate @@ -45,50 +45,50 @@ public: : layout(0), searchLine(0), searchCombo(0), delay(400), m_lastComboIndex(0) {} - QString searchText; - QTimer timer; - QHBoxLayout* layout; + TQString searchText; + TQTimer timer; + TQHBoxLayout* layout; KLineEdit* searchLine; KComboBox* searchCombo; int delay; int m_lastComboIndex; }; -ResultsSearchBar::ResultsSearchBar(QWidget* parent, const char* name) - : QWidget(parent, name), d(new ResultsSearchBar::ResultsSearchBarPrivate) +ResultsSearchBar::ResultsSearchBar(TQWidget* parent, const char* name) + : TQWidget(parent, name), d(new ResultsSearchBar::ResultsSearchBarPrivate) { - setSizePolicy(QSizePolicy(QSizePolicy::Minimum, QSizePolicy::Fixed)); + setSizePolicy(TQSizePolicy(TQSizePolicy::Minimum, TQSizePolicy::Fixed)); - d->layout = new QHBoxLayout(this); + d->layout = new TQHBoxLayout(this); d->layout->setMargin(2); d->layout->setSpacing(5); - QToolButton* clearButton = new QToolButton(this); - clearButton->setIconSet(SmallIconSet(QApplication::reverseLayout() ? "clear_left" : "locationbar_erase")); + TQToolButton* clearButton = new TQToolButton(this); + clearButton->setIconSet(SmallIconSet(TQApplication::reverseLayout() ? "clear_left" : "locationbar_erase")); clearButton->setAutoRaise(true); d->layout->addWidget(clearButton); - QLabel* searchLabel = new QLabel(this); + TQLabel* searchLabel = new TQLabel(this); searchLabel->setText(i18n("S&earch:")); d->layout->addWidget(searchLabel); d->searchLine = new KLineEdit(this, "searchline"); - connect(d->searchLine, SIGNAL(textChanged(const QString &)), - this, SLOT(slotSearchStringChanged(const QString &))); + connect(d->searchLine, TQT_SIGNAL(textChanged(const TQString &)), + this, TQT_SLOT(slotSearchStringChanged(const TQString &))); searchLabel->setBuddy(d->searchLine); d->layout->addWidget(d->searchLine); - QLabel* statusLabel = new QLabel(this); + TQLabel* statusLabel = new TQLabel(this); statusLabel->setText( i18n("Status:") ); d->layout->addWidget(statusLabel); d->searchCombo = new KComboBox(this, "searchcombo"); - QPixmap iconAll = KGlobal::iconLoader()->loadIcon("exec", KIcon::Small); - QPixmap iconGood = KGlobal::iconLoader()->loadIcon("ok", KIcon::Small); - QPixmap iconBroken = KGlobal::iconLoader()->loadIcon("no", KIcon::Small); - QPixmap iconMalformed = KGlobal::iconLoader()->loadIcon("bug", KIcon::Small); - QPixmap iconUndetermined = KGlobal::iconLoader()->loadIcon("help", KIcon::Small); + TQPixmap iconAll = KGlobal::iconLoader()->loadIcon("exec", KIcon::Small); + TQPixmap iconGood = KGlobal::iconLoader()->loadIcon("ok", KIcon::Small); + TQPixmap iconBroken = KGlobal::iconLoader()->loadIcon("no", KIcon::Small); + TQPixmap iconMalformed = KGlobal::iconLoader()->loadIcon("bug", KIcon::Small); + TQPixmap iconUndetermined = KGlobal::iconLoader()->loadIcon("help", KIcon::Small); d->searchCombo->insertItem(iconAll, i18n("All Links")); d->searchCombo->insertItem(iconGood, i18n("Good Links")); @@ -97,17 +97,17 @@ ResultsSearchBar::ResultsSearchBar(QWidget* parent, const char* name) d->searchCombo->insertItem(iconUndetermined, i18n("Undetermined Links")); d->layout->addWidget(d->searchCombo); - QToolTip::add(clearButton, i18n("Clear filter")); - QToolTip::add( d->searchLine, i18n("Enter the terms to filter the result link list")); - QToolTip::add( d->searchCombo, i18n("Choose what kind of link status to show in result list")); + TQToolTip::add(clearButton, i18n("Clear filter")); + TQToolTip::add( d->searchLine, i18n("Enter the terms to filter the result link list")); + TQToolTip::add( d->searchCombo, i18n("Choose what kind of link status to show in result list")); - connect(clearButton, SIGNAL( clicked() ), - this, SLOT(slotClearSearch()) ); + connect(clearButton, TQT_SIGNAL( clicked() ), + this, TQT_SLOT(slotClearSearch()) ); - connect(d->searchCombo, SIGNAL(activated(int)), - this, SLOT(slotSearchComboChanged(int))); + connect(d->searchCombo, TQT_SIGNAL(activated(int)), + this, TQT_SLOT(slotSearchComboChanged(int))); - connect(&(d->timer), SIGNAL(timeout()), this, SLOT(slotActivateSearch())); + connect(&(d->timer), TQT_SIGNAL(timeout()), this, TQT_SLOT(slotActivateSearch())); } ResultsSearchBar::~ResultsSearchBar() @@ -116,7 +116,7 @@ ResultsSearchBar::~ResultsSearchBar() d = 0; } -QString const& ResultsSearchBar::text() const +TQString const& ResultsSearchBar::text() const { return d->searchText; } @@ -152,7 +152,7 @@ void ResultsSearchBar::slotSetStatus(int status) d->searchCombo->setCurrentItem(status); } -void ResultsSearchBar::slotSetText(const QString& text) +void ResultsSearchBar::slotSetText(const TQString& text) { d->searchLine->setText(text); } @@ -170,7 +170,7 @@ void ResultsSearchBar::slotSearchComboChanged(int index) d->timer.start(200, true); } -void ResultsSearchBar::slotSearchStringChanged(const QString& search) +void ResultsSearchBar::slotSearchStringChanged(const TQString& search) { if(d->timer.isActive()) d->timer.stop(); |