diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
commit | 7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch) | |
tree | 8474f9b444b2756228600050f07a7ff25de532b2 /kmail/mailinglistpropertiesdialog.cpp | |
parent | f587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff) | |
download | tdepim-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/mailinglistpropertiesdialog.cpp')
-rw-r--r-- | kmail/mailinglistpropertiesdialog.cpp | 88 |
1 files changed, 44 insertions, 44 deletions
diff --git a/kmail/mailinglistpropertiesdialog.cpp b/kmail/mailinglistpropertiesdialog.cpp index 3ea3beaa4..8a9487b06 100644 --- a/kmail/mailinglistpropertiesdialog.cpp +++ b/kmail/mailinglistpropertiesdialog.cpp @@ -25,12 +25,12 @@ ** you do not wish to do so, delete this exception statement from ** your version. *******************************************************************************/ -#include <qlayout.h> -#include <qlabel.h> -#include <qcombobox.h> -#include <qgroupbox.h> -#include <qcheckbox.h> -#include <qpushbutton.h> +#include <tqlayout.h> +#include <tqlabel.h> +#include <tqcombobox.h> +#include <tqgroupbox.h> +#include <tqcheckbox.h> +#include <tqpushbutton.h> #include <klocale.h> #include <keditlistbox.h> @@ -45,69 +45,69 @@ using namespace KMail; -MailingListFolderPropertiesDialog::MailingListFolderPropertiesDialog( QWidget* parent, KMFolder *folder ) +MailingListFolderPropertiesDialog::MailingListFolderPropertiesDialog( TQWidget* parent, KMFolder *folder ) : KDialogBase( parent, "mailinglist_properties", false, i18n( "Mailinglist Folder Properties" ), KDialogBase::Ok|KDialogBase::Cancel, KDialogBase::Ok, true ), mFolder( folder ) { setWFlags( getWFlags() | WDestructiveClose ); - QLabel* label; + TQLabel* label; mLastItem = 0; - QVBoxLayout *topLayout = new QVBoxLayout( layout(), spacingHint(), + TQVBoxLayout *topLayout = new TQVBoxLayout( layout(), spacingHint(), "topLayout" ); - QGroupBox *mlGroup = new QGroupBox( i18n("Associated Mailing List" ), this ); + TQGroupBox *mlGroup = new TQGroupBox( i18n("Associated Mailing List" ), this ); mlGroup->setColumnLayout( 0, Qt::Vertical ); - QGridLayout *groupLayout = new QGridLayout( mlGroup->layout(), 6, 3, spacingHint() ); + TQGridLayout *groupLayout = new TQGridLayout( mlGroup->layout(), 6, 3, spacingHint() ); topLayout->addWidget( mlGroup ); setMainWidget( mlGroup ); - mHoldsMailingList = new QCheckBox( i18n("&Folder holds a mailing list"), mlGroup ); - QObject::connect( mHoldsMailingList, SIGNAL(toggled(bool)), - SLOT(slotHoldsML(bool)) ); + mHoldsMailingList = new TQCheckBox( i18n("&Folder holds a mailing list"), mlGroup ); + TQObject::connect( mHoldsMailingList, TQT_SIGNAL(toggled(bool)), + TQT_SLOT(slotHoldsML(bool)) ); groupLayout->addMultiCellWidget( mHoldsMailingList, 0, 0, 0, 2 ); - groupLayout->addItem( new QSpacerItem( 0, 10 ), 1, 0 ); + groupLayout->addItem( new TQSpacerItem( 0, 10 ), 1, 0 ); - mDetectButton = new QPushButton( i18n("Detect Automatically"), mlGroup ); + mDetectButton = new TQPushButton( i18n("Detect Automatically"), mlGroup ); mDetectButton->setEnabled( false ); - QObject::connect( mDetectButton, SIGNAL(pressed()), SLOT(slotDetectMailingList()) ); + TQObject::connect( mDetectButton, TQT_SIGNAL(pressed()), TQT_SLOT(slotDetectMailingList()) ); groupLayout->addWidget( mDetectButton, 2, 1 ); - groupLayout->addItem( new QSpacerItem( 0, 10 ), 3, 0 ); + groupLayout->addItem( new TQSpacerItem( 0, 10 ), 3, 0 ); - label = new QLabel( i18n("Mailing list description:"), mlGroup ); + label = new TQLabel( i18n("Mailing list description:"), mlGroup ); label->setEnabled( false ); - QObject::connect( mHoldsMailingList, SIGNAL(toggled(bool)), - label, SLOT(setEnabled(bool)) ); + TQObject::connect( mHoldsMailingList, TQT_SIGNAL(toggled(bool)), + label, TQT_SLOT(setEnabled(bool)) ); groupLayout->addWidget( label, 4, 0 ); - mMLId = new QLabel( label, "", mlGroup ); + mMLId = new TQLabel( label, "", mlGroup ); groupLayout->addMultiCellWidget( mMLId, 4, 4, 1, 2 ); mMLId->setEnabled( false ); //FIXME: add QWhatsThis - label = new QLabel( i18n("Preferred handler:"), mlGroup ); + label = new TQLabel( i18n("Preferred handler:"), mlGroup ); label->setEnabled(false); - QObject::connect( mHoldsMailingList, SIGNAL(toggled(bool)), - label, SLOT(setEnabled(bool)) ); + TQObject::connect( mHoldsMailingList, TQT_SIGNAL(toggled(bool)), + label, TQT_SLOT(setEnabled(bool)) ); groupLayout->addWidget( label, 5, 0 ); - mMLHandlerCombo = new QComboBox( mlGroup ); + mMLHandlerCombo = new TQComboBox( mlGroup ); mMLHandlerCombo->insertItem( i18n("KMail"), MailingList::KMail ); mMLHandlerCombo->insertItem( i18n("Browser"), MailingList::Browser ); mMLHandlerCombo->setEnabled( false ); groupLayout->addMultiCellWidget( mMLHandlerCombo, 5, 5, 1, 2 ); - QObject::connect( mMLHandlerCombo, SIGNAL(activated(int)), - SLOT(slotMLHandling(int)) ); + TQObject::connect( mMLHandlerCombo, TQT_SIGNAL(activated(int)), + TQT_SLOT(slotMLHandling(int)) ); label->setBuddy( mMLHandlerCombo ); - label = new QLabel( i18n("&Address type:"), mlGroup ); + label = new TQLabel( i18n("&Address type:"), mlGroup ); label->setEnabled(false); - QObject::connect( mHoldsMailingList, SIGNAL(toggled(bool)), - label, SLOT(setEnabled(bool)) ); + TQObject::connect( mHoldsMailingList, TQT_SIGNAL(toggled(bool)), + label, TQT_SLOT(setEnabled(bool)) ); groupLayout->addWidget( label, 6, 0 ); - mAddressCombo = new QComboBox( mlGroup ); + mAddressCombo = new TQComboBox( mlGroup ); label->setBuddy( mAddressCombo ); groupLayout->addWidget( mAddressCombo, 6, 1 ); mAddressCombo->setEnabled( false ); @@ -115,14 +115,14 @@ MailingListFolderPropertiesDialog::MailingListFolderPropertiesDialog( QWidget* p //FIXME: if the mailing list actions have either KAction's or toolbar buttons // associated with them - remove this button since it's really silly // here - QPushButton *handleButton = new QPushButton( i18n( "Invoke Handler" ), mlGroup ); + TQPushButton *handleButton = new TQPushButton( i18n( "Invoke Handler" ), mlGroup ); handleButton->setEnabled( false ); if( mFolder) { - QObject::connect( mHoldsMailingList, SIGNAL(toggled(bool)), - handleButton, SLOT(setEnabled(bool)) ); - QObject::connect( handleButton, SIGNAL(clicked()), - SLOT(slotInvokeHandler()) ); + TQObject::connect( mHoldsMailingList, TQT_SIGNAL(toggled(bool)), + handleButton, TQT_SLOT(setEnabled(bool)) ); + TQObject::connect( handleButton, TQT_SIGNAL(clicked()), + TQT_SLOT(slotInvokeHandler()) ); } groupLayout->addWidget( handleButton, 6, 2 ); @@ -130,7 +130,7 @@ MailingListFolderPropertiesDialog::MailingListFolderPropertiesDialog( QWidget* p mEditList->setEnabled( false ); groupLayout->addMultiCellWidget( mEditList, 7, 7, 0, 3 ); - QStringList el; + TQStringList el; //Order is important because the activate handler and fillMLFromWidgets //depend on it @@ -140,11 +140,11 @@ MailingListFolderPropertiesDialog::MailingListFolderPropertiesDialog( QWidget* p << i18n( "List Archives" ) << i18n( "List Help" ); mAddressCombo->insertStringList( el ); - QObject::connect( mAddressCombo, SIGNAL(activated(int)), - SLOT(slotAddressChanged(int)) ); + TQObject::connect( mAddressCombo, TQT_SIGNAL(activated(int)), + TQT_SLOT(slotAddressChanged(int)) ); load(); - resize( QSize(295, 204).expandedTo(minimumSizeHint()) ); + resize( TQSize(295, 204).expandedTo(minimumSizeHint()) ); clearWState( WState_Polished ); } @@ -252,9 +252,9 @@ void MailingListFolderPropertiesDialog::fillMLFromWidgets() // make sure that email addresses are prepended by "mailto:" bool changed = false; - QStringList oldList = mEditList->items(); - QStringList newList; // the correct string list - for ( QStringList::ConstIterator it = oldList.begin(); + TQStringList oldList = mEditList->items(); + TQStringList newList; // the correct string list + for ( TQStringList::ConstIterator it = oldList.begin(); it != oldList.end(); ++it ) { if ( !(*it).startsWith("http:") && !(*it).startsWith("https:") && !(*it).startsWith("mailto:") && ( (*it).find('@') != -1 ) ) { |