summaryrefslogtreecommitdiffstats
path: root/kmail/regexplineedit.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
commit7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch)
tree8474f9b444b2756228600050f07a7ff25de532b2 /kmail/regexplineedit.cpp
parentf587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff)
downloadtdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.tar.gz
tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
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 d629d401a..81748c220 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() );
}
}