summaryrefslogtreecommitdiffstats
path: root/kmail/vacationdialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kmail/vacationdialog.cpp')
-rw-r--r--kmail/vacationdialog.cpp60
1 files changed, 30 insertions, 30 deletions
diff --git a/kmail/vacationdialog.cpp b/kmail/vacationdialog.cpp
index b05f3fbf2..a2dabe9b1 100644
--- a/kmail/vacationdialog.cpp
+++ b/kmail/vacationdialog.cpp
@@ -30,16 +30,16 @@ using KMime::HeaderParsing::parseAddressList;
#include <kwin.h>
#include <kapplication.h>
-#include <qlayout.h>
-#include <qlabel.h>
-#include <qcheckbox.h>
-#include <qlineedit.h>
-#include <qtextedit.h>
-#include <qvalidator.h>
+#include <tqlayout.h>
+#include <tqlabel.h>
+#include <tqcheckbox.h>
+#include <tqlineedit.h>
+#include <tqtextedit.h>
+#include <tqvalidator.h>
namespace KMail {
- VacationDialog::VacationDialog( const QString & caption, QWidget * parent,
+ VacationDialog::VacationDialog( const TQString & caption, TQWidget * parent,
const char * name, bool modal )
: KDialogBase( Plain, caption, Ok|Cancel|Default, Ok, parent, name, modal )
{
@@ -48,57 +48,57 @@ namespace KMail {
static const int rows = 7;
int row = -1;
- QGridLayout * glay = new QGridLayout( plainPage(), rows, 2, 0, spacingHint() );
+ TQGridLayout * glay = new TQGridLayout( plainPage(), rows, 2, 0, spacingHint() );
glay->setColStretch( 1, 1 );
// explanation label:
++row;
- glay->addMultiCellWidget( new QLabel( i18n("Configure vacation "
+ glay->addMultiCellWidget( new TQLabel( i18n("Configure vacation "
"notifications to be sent:"),
plainPage() ), row, row, 0, 1 );
// Activate checkbox:
++row;
- mActiveCheck = new QCheckBox( i18n("&Activate vacation notifications"), plainPage() );
+ mActiveCheck = new TQCheckBox( i18n("&Activate vacation notifications"), plainPage() );
glay->addMultiCellWidget( mActiveCheck, row, row, 0, 1 );
// Message text edit:
++row;
glay->setRowStretch( row, 1 );
- mTextEdit = new QTextEdit( plainPage(), "mTextEdit" );
- mTextEdit->setTextFormat( QTextEdit::PlainText );
+ mTextEdit = new TQTextEdit( plainPage(), "mTextEdit" );
+ mTextEdit->setTextFormat( TQTextEdit::PlainText );
glay->addMultiCellWidget( mTextEdit, row, row, 0, 1 );
// "Resent only after" spinbox and label:
++row;
mIntervalSpin = new KIntSpinBox( 1, 356, 1, 7, 10, plainPage(), "mIntervalSpin" );
- connect(mIntervalSpin, SIGNAL( valueChanged( int )), SLOT( slotIntervalSpinChanged( int ) ) );
- glay->addWidget( new QLabel( mIntervalSpin, i18n("&Resend notification only after:"), plainPage() ), row, 0 );
+ connect(mIntervalSpin, TQT_SIGNAL( valueChanged( int )), TQT_SLOT( slotIntervalSpinChanged( int ) ) );
+ glay->addWidget( new TQLabel( mIntervalSpin, i18n("&Resend notification only after:"), plainPage() ), row, 0 );
glay->addWidget( mIntervalSpin, row, 1 );
// "Send responses for these addresses" lineedit and label:
++row;
- mMailAliasesEdit = new QLineEdit( plainPage(), "mMailAliasesEdit" );
- glay->addWidget( new QLabel( mMailAliasesEdit, i18n("&Send responses for these addresses:"), plainPage() ), row, 0 );
+ mMailAliasesEdit = new TQLineEdit( plainPage(), "mMailAliasesEdit" );
+ glay->addWidget( new TQLabel( mMailAliasesEdit, i18n("&Send responses for these addresses:"), plainPage() ), row, 0 );
glay->addWidget( mMailAliasesEdit, row, 1 );
// "Send responses also to SPAM mail" checkbox:
++row;
- mSpamCheck = new QCheckBox( i18n("Do not send vacation replies to spam messages"), plainPage(), "mSpamCheck" );
+ mSpamCheck = new TQCheckBox( i18n("Do not send vacation replies to spam messages"), plainPage(), "mSpamCheck" );
mSpamCheck->setChecked( true );
glay->addMultiCellWidget( mSpamCheck, row, row, 0, 1 );
// domain checkbox and linedit:
++row;
- mDomainCheck = new QCheckBox( i18n("Only react to mail coming from domain"), plainPage(), "mDomainCheck" );
+ mDomainCheck = new TQCheckBox( i18n("Only react to mail coming from domain"), plainPage(), "mDomainCheck" );
mDomainCheck->setChecked( false );
- mDomainEdit = new QLineEdit( plainPage(), "mDomainEdit" );
+ mDomainEdit = new TQLineEdit( plainPage(), "mDomainEdit" );
mDomainEdit->setEnabled( false );
- mDomainEdit->setValidator( new QRegExpValidator( QRegExp( "[a-zA-Z0-9+-]+(?:\\.[a-zA-Z0-9+-]+)*" ), mDomainEdit ) );
+ mDomainEdit->setValidator( new TQRegExpValidator( TQRegExp( "[a-zA-Z0-9+-]+(?:\\.[a-zA-Z0-9+-]+)*" ), mDomainEdit ) );
glay->addWidget( mDomainCheck, row, 0 );
glay->addWidget( mDomainEdit, row, 1 );
- connect( mDomainCheck, SIGNAL(toggled(bool)),
- mDomainEdit, SLOT(setEnabled(bool)) );
+ connect( mDomainCheck, TQT_SIGNAL(toggled(bool)),
+ mDomainEdit, TQT_SLOT(setEnabled(bool)) );
Q_ASSERT( row == rows - 1 );
}
@@ -115,11 +115,11 @@ namespace KMail {
mActiveCheck->setChecked( activate );
}
- QString VacationDialog::messageText() const {
+ TQString VacationDialog::messageText() const {
return mTextEdit->text().stripWhiteSpace();
}
- void VacationDialog::setMessageText( const QString & text ) {
+ void VacationDialog::setMessageText( const TQString & text ) {
mTextEdit->setText( text );
const int height = ( mTextEdit->fontMetrics().lineSpacing() + 1 ) * 11;
mTextEdit->setMinimumHeight( height );
@@ -134,7 +134,7 @@ namespace KMail {
}
AddrSpecList VacationDialog::mailAliases() const {
- QCString text = mMailAliasesEdit->text().latin1(); // ### IMAA: !ok
+ TQCString text = mMailAliasesEdit->text().latin1(); // ### IMAA: !ok
AddressList al;
const char * s = text.begin();
parseAddressList( s, text.end(), al );
@@ -149,13 +149,13 @@ namespace KMail {
}
void VacationDialog::setMailAliases( const AddrSpecList & aliases ) {
- QStringList sl;
+ TQStringList sl;
for ( AddrSpecList::const_iterator it = aliases.begin() ; it != aliases.end() ; ++it )
sl.push_back( (*it).asString() );
mMailAliasesEdit->setText( sl.join(", ") );
}
- void VacationDialog::setMailAliases( const QString & aliases ) {
+ void VacationDialog::setMailAliases( const TQString & aliases ) {
mMailAliasesEdit->setText( aliases );
}
@@ -163,11 +163,11 @@ namespace KMail {
mIntervalSpin->setSuffix( i18n(" day", " days", value) );
}
- QString VacationDialog::domainName() const {
- return mDomainCheck->isChecked() ? mDomainEdit->text() : QString::null ;
+ TQString VacationDialog::domainName() const {
+ return mDomainCheck->isChecked() ? mDomainEdit->text() : TQString::null ;
}
- void VacationDialog::setDomainName( const QString & domain ) {
+ void VacationDialog::setDomainName( const TQString & domain ) {
mDomainEdit->setText( domain );
if ( !domain.isEmpty() )
mDomainCheck->setChecked( true );