summaryrefslogtreecommitdiffstats
path: root/akregator/src/searchbar.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'akregator/src/searchbar.cpp')
-rw-r--r--akregator/src/searchbar.cpp70
1 files changed, 35 insertions, 35 deletions
diff --git a/akregator/src/searchbar.cpp b/akregator/src/searchbar.cpp
index d565c2847..eb5b7cff7 100644
--- a/akregator/src/searchbar.cpp
+++ b/akregator/src/searchbar.cpp
@@ -33,14 +33,14 @@
#include <klocale.h>
#include <kstandarddirs.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 <tqapplication.h>
+#include <tqhbox.h>
+#include <tqlabel.h>
+#include <tqpixmap.h>
+#include <tqstring.h>
+#include <tqtimer.h>
+#include <tqtoolbutton.h>
+#include <tqtooltip.h>
using Akregator::Filters::ArticleMatcher;
using Akregator::Filters::Criterion;
@@ -53,58 +53,58 @@ class SearchBar::SearchBarPrivate
public:
Akregator::Filters::ArticleMatcher textFilter;
Akregator::Filters::ArticleMatcher statusFilter;
- QString searchText;
- QTimer timer;
+ TQString searchText;
+ TQTimer timer;
KLineEdit* searchLine;
KComboBox* searchCombo;
int delay;
};
-SearchBar::SearchBar(QWidget* parent, const char* name) : QHBox(parent, name), d(new SearchBar::SearchBarPrivate)
+SearchBar::SearchBar(TQWidget* parent, const char* name) : TQHBox(parent, name), d(new SearchBar::SearchBarPrivate)
{
d->delay = 400;
setMargin(2);
setSpacing(5);
- setSizePolicy( QSizePolicy( QSizePolicy::Minimum, QSizePolicy::Fixed ) );
- QToolButton *clearButton = new QToolButton(this);
- clearButton->setIconSet( SmallIconSet( QApplication::reverseLayout() ? "clear_left" : "locationbar_erase" ) );
+ setSizePolicy( TQSizePolicy( TQSizePolicy::Minimum, TQSizePolicy::Fixed ) );
+ TQToolButton *clearButton = new TQToolButton(this);
+ clearButton->setIconSet( SmallIconSet( TQApplication::reverseLayout() ? "clear_left" : "locationbar_erase" ) );
clearButton->setAutoRaise(true);
- QLabel* searchLabel = new QLabel(this);
+ TQLabel* searchLabel = new TQLabel(this);
searchLabel->setText( i18n("S&earch:") );
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);
- QLabel* statusLabel = new QLabel(this);
+ TQLabel* statusLabel = new TQLabel(this);
statusLabel->setText( i18n("Status:") );
d->searchCombo = new KComboBox(this, "searchcombo");
- QPixmap iconAll = KGlobal::iconLoader()->loadIcon("exec", KIcon::Small);
- QPixmap iconNew(locate("data", "akregator/pics/kmmsgnew.png"));
- QPixmap iconUnread(locate("data", "akregator/pics/kmmsgunseen.png"));
- QPixmap iconKeep(locate("data", "akregator/pics/kmmsgflag.png"));
+ TQPixmap iconAll = KGlobal::iconLoader()->loadIcon("exec", KIcon::Small);
+ TQPixmap iconNew(locate("data", "akregator/pics/kmmsgnew.png"));
+ TQPixmap iconUnread(locate("data", "akregator/pics/kmmsgunseen.png"));
+ TQPixmap iconKeep(locate("data", "akregator/pics/kmmsgflag.png"));
d->searchCombo->insertItem(iconAll, i18n("All Articles"));
d->searchCombo->insertItem(iconUnread, i18n("Unread"));
d->searchCombo->insertItem(iconNew, i18n("New"));
d->searchCombo->insertItem(iconKeep, i18n("Important"));
- QToolTip::add( clearButton, i18n( "Clear filter" ) );
- QToolTip::add( d->searchLine, i18n( "Enter space-separated terms to filter article list" ) );
- QToolTip::add( d->searchCombo, i18n( "Choose what kind of articles to show in article list" ) );
+ TQToolTip::add( clearButton, i18n( "Clear filter" ) );
+ TQToolTip::add( d->searchLine, i18n( "Enter space-separated terms to filter article list" ) );
+ TQToolTip::add( d->searchCombo, i18n( "Choose what kind of articles to show in article 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()));
}
SearchBar::~SearchBar()
@@ -113,7 +113,7 @@ SearchBar::~SearchBar()
d = 0;
}
-QString SearchBar::text() const
+TQString SearchBar::text() const
{
return d->searchText;
}
@@ -150,7 +150,7 @@ void SearchBar::slotSetStatus(int status)
slotSearchComboChanged(status);
}
-void SearchBar::slotSetText(const QString& text)
+void SearchBar::slotSetText(const TQString& text)
{
d->searchLine->setText(text);
slotSearchStringChanged(text);
@@ -164,7 +164,7 @@ void SearchBar::slotSearchComboChanged(int /*index*/)
d->timer.start(200, true);
}
-void SearchBar::slotSearchStringChanged(const QString& search)
+void SearchBar::slotSearchStringChanged(const TQString& search)
{
d->searchText = search;
if (d->timer.isActive())
@@ -175,8 +175,8 @@ void SearchBar::slotSearchStringChanged(const QString& search)
void SearchBar::slotActivateSearch()
{
- QValueList<Criterion> textCriteria;
- QValueList<Criterion> statusCriteria;
+ TQValueList<Criterion> textCriteria;
+ TQValueList<Criterion> statusCriteria;
if (!d->searchText.isEmpty())
{