summaryrefslogtreecommitdiffstats
path: root/kmail/expirypropertiesdialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kmail/expirypropertiesdialog.cpp')
-rw-r--r--kmail/expirypropertiesdialog.cpp84
1 files changed, 42 insertions, 42 deletions
diff --git a/kmail/expirypropertiesdialog.cpp b/kmail/expirypropertiesdialog.cpp
index 62d9047fa..a313cc88d 100644
--- a/kmail/expirypropertiesdialog.cpp
+++ b/kmail/expirypropertiesdialog.cpp
@@ -4,18 +4,18 @@
#include "kmfolder.h"
#include "kmfoldertree.h"
-#include <qvariant.h>
-#include <qpushbutton.h>
-#include <qgroupbox.h>
-#include <qcheckbox.h>
-#include <qspinbox.h>
-#include <qlabel.h>
-#include <qradiobutton.h>
-#include <qbuttongroup.h>
-#include <qcombobox.h>
-#include <qlayout.h>
-#include <qtooltip.h>
-#include <qwhatsthis.h>
+#include <tqvariant.h>
+#include <tqpushbutton.h>
+#include <tqgroupbox.h>
+#include <tqcheckbox.h>
+#include <tqspinbox.h>
+#include <tqlabel.h>
+#include <tqradiobutton.h>
+#include <tqbuttongroup.h>
+#include <tqcombobox.h>
+#include <tqlayout.h>
+#include <tqtooltip.h>
+#include <tqwhatsthis.h>
#include <klocale.h>
#include <kmessagebox.h>
@@ -34,66 +34,66 @@ ExpiryPropertiesDialog::ExpiryPropertiesDialog( KMFolderTree* tree, KMFolder* fo
mFolder( folder )
{
setWFlags( getWFlags() | WDestructiveClose );
- QWidget* privateLayoutWidget = new QWidget( this, "globalVBox" );
+ TQWidget* privateLayoutWidget = new TQWidget( this, "globalVBox" );
setMainWidget( privateLayoutWidget );
- privateLayoutWidget->setGeometry( QRect( 10, 20, 270, 138 ) );
- globalVBox = new QVBoxLayout( privateLayoutWidget, 11, 6, "globalVBox");
+ privateLayoutWidget->setGeometry( TQRect( 10, 20, 270, 138 ) );
+ globalVBox = new TQVBoxLayout( privateLayoutWidget, 11, 6, "globalVBox");
globalVBox->setSpacing( 20 );
- readHBox = new QHBoxLayout( 0, 0, 6, "readHBox");
+ readHBox = new TQHBoxLayout( 0, 0, 6, "readHBox");
- expireReadMailCB = new QCheckBox( privateLayoutWidget, "expireReadMailCB" );
+ expireReadMailCB = new TQCheckBox( privateLayoutWidget, "expireReadMailCB" );
expireReadMailCB->setText( i18n( "Expire read mails after" ) );
- connect( expireReadMailCB, SIGNAL( toggled( bool )),
- this, SLOT( slotUpdateControls() ) );
+ connect( expireReadMailCB, TQT_SIGNAL( toggled( bool )),
+ this, TQT_SLOT( slotUpdateControls() ) );
readHBox->addWidget( expireReadMailCB );
- expireReadMailSB = new QSpinBox( privateLayoutWidget, "expireReadMailSB" );
+ expireReadMailSB = new TQSpinBox( privateLayoutWidget, "expireReadMailSB" );
expireReadMailSB->setMaxValue( 999999 );
expireReadMailSB->setValue( 30 );
readHBox->addWidget( expireReadMailSB );
- labelDays = new QLabel( privateLayoutWidget, "labelDays" );
+ labelDays = new TQLabel( privateLayoutWidget, "labelDays" );
labelDays->setText( i18n( "days" ) );
readHBox->addWidget( labelDays );
globalVBox->addLayout( readHBox );
- unreadHBox = new QHBoxLayout( 0, 0, 6, "unreadHBox");
+ unreadHBox = new TQHBoxLayout( 0, 0, 6, "unreadHBox");
- expireUnreadMailCB = new QCheckBox( privateLayoutWidget, "expireUnreadMailCB" );
+ expireUnreadMailCB = new TQCheckBox( privateLayoutWidget, "expireUnreadMailCB" );
expireUnreadMailCB->setText( i18n( "Expire unread mails after" ) );
- connect( expireUnreadMailCB, SIGNAL( toggled( bool )),
- this, SLOT( slotUpdateControls() ) );
+ connect( expireUnreadMailCB, TQT_SIGNAL( toggled( bool )),
+ this, TQT_SLOT( slotUpdateControls() ) );
unreadHBox->addWidget( expireUnreadMailCB );
- expireUnreadMailSB = new QSpinBox( privateLayoutWidget, "expireUnreadMailSB" );
+ expireUnreadMailSB = new TQSpinBox( privateLayoutWidget, "expireUnreadMailSB" );
expireUnreadMailSB->setMaxValue( 99999 );
expireUnreadMailSB->setValue( 30 );
unreadHBox->addWidget( expireUnreadMailSB );
- labelDays2 = new QLabel( privateLayoutWidget, "labelDays2" );
+ labelDays2 = new TQLabel( privateLayoutWidget, "labelDays2" );
labelDays2->setText( i18n( "days" ) );
- labelDays2->setAlignment( int( QLabel::AlignTop ) );
+ labelDays2->setAlignment( int( TQLabel::AlignTop ) );
unreadHBox->addWidget( labelDays2 );
globalVBox->addLayout( unreadHBox );
- expiryActionHBox = new QHBoxLayout( 0, 0, 6, "expiryActionHBox");
+ expiryActionHBox = new TQHBoxLayout( 0, 0, 6, "expiryActionHBox");
- expiryActionLabel = new QLabel( privateLayoutWidget, "expiryActionLabel" );
+ expiryActionLabel = new TQLabel( privateLayoutWidget, "expiryActionLabel" );
expiryActionLabel->setText( i18n( "Expiry action:" ) );
- expiryActionLabel->setAlignment( int( QLabel::AlignVCenter ) );
+ expiryActionLabel->setAlignment( int( TQLabel::AlignVCenter ) );
expiryActionHBox->addWidget( expiryActionLabel );
- actionsHBox = new QVBoxLayout( 0, 0, 6, "actionsHBox");
- actionsGroup = new QButtonGroup( this );
+ actionsHBox = new TQVBoxLayout( 0, 0, 6, "actionsHBox");
+ actionsGroup = new TQButtonGroup( this );
actionsGroup->hide(); // for mutual exclusion of the radio buttons
- moveToHBox = new QHBoxLayout( 0, 0, 6, "moveToHBox");
+ moveToHBox = new TQHBoxLayout( 0, 0, 6, "moveToHBox");
- moveToRB = new QRadioButton( privateLayoutWidget, "moveToRB" );
+ moveToRB = new TQRadioButton( privateLayoutWidget, "moveToRB" );
actionsGroup->insert( moveToRB );
- connect( moveToRB, SIGNAL( toggled( bool ) ),
- this, SLOT( slotUpdateControls() ) );
+ connect( moveToRB, TQT_SIGNAL( toggled( bool ) ),
+ this, TQT_SLOT( slotUpdateControls() ) );
moveToRB->setText( i18n( "Move to:" ) );
moveToHBox->addWidget( moveToRB );
@@ -102,16 +102,16 @@ ExpiryPropertiesDialog::ExpiryPropertiesDialog( KMFolderTree* tree, KMFolder* fo
moveToHBox->addWidget( folderSelector );
actionsHBox->addLayout( moveToHBox );
- deletePermanentlyRB = new QRadioButton( privateLayoutWidget, "deletePermanentlyRB" );
+ deletePermanentlyRB = new TQRadioButton( privateLayoutWidget, "deletePermanentlyRB" );
actionsGroup->insert( deletePermanentlyRB );
deletePermanentlyRB->setText( i18n( "Delete permanently" ) );
actionsHBox->addWidget( deletePermanentlyRB );
expiryActionHBox->addLayout( actionsHBox );
globalVBox->addLayout( expiryActionHBox );
- note = new QLabel( privateLayoutWidget, "note" );
+ note = new TQLabel( privateLayoutWidget, "note" );
note->setText( i18n( "Note: Expiry action will be applied immediately after confirming settings." ) );
- note->setAlignment( int( QLabel::WordBreak | QLabel::AlignVCenter ) );
+ note->setAlignment( int( TQLabel::WordBreak | TQLabel::AlignVCenter ) );
globalVBox->addWidget( note );
// Load the values from the folder
@@ -137,14 +137,14 @@ ExpiryPropertiesDialog::ExpiryPropertiesDialog( KMFolderTree* tree, KMFolder* fo
else
moveToRB->setChecked( true );
- QString destFolderID = mFolder->expireToFolderId();
+ TQString destFolderID = mFolder->expireToFolderId();
if ( !destFolderID.isEmpty() ) {
KMFolder* destFolder = kmkernel->findFolderById( destFolderID );
if ( destFolder )
folderSelector->setFolder( destFolder );
}
slotUpdateControls();
- resize( QSize(295, 204).expandedTo(minimumSizeHint()) );
+ resize( TQSize(295, 204).expandedTo(minimumSizeHint()) );
clearWState( WState_Polished );
}