diff options
Diffstat (limited to 'klinkstatus/src/ui/resultssearchbar.cpp')
-rw-r--r-- | klinkstatus/src/ui/resultssearchbar.cpp | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/klinkstatus/src/ui/resultssearchbar.cpp b/klinkstatus/src/ui/resultssearchbar.cpp index b19f7764..3318132c 100644 --- a/klinkstatus/src/ui/resultssearchbar.cpp +++ b/klinkstatus/src/ui/resultssearchbar.cpp @@ -35,19 +35,19 @@ #include <tqtimer.h> #include <tqtoolbutton.h> #include <tqtooltip.h> -#include <tqlayout.h> +#include <layout.h> class ResultsSearchBar::ResultsSearchBarPrivate { public: ResultsSearchBarPrivate() - : tqlayout(0), searchLine(0), searchCombo(0), delay(400), m_lastComboIndex(0) + : layout(0), searchLine(0), searchCombo(0), delay(400), m_lastComboIndex(0) {} TQString searchText; TQTimer timer; - TQHBoxLayout* tqlayout; + TQHBoxLayout* layout; KLineEdit* searchLine; KComboBox* searchCombo; int delay; @@ -57,31 +57,31 @@ public: ResultsSearchBar::ResultsSearchBar(TQWidget* parent, const char* name) : TQWidget(parent, name), d(new ResultsSearchBar::ResultsSearchBarPrivate) { - tqsetSizePolicy(TQSizePolicy(TQSizePolicy::Minimum, TQSizePolicy::Fixed)); + setSizePolicy(TQSizePolicy(TQSizePolicy::Minimum, TQSizePolicy::Fixed)); - d->tqlayout = new TQHBoxLayout(this); - d->tqlayout->setMargin(2); - d->tqlayout->setSpacing(5); + d->layout = new TQHBoxLayout(this); + d->layout->setMargin(2); + d->layout->setSpacing(5); TQToolButton* clearButton = new TQToolButton(this); clearButton->setIconSet(SmallIconSet(TQApplication::reverseLayout() ? "clear_left" : "locationbar_erase")); clearButton->setAutoRaise(true); - d->tqlayout->addWidget(clearButton); + d->layout->addWidget(clearButton); TQLabel* searchLabel = new TQLabel(this); searchLabel->setText(i18n("S&earch:")); - d->tqlayout->addWidget(searchLabel); + d->layout->addWidget(searchLabel); d->searchLine = new KLineEdit(this, "searchline"); connect(d->searchLine, TQT_SIGNAL(textChanged(const TQString &)), this, TQT_SLOT(slotSearchStringChanged(const TQString &))); searchLabel->setBuddy(d->searchLine); - d->tqlayout->addWidget(d->searchLine); + d->layout->addWidget(d->searchLine); TQLabel* statusLabel = new TQLabel(this); statusLabel->setText( i18n("Status:") ); - d->tqlayout->addWidget(statusLabel); + d->layout->addWidget(statusLabel); d->searchCombo = new KComboBox(this, "searchcombo"); TQPixmap iconAll = KGlobal::iconLoader()->loadIcon("exec", KIcon::Small); @@ -95,7 +95,7 @@ ResultsSearchBar::ResultsSearchBar(TQWidget* parent, const char* name) d->searchCombo->insertItem(iconBroken, i18n("Broken Links")); d->searchCombo->insertItem(iconMalformed, i18n("Malformed Links")); d->searchCombo->insertItem(iconUndetermined, i18n("Undetermined Links")); - d->tqlayout->addWidget(d->searchCombo); + d->layout->addWidget(d->searchCombo); TQToolTip::add(clearButton, i18n("Clear filter")); TQToolTip::add( d->searchLine, i18n("Enter the terms to filter the result link list")); @@ -147,7 +147,7 @@ void ResultsSearchBar::slotClearSearch() } } -void ResultsSearchBar::slotSettqStatus(int status) +void ResultsSearchBar::slotSetStatus(int status) { d->searchCombo->setCurrentItem(status); } @@ -187,19 +187,19 @@ void ResultsSearchBar::slotActivateSearch() { kdDebug(23100) << "ResultsSearchBar::slotActivateSearch" << endl; - ResultView::tqStatus status = selectedtqStatus(); + ResultView::Status status = selectedStatus(); emit signalSearch(LinkMatcher(d->searchLine->text(), status)); } LinkMatcher ResultsSearchBar::currentLinkMatcher() const { - return LinkMatcher(d->searchLine->text(), selectedtqStatus()); + return LinkMatcher(d->searchLine->text(), selectedStatus()); } -ResultView::tqStatus ResultsSearchBar::selectedtqStatus() const +ResultView::Status ResultsSearchBar::selectedStatus() const { - ResultView::tqStatus status = ResultView::none; + ResultView::Status status = ResultView::none; if(d->searchCombo->currentItem()) { |