diff options
Diffstat (limited to 'knode/knstringfilter.cpp')
-rw-r--r-- | knode/knstringfilter.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/knode/knstringfilter.cpp b/knode/knstringfilter.cpp index c41b723fe..4f69f7eaf 100644 --- a/knode/knstringfilter.cpp +++ b/knode/knstringfilter.cpp @@ -12,9 +12,9 @@ Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, US */ -#include <qcombobox.h> -#include <qlayout.h> -#include <qcheckbox.h> +#include <tqcombobox.h> +#include <tqlayout.h> +#include <tqcheckbox.h> #include <klocale.h> #include <ksimpleconfig.h> @@ -38,13 +38,13 @@ KNStringFilter& KNStringFilter::operator=(const KNStringFilter &sf) -bool KNStringFilter::doFilter(const QString &s) +bool KNStringFilter::doFilter(const TQString &s) { bool ret=true; if(!expanded.isEmpty()) { if(regExp) { - QRegExp matcher(expanded); + TQRegExp matcher(expanded); ret = ( matcher.search(s) >= 0 ); } else ret=(s.find(expanded,0,false)!=-1); @@ -69,8 +69,8 @@ void KNStringFilter::expand(KNGroup *g) } expanded = data; - expanded.replace(QRegExp("%MYNAME"), id->name()); - expanded.replace(QRegExp("%MYEMAIL"), id->email()); + expanded.replace(TQRegExp("%MYNAME"), id->name()); + expanded.replace(TQRegExp("%MYEMAIL"), id->email()); } @@ -94,18 +94,18 @@ void KNStringFilter::save(KSimpleConfig *conf) //=============================================================================== -KNStringFilterWidget::KNStringFilterWidget(const QString& title, QWidget *parent) - : QGroupBox(title, parent) +KNStringFilterWidget::KNStringFilterWidget(const TQString& title, TQWidget *parent) + : TQGroupBox(title, parent) { - fType=new QComboBox(this); + fType=new TQComboBox(this); fType->insertItem(i18n("Does Contain")); fType->insertItem(i18n("Does NOT Contain")); fString=new KLineEdit(this); - regExp=new QCheckBox(i18n("Regular expression"), this); + regExp=new TQCheckBox(i18n("Regular expression"), this); - QGridLayout *topL=new QGridLayout(this, 3,3, 8,5 ); + TQGridLayout *topL=new TQGridLayout(this, 3,3, 8,5 ); topL->addRowSpacing(0, fontMetrics().lineSpacing()-4); topL->addWidget(fType, 1,0); topL->addColSpacing(1, 10); |