summaryrefslogtreecommitdiffstats
path: root/kmail/regexplineedit.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kmail/regexplineedit.cpp')
-rw-r--r--kmail/regexplineedit.cpp42
1 files changed, 21 insertions, 21 deletions
diff --git a/kmail/regexplineedit.cpp b/kmail/regexplineedit.cpp
index d629d401..81748c22 100644
--- a/kmail/regexplineedit.cpp
+++ b/kmail/regexplineedit.cpp
@@ -42,15 +42,15 @@
#include <kregexpeditorinterface.h>
#include <kdialog.h>
-#include <qlayout.h>
-#include <qstring.h>
-#include <qpushbutton.h>
-#include <qdialog.h>
+#include <tqlayout.h>
+#include <tqstring.h>
+#include <tqpushbutton.h>
+#include <tqdialog.h>
namespace KMail {
- RegExpLineEdit::RegExpLineEdit( QWidget *parent, const char *name )
- : QWidget( parent, name ),
+ RegExpLineEdit::RegExpLineEdit( TQWidget *parent, const char *name )
+ : TQWidget( parent, name ),
mLineEdit( 0 ),
mRegExpEditButton( 0 ),
mRegExpEditDialog( 0 )
@@ -58,9 +58,9 @@ namespace KMail {
initWidget();
}
- RegExpLineEdit::RegExpLineEdit( const QString &str, QWidget *parent,
+ RegExpLineEdit::RegExpLineEdit( const TQString &str, TQWidget *parent,
const char *name )
- : QWidget( parent, name ),
+ : TQWidget( parent, name ),
mLineEdit( 0 ),
mRegExpEditButton( 0 ),
mRegExpEditDialog( 0 )
@@ -68,26 +68,26 @@ namespace KMail {
initWidget( str );
}
- void RegExpLineEdit::initWidget( const QString &str )
+ void RegExpLineEdit::initWidget( const TQString &str )
{
- QHBoxLayout * hlay = new QHBoxLayout( this, 0, KDialog::spacingHint() );
+ TQHBoxLayout * hlay = new TQHBoxLayout( this, 0, KDialog::spacingHint() );
mLineEdit = new KLineEdit( str, this );
setFocusProxy( mLineEdit );
hlay->addWidget( mLineEdit );
- connect( mLineEdit, SIGNAL( textChanged( const QString & ) ),
- this, SIGNAL( textChanged( const QString & ) ) );
+ connect( mLineEdit, TQT_SIGNAL( textChanged( const TQString & ) ),
+ this, TQT_SIGNAL( textChanged( const TQString & ) ) );
if( !KTrader::self()->query("KRegExpEditor/KRegExpEditor").isEmpty() ) {
- mRegExpEditButton = new QPushButton( i18n("Edit..."), this,
+ mRegExpEditButton = new TQPushButton( i18n("Edit..."), this,
"mRegExpEditButton" );
- mRegExpEditButton->setSizePolicy( QSizePolicy::Minimum,
- QSizePolicy::Fixed );
+ mRegExpEditButton->setSizePolicy( TQSizePolicy::Minimum,
+ TQSizePolicy::Fixed );
hlay->addWidget( mRegExpEditButton );
- connect( mRegExpEditButton, SIGNAL( clicked() ),
- this, SLOT( slotEditRegExp() ) );
+ connect( mRegExpEditButton, TQT_SIGNAL( clicked() ),
+ this, TQT_SLOT( slotEditRegExp() ) );
}
}
@@ -96,12 +96,12 @@ namespace KMail {
mLineEdit->clear();
}
- QString RegExpLineEdit::text() const
+ TQString RegExpLineEdit::text() const
{
return mLineEdit->text();
}
- void RegExpLineEdit::setText( const QString & str )
+ void RegExpLineEdit::setText( const TQString & str )
{
mLineEdit->setText( str );
}
@@ -120,13 +120,13 @@ namespace KMail {
void RegExpLineEdit::slotEditRegExp()
{
if ( !mRegExpEditDialog )
- mRegExpEditDialog = KParts::ComponentFactory::createInstanceFromQuery<QDialog>( "KRegExpEditor/KRegExpEditor", QString::null, this );
+ mRegExpEditDialog = KParts::ComponentFactory::createInstanceFromQuery<TQDialog>( "KRegExpEditor/KRegExpEditor", TQString::null, this );
KRegExpEditorInterface *iface =
static_cast<KRegExpEditorInterface *>( mRegExpEditDialog->qt_cast( "KRegExpEditorInterface" ) );
if( iface ) {
iface->setRegExp( mLineEdit->text() );
- if( mRegExpEditDialog->exec() == QDialog::Accepted )
+ if( mRegExpEditDialog->exec() == TQDialog::Accepted )
mLineEdit->setText( iface->regExp() );
}
}