summaryrefslogtreecommitdiffstats
path: root/klinkstatus/src/ui/resultssearchbar.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-16 10:00:36 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-16 10:00:36 -0600
commit1fffbdafa12271a1a635caf46777fb8acfb6f31b (patch)
tree707785bd058e254fd865ca30ed35f37f206aebbc /klinkstatus/src/ui/resultssearchbar.cpp
parent2b0e1de2ffcca7bb93f1fd8ddd32f74041d0d076 (diff)
downloadtdewebdev-1fffbdafa12271a1a635caf46777fb8acfb6f31b.tar.gz
tdewebdev-1fffbdafa12271a1a635caf46777fb8acfb6f31b.zip
Revert "Rename a number of old tq methods that are no longer tq specific"
This reverts commit 2b0e1de2ffcca7bb93f1fd8ddd32f74041d0d076.
Diffstat (limited to 'klinkstatus/src/ui/resultssearchbar.cpp')
-rw-r--r--klinkstatus/src/ui/resultssearchbar.cpp34
1 files changed, 17 insertions, 17 deletions
diff --git a/klinkstatus/src/ui/resultssearchbar.cpp b/klinkstatus/src/ui/resultssearchbar.cpp
index 3318132c..b19f7764 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 <layout.h>
+#include <tqlayout.h>
class ResultsSearchBar::ResultsSearchBarPrivate
{
public:
ResultsSearchBarPrivate()
- : layout(0), searchLine(0), searchCombo(0), delay(400), m_lastComboIndex(0)
+ : tqlayout(0), searchLine(0), searchCombo(0), delay(400), m_lastComboIndex(0)
{}
TQString searchText;
TQTimer timer;
- TQHBoxLayout* layout;
+ TQHBoxLayout* tqlayout;
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)
{
- setSizePolicy(TQSizePolicy(TQSizePolicy::Minimum, TQSizePolicy::Fixed));
+ tqsetSizePolicy(TQSizePolicy(TQSizePolicy::Minimum, TQSizePolicy::Fixed));
- d->layout = new TQHBoxLayout(this);
- d->layout->setMargin(2);
- d->layout->setSpacing(5);
+ d->tqlayout = new TQHBoxLayout(this);
+ d->tqlayout->setMargin(2);
+ d->tqlayout->setSpacing(5);
TQToolButton* clearButton = new TQToolButton(this);
clearButton->setIconSet(SmallIconSet(TQApplication::reverseLayout() ? "clear_left" : "locationbar_erase"));
clearButton->setAutoRaise(true);
- d->layout->addWidget(clearButton);
+ d->tqlayout->addWidget(clearButton);
TQLabel* searchLabel = new TQLabel(this);
searchLabel->setText(i18n("S&earch:"));
- d->layout->addWidget(searchLabel);
+ d->tqlayout->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->layout->addWidget(d->searchLine);
+ d->tqlayout->addWidget(d->searchLine);
TQLabel* statusLabel = new TQLabel(this);
statusLabel->setText( i18n("Status:") );
- d->layout->addWidget(statusLabel);
+ d->tqlayout->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->layout->addWidget(d->searchCombo);
+ d->tqlayout->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::slotSetStatus(int status)
+void ResultsSearchBar::slotSettqStatus(int status)
{
d->searchCombo->setCurrentItem(status);
}
@@ -187,19 +187,19 @@ void ResultsSearchBar::slotActivateSearch()
{
kdDebug(23100) << "ResultsSearchBar::slotActivateSearch" << endl;
- ResultView::Status status = selectedStatus();
+ ResultView::tqStatus status = selectedtqStatus();
emit signalSearch(LinkMatcher(d->searchLine->text(), status));
}
LinkMatcher ResultsSearchBar::currentLinkMatcher() const
{
- return LinkMatcher(d->searchLine->text(), selectedStatus());
+ return LinkMatcher(d->searchLine->text(), selectedtqStatus());
}
-ResultView::Status ResultsSearchBar::selectedStatus() const
+ResultView::tqStatus ResultsSearchBar::selectedtqStatus() const
{
- ResultView::Status status = ResultView::none;
+ ResultView::tqStatus status = ResultView::none;
if(d->searchCombo->currentItem())
{