summaryrefslogtreecommitdiffstats
path: root/kmail
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
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')
-rw-r--r--kmail/accountcombobox.cpp30
-rw-r--r--kmail/accountcombobox.h6
-rw-r--r--kmail/accountdialog.cpp784
-rw-r--r--kmail/accountdialog.h254
-rw-r--r--kmail/accountmanager.cpp60
-rw-r--r--kmail/accountmanager.h16
-rw-r--r--kmail/accountwizard.cpp188
-rw-r--r--kmail/accountwizard.h60
-rw-r--r--kmail/acljobs.cpp64
-rw-r--r--kmail/acljobs.h34
-rw-r--r--kmail/actionscheduler.cpp166
-rw-r--r--kmail/actionscheduler.h38
-rw-r--r--kmail/annotationjobs.cpp64
-rw-r--r--kmail/annotationjobs.h54
-rw-r--r--kmail/antispamconfig.cpp20
-rw-r--r--kmail/antispamconfig.h28
-rw-r--r--kmail/antispamwizard.cpp294
-rw-r--r--kmail/antispamwizard.h136
-rw-r--r--kmail/attachmentlistview.cpp30
-rw-r--r--kmail/attachmentlistview.h10
-rw-r--r--kmail/attachmentstrategy.cpp6
-rw-r--r--kmail/attachmentstrategy.h2
-rw-r--r--kmail/bodypartformatterfactory.cpp14
-rw-r--r--kmail/bodypartformatterfactory.h4
-rw-r--r--kmail/bodypartformatterfactory_p.h2
-rw-r--r--kmail/bodyvisitor.cpp10
-rw-r--r--kmail/bodyvisitor.h12
-rw-r--r--kmail/cachedimapjob.cpp150
-rw-r--r--kmail/cachedimapjob.h36
-rw-r--r--kmail/callback.cpp38
-rw-r--r--kmail/callback.h12
-rw-r--r--kmail/chiasmuskeyselector.cpp26
-rw-r--r--kmail/chiasmuskeyselector.h12
-rw-r--r--kmail/colorlistbox.cpp42
-rw-r--r--kmail/colorlistbox.h28
-rw-r--r--kmail/compactionjob.cpp38
-rw-r--r--kmail/compactionjob.h12
-rw-r--r--kmail/composer.h30
-rw-r--r--kmail/configuredialog.cpp2020
-rw-r--r--kmail/configuredialog.h10
-rw-r--r--kmail/configuredialog_p.cpp164
-rw-r--r--kmail/configuredialog_p.h454
-rw-r--r--kmail/copyfolderjob.cpp26
-rw-r--r--kmail/copyfolderjob.h10
-rw-r--r--kmail/csshelper.cpp12
-rw-r--r--kmail/csshelper.h2
-rw-r--r--kmail/customtemplates.cpp106
-rw-r--r--kmail/customtemplates.h22
-rw-r--r--kmail/dcoptest.cpp2
-rw-r--r--kmail/dictionarycombobox.cpp26
-rw-r--r--kmail/dictionarycombobox.h18
-rw-r--r--kmail/distributionlistdialog.cpp48
-rw-r--r--kmail/distributionlistdialog.h4
-rw-r--r--kmail/editorwatcher.cpp18
-rw-r--r--kmail/editorwatcher.h14
-rw-r--r--kmail/encodingdetector.cpp78
-rw-r--r--kmail/encodingdetector.h26
-rw-r--r--kmail/encodingdetector_ja.cpp2
-rw-r--r--kmail/encodingdetector_ja_p.h2
-rw-r--r--kmail/expirejob.cpp14
-rw-r--r--kmail/expirejob.h4
-rw-r--r--kmail/expirypropertiesdialog.cpp84
-rw-r--r--kmail/expirypropertiesdialog.h36
-rw-r--r--kmail/favoritefolderview.cpp160
-rw-r--r--kmail/favoritefolderview.h24
-rw-r--r--kmail/filehtmlwriter.cpp14
-rw-r--r--kmail/filehtmlwriter.h18
-rw-r--r--kmail/filterimporterexporter.cpp60
-rw-r--r--kmail/filterimporterexporter.h14
-rw-r--r--kmail/filterlog.cpp28
-rw-r--r--kmail/filterlog.h18
-rw-r--r--kmail/filterlogdlg.cpp114
-rw-r--r--kmail/filterlogdlg.h20
-rw-r--r--kmail/folderIface.cpp6
-rw-r--r--kmail/folderIface.h20
-rw-r--r--kmail/folderdiaacltab.cpp186
-rw-r--r--kmail/folderdiaacltab.h34
-rw-r--r--kmail/folderdiaquotatab.cpp40
-rw-r--r--kmail/folderdiaquotatab.h10
-rw-r--r--kmail/folderdiaquotatab_p.cpp34
-rw-r--r--kmail/folderdiaquotatab_p.h18
-rw-r--r--kmail/folderjob.cpp6
-rw-r--r--kmail/folderjob.h24
-rw-r--r--kmail/folderpropertiesdialog.ui.h2
-rw-r--r--kmail/folderrequester.cpp24
-rw-r--r--kmail/folderrequester.h14
-rw-r--r--kmail/foldershortcutdialog.cpp28
-rw-r--r--kmail/foldershortcutdialog.h2
-rw-r--r--kmail/folderstorage.cpp120
-rw-r--r--kmail/folderstorage.h52
-rw-r--r--kmail/foldertreebase.cpp34
-rw-r--r--kmail/foldertreebase.h14
-rw-r--r--kmail/folderviewtooltip.h22
-rw-r--r--kmail/globalsettings.cpp6
-rw-r--r--kmail/globalsettings.h4
-rw-r--r--kmail/headeritem.cpp128
-rw-r--r--kmail/headeritem.h52
-rw-r--r--kmail/headerlistquicksearch.cpp46
-rw-r--r--kmail/headerlistquicksearch.h20
-rw-r--r--kmail/headerstrategy.cpp44
-rw-r--r--kmail/headerstrategy.h8
-rw-r--r--kmail/headerstyle.cpp252
-rw-r--r--kmail/headerstyle.h6
-rw-r--r--kmail/htmlstatusbar.cpp18
-rw-r--r--kmail/htmlstatusbar.h12
-rw-r--r--kmail/identitydialog.cpp192
-rw-r--r--kmail/identitydialog.h30
-rw-r--r--kmail/identitydrag.cpp16
-rw-r--r--kmail/identitydrag.h14
-rw-r--r--kmail/identitylistview.cpp10
-rw-r--r--kmail/identitylistview.h12
-rw-r--r--kmail/imapaccountbase.cpp304
-rw-r--r--kmail/imapaccountbase.h122
-rw-r--r--kmail/imapjob.cpp106
-rw-r--r--kmail/imapjob.h18
-rw-r--r--kmail/index.cpp88
-rw-r--r--kmail/index.h28
-rw-r--r--kmail/interfaces/bodypart.h22
-rw-r--r--kmail/interfaces/bodyparturlhandler.h10
-rw-r--r--kmail/interfaces/htmlwriter.h8
-rw-r--r--kmail/interfaces/rulewidgethandler.h44
-rw-r--r--kmail/interfaces/urlhandler.h4
-rw-r--r--kmail/isubject.cpp6
-rw-r--r--kmail/isubject.h4
-rw-r--r--kmail/jobscheduler.cpp10
-rw-r--r--kmail/jobscheduler.h18
-rw-r--r--kmail/kcm_kmail.cpp12
-rw-r--r--kmail/kcursorsaver.h16
-rw-r--r--kmail/keyresolver.cpp112
-rw-r--r--kmail/keyresolver.h42
-rw-r--r--kmail/khtmlparthtmlwriter.cpp20
-rw-r--r--kmail/khtmlparthtmlwriter.h24
-rw-r--r--kmail/klistboxdialog.cpp36
-rw-r--r--kmail/klistboxdialog.h22
-rw-r--r--kmail/klistviewindexedsearchline.cpp6
-rw-r--r--kmail/klistviewindexedsearchline.h8
-rw-r--r--kmail/kmaccount.cpp60
-rw-r--r--kmail/kmaccount.h64
-rw-r--r--kmail/kmacctcachedimap.cpp108
-rw-r--r--kmail/kmacctcachedimap.h42
-rw-r--r--kmail/kmacctfolder.h2
-rw-r--r--kmail/kmacctimap.cpp126
-rw-r--r--kmail/kmacctimap.h18
-rw-r--r--kmail/kmacctlocal.cpp34
-rw-r--r--kmail/kmacctlocal.h18
-rw-r--r--kmail/kmacctmaildir.cpp22
-rw-r--r--kmail/kmacctmaildir.h10
-rw-r--r--kmail/kmacctseldlg.cpp28
-rw-r--r--kmail/kmacctseldlg.h2
-rw-r--r--kmail/kmaddrbook.cpp36
-rw-r--r--kmail/kmaddrbook.h10
-rw-r--r--kmail/kmailIface.h128
-rw-r--r--kmail/kmail_part.cpp40
-rw-r--r--kmail/kmail_part.h14
-rw-r--r--kmail/kmailicalIface.h92
-rw-r--r--kmail/kmailicalifaceimpl.cpp438
-rw-r--r--kmail/kmailicalifaceimpl.h140
-rw-r--r--kmail/kmatmlistview.cpp40
-rw-r--r--kmail/kmatmlistview.h30
-rw-r--r--kmail/kmcommands.cpp596
-rw-r--r--kmail/kmcommands.h246
-rw-r--r--kmail/kmcomposewin.cpp1226
-rw-r--r--kmail/kmcomposewin.h200
-rw-r--r--kmail/kmdebug.h8
-rw-r--r--kmail/kmdict.cpp2
-rw-r--r--kmail/kmedit.cpp162
-rw-r--r--kmail/kmedit.h42
-rw-r--r--kmail/kmfawidgets.cpp58
-rw-r--r--kmail/kmfawidgets.h22
-rw-r--r--kmail/kmfilter.cpp42
-rw-r--r--kmail/kmfilter.h20
-rw-r--r--kmail/kmfilteraction.cpp448
-rw-r--r--kmail/kmfilteraction.h194
-rw-r--r--kmail/kmfilterdlg.cpp420
-rw-r--r--kmail/kmfilterdlg.h84
-rw-r--r--kmail/kmfiltermgr.cpp58
-rw-r--r--kmail/kmfiltermgr.h22
-rw-r--r--kmail/kmfolder.cpp168
-rw-r--r--kmail/kmfolder.h82
-rw-r--r--kmail/kmfoldercachedimap.cpp500
-rw-r--r--kmail/kmfoldercachedimap.h120
-rw-r--r--kmail/kmfoldercombobox.cpp62
-rw-r--r--kmail/kmfoldercombobox.h18
-rw-r--r--kmail/kmfolderdia.cpp204
-rw-r--r--kmail/kmfolderdia.h52
-rw-r--r--kmail/kmfolderdir.cpp56
-rw-r--r--kmail/kmfolderdir.h28
-rw-r--r--kmail/kmfolderimap.cpp468
-rw-r--r--kmail/kmfolderimap.h106
-rw-r--r--kmail/kmfolderindex.cpp38
-rw-r--r--kmail/kmfolderindex.h2
-rw-r--r--kmail/kmfoldermaildir.cpp212
-rw-r--r--kmail/kmfoldermaildir.h32
-rw-r--r--kmail/kmfoldermbox.cpp132
-rw-r--r--kmail/kmfoldermbox.h10
-rw-r--r--kmail/kmfoldermgr.cpp86
-rw-r--r--kmail/kmfoldermgr.h52
-rw-r--r--kmail/kmfoldernode.cpp8
-rw-r--r--kmail/kmfoldernode.h22
-rw-r--r--kmail/kmfoldersearch.cpp238
-rw-r--r--kmail/kmfoldersearch.h50
-rw-r--r--kmail/kmfolderseldlg.cpp118
-rw-r--r--kmail/kmfolderseldlg.h22
-rw-r--r--kmail/kmfoldertree.cpp412
-rw-r--r--kmail/kmfoldertree.h88
-rw-r--r--kmail/kmgroupware.cpp4
-rw-r--r--kmail/kmgroupware.h4
-rw-r--r--kmail/kmheaders.cpp720
-rw-r--r--kmail/kmheaders.h104
-rw-r--r--kmail/kmkernel.cpp400
-rw-r--r--kmail/kmkernel.h172
-rw-r--r--kmail/kmlineeditspell.cpp60
-rw-r--r--kmail/kmlineeditspell.h18
-rw-r--r--kmail/kmmainwidget.cpp820
-rw-r--r--kmail/kmmainwidget.h80
-rw-r--r--kmail/kmmainwin.cpp34
-rw-r--r--kmail/kmmainwin.h6
-rw-r--r--kmail/kmmessage.cpp710
-rw-r--r--kmail/kmmessage.h276
-rw-r--r--kmail/kmmimeparttree.cpp106
-rw-r--r--kmail/kmmimeparttree.h26
-rw-r--r--kmail/kmmsgbase.cpp198
-rw-r--r--kmail/kmmsgbase.h98
-rw-r--r--kmail/kmmsgdict.cpp32
-rw-r--r--kmail/kmmsgdict.h8
-rw-r--r--kmail/kmmsginfo.cpp70
-rw-r--r--kmail/kmmsginfo.h62
-rw-r--r--kmail/kmmsglist.cpp6
-rw-r--r--kmail/kmmsglist.h4
-rw-r--r--kmail/kmmsgpart.cpp132
-rw-r--r--kmail/kmmsgpart.h130
-rw-r--r--kmail/kmmsgpartdlg.cpp148
-rw-r--r--kmail/kmmsgpartdlg.h42
-rw-r--r--kmail/kmpopfiltercnfrmdlg.cpp82
-rw-r--r--kmail/kmpopfiltercnfrmdlg.h26
-rw-r--r--kmail/kmpopheaders.cpp6
-rw-r--r--kmail/kmpopheaders.h12
-rw-r--r--kmail/kmreadermainwin.cpp100
-rw-r--r--kmail/kmreadermainwin.h14
-rw-r--r--kmail/kmreaderwin.cpp472
-rw-r--r--kmail/kmreaderwin.h102
-rw-r--r--kmail/kmsearchpattern.cpp142
-rw-r--r--kmail/kmsearchpattern.h70
-rw-r--r--kmail/kmsearchpatternedit.cpp112
-rw-r--r--kmail/kmsearchpatternedit.h52
-rw-r--r--kmail/kmsender.cpp126
-rw-r--r--kmail/kmsender.h28
-rw-r--r--kmail/kmsender_p.h30
-rw-r--r--kmail/kmservertest.cpp30
-rw-r--r--kmail/kmservertest.h38
-rw-r--r--kmail/kmstartup.cpp36
-rw-r--r--kmail/kmsystemtray.cpp104
-rw-r--r--kmail/kmsystemtray.h30
-rw-r--r--kmail/kmtransport.cpp256
-rw-r--r--kmail/kmtransport.h94
-rw-r--r--kmail/korghelper.cpp12
-rw-r--r--kmail/kwindowpositioner.cpp18
-rw-r--r--kmail/kwindowpositioner.h10
-rw-r--r--kmail/listjob.cpp36
-rw-r--r--kmail/listjob.h18
-rw-r--r--kmail/localsubscriptiondialog.cpp18
-rw-r--r--kmail/localsubscriptiondialog.h4
-rw-r--r--kmail/mailcomposerIface.h20
-rw-r--r--kmail/maildirjob.cpp8
-rw-r--r--kmail/maildirjob.h2
-rw-r--r--kmail/mailinglist-magic.cpp128
-rw-r--r--kmail/mailinglist-magic.h12
-rw-r--r--kmail/mailinglistpropertiesdialog.cpp88
-rw-r--r--kmail/mailinglistpropertiesdialog.h12
-rw-r--r--kmail/mailserviceimpl.cpp42
-rw-r--r--kmail/mailserviceimpl.h30
-rw-r--r--kmail/mailsourceviewer.cpp20
-rw-r--r--kmail/mailsourceviewer.h12
-rw-r--r--kmail/managesievescriptsdialog.cpp134
-rw-r--r--kmail/managesievescriptsdialog.h28
-rw-r--r--kmail/managesievescriptsdialog_p.h12
-rw-r--r--kmail/mboxjob.cpp8
-rw-r--r--kmail/mboxjob.h2
-rw-r--r--kmail/messageactions.cpp40
-rw-r--r--kmail/messageactions.h18
-rw-r--r--kmail/messagecomposer.cpp250
-rw-r--r--kmail/messagecomposer.h76
-rw-r--r--kmail/messagecopyhelper.cpp26
-rw-r--r--kmail/messagecopyhelper.h18
-rw-r--r--kmail/messageproperty.cpp14
-rw-r--r--kmail/messageproperty.h14
-rw-r--r--kmail/messagesender.h6
-rw-r--r--kmail/networkaccount.cpp36
-rw-r--r--kmail/networkaccount.h28
-rw-r--r--kmail/newfolderdialog.cpp80
-rw-r--r--kmail/newfolderdialog.h34
-rw-r--r--kmail/objecttreeparser.cpp374
-rw-r--r--kmail/objecttreeparser.h64
-rw-r--r--kmail/partNode.cpp36
-rw-r--r--kmail/partNode.h22
-rw-r--r--kmail/partmetadata.h24
-rw-r--r--kmail/partnodebodypart.cpp24
-rw-r--r--kmail/partnodebodypart.h16
-rw-r--r--kmail/popaccount.cpp146
-rw-r--r--kmail/popaccount.h68
-rw-r--r--kmail/quotajobs.cpp42
-rw-r--r--kmail/quotajobs.h46
-rw-r--r--kmail/recipientseditor.cpp258
-rw-r--r--kmail/recipientseditor.h88
-rw-r--r--kmail/recipientseditortest.cpp34
-rw-r--r--kmail/recipientseditortest.h4
-rw-r--r--kmail/recipientspicker.cpp208
-rw-r--r--kmail/recipientspicker.h86
-rw-r--r--kmail/redirectdialog.cpp34
-rw-r--r--kmail/redirectdialog.h10
-rw-r--r--kmail/regexplineedit.cpp42
-rw-r--r--kmail/regexplineedit.h20
-rw-r--r--kmail/renamejob.cpp22
-rw-r--r--kmail/renamejob.h14
-rw-r--r--kmail/rulewidgethandlermanager.cpp680
-rw-r--r--kmail/rulewidgethandlermanager.h50
-rw-r--r--kmail/scalix.cpp20
-rw-r--r--kmail/scalix.h18
-rw-r--r--kmail/searchjob.cpp104
-rw-r--r--kmail/searchjob.h14
-rw-r--r--kmail/searchwindow.cpp236
-rw-r--r--kmail/searchwindow.h54
-rw-r--r--kmail/secondarywindow.cpp2
-rw-r--r--kmail/secondarywindow.h2
-rw-r--r--kmail/sieveconfig.cpp32
-rw-r--r--kmail/sieveconfig.h24
-rw-r--r--kmail/sievedebugdialog.cpp54
-rw-r--r--kmail/sievedebugdialog.h14
-rw-r--r--kmail/sievejob.cpp74
-rw-r--r--kmail/sievejob.h52
-rw-r--r--kmail/signatureconfigurator.cpp134
-rw-r--r--kmail/signatureconfigurator.h28
-rw-r--r--kmail/simplestringlisteditor.cpp100
-rw-r--r--kmail/simplestringlisteditor.h44
-rw-r--r--kmail/snippetconfig.h26
-rw-r--r--kmail/snippetdlg.cpp14
-rw-r--r--kmail/snippetdlg.h6
-rw-r--r--kmail/snippetitem.cpp28
-rw-r--r--kmail/snippetitem.h32
-rw-r--r--kmail/snippetsettings.cpp10
-rw-r--r--kmail/snippetsettings.h4
-rw-r--r--kmail/snippetwidget.cpp298
-rw-r--r--kmail/snippetwidget.h40
-rw-r--r--kmail/spamheaderanalyzer.cpp10
-rw-r--r--kmail/spamheaderanalyzer.h16
-rw-r--r--kmail/subscriptiondialog.cpp70
-rw-r--r--kmail/subscriptiondialog.h34
-rw-r--r--kmail/teehtmlwriter.cpp26
-rw-r--r--kmail/teehtmlwriter.h12
-rw-r--r--kmail/templateparser.cpp306
-rw-r--r--kmail/templateparser.h30
-rw-r--r--kmail/templatesconfiguration.cpp104
-rw-r--r--kmail/templatesconfiguration.h22
-rw-r--r--kmail/templatesinsertcommand.cpp146
-rw-r--r--kmail/templatesinsertcommand.h6
-rw-r--r--kmail/tests/messagedicttests.cpp2
-rw-r--r--kmail/tests/mimelibtests.cpp18
-rw-r--r--kmail/tests/mimelibtests.h6
-rw-r--r--kmail/tests/utiltests.cpp82
-rw-r--r--kmail/tests/utiltests.h2
-rw-r--r--kmail/textsource.cpp4
-rw-r--r--kmail/textsource.h2
-rw-r--r--kmail/transportmanager.cpp6
-rw-r--r--kmail/transportmanager.h2
-rw-r--r--kmail/undostack.cpp6
-rw-r--r--kmail/undostack.h10
-rw-r--r--kmail/urlhandlermanager.cpp124
-rw-r--r--kmail/urlhandlermanager.h8
-rw-r--r--kmail/util.cpp50
-rw-r--r--kmail/util.h66
-rw-r--r--kmail/vacation.cpp142
-rw-r--r--kmail/vacation.h26
-rw-r--r--kmail/vacationdialog.cpp60
-rw-r--r--kmail/vacationdialog.h26
-rw-r--r--kmail/vcardviewer.cpp6
-rw-r--r--kmail/vcardviewer.h6
-rw-r--r--kmail/xfaceconfigurator.cpp144
-rw-r--r--kmail/xfaceconfigurator.h20
378 files changed, 15546 insertions, 15546 deletions
diff --git a/kmail/accountcombobox.cpp b/kmail/accountcombobox.cpp
index afa8398e..c89ed360 100644
--- a/kmail/accountcombobox.cpp
+++ b/kmail/accountcombobox.cpp
@@ -34,13 +34,13 @@
using namespace KMail;
-AccountComboBox::AccountComboBox( QWidget* parent, const char* name )
- : QComboBox( parent, name )
+AccountComboBox::AccountComboBox( TQWidget* parent, const char* name )
+ : TQComboBox( parent, name )
{
- connect( kmkernel->acctMgr(), SIGNAL( accountAdded( KMAccount* ) ),
- this, SLOT( slotRefreshAccounts() ) );
- connect( kmkernel->acctMgr(), SIGNAL( accountRemoved( KMAccount* ) ),
- this, SLOT( slotRefreshAccounts() ) );
+ connect( kmkernel->acctMgr(), TQT_SIGNAL( accountAdded( KMAccount* ) ),
+ this, TQT_SLOT( slotRefreshAccounts() ) );
+ connect( kmkernel->acctMgr(), TQT_SIGNAL( accountRemoved( KMAccount* ) ),
+ this, TQT_SLOT( slotRefreshAccounts() ) );
slotRefreshAccounts();
}
@@ -52,9 +52,9 @@ void AccountComboBox::slotRefreshAccounts()
// until clicking OK or Apply. This would make this class much more complex
// (this would have to be different depending on whether this combo is in the
// configuration dialog or not...)
- QStringList accountNames;
- QValueList<KMAccount *> lst = applicableAccounts();
- QValueList<KMAccount *>::ConstIterator it = lst.begin();
+ TQStringList accountNames;
+ TQValueList<KMAccount *> lst = applicableAccounts();
+ TQValueList<KMAccount *>::ConstIterator it = lst.begin();
for ( ; it != lst.end() ; ++it )
accountNames.append( (*it)->name() );
kdDebug() << k_funcinfo << accountNames << endl;
@@ -67,8 +67,8 @@ void AccountComboBox::slotRefreshAccounts()
void AccountComboBox::setCurrentAccount( KMAccount* account )
{
int i = 0;
- QValueList<KMAccount *> lst = applicableAccounts();
- QValueList<KMAccount *>::ConstIterator it = lst.begin();
+ TQValueList<KMAccount *> lst = applicableAccounts();
+ TQValueList<KMAccount *>::ConstIterator it = lst.begin();
for ( ; it != lst.end() ; ++it, ++i ) {
if ( (*it) == account ) {
setCurrentItem( i );
@@ -80,8 +80,8 @@ void AccountComboBox::setCurrentAccount( KMAccount* account )
KMAccount* AccountComboBox::currentAccount() const
{
int i = 0;
- QValueList<KMAccount *> lst = applicableAccounts();
- QValueList<KMAccount *>::ConstIterator it = lst.begin();
+ TQValueList<KMAccount *> lst = applicableAccounts();
+ TQValueList<KMAccount *>::ConstIterator it = lst.begin();
while ( it != lst.end() && i < currentItem() ) {
++it;
++i;
@@ -91,9 +91,9 @@ KMAccount* AccountComboBox::currentAccount() const
return 0;
}
-QValueList<KMAccount *> KMail::AccountComboBox::applicableAccounts() const
+TQValueList<KMAccount *> KMail::AccountComboBox::applicableAccounts() const
{
- QValueList<KMAccount *> lst;
+ TQValueList<KMAccount *> lst;
for( KMAccount *a = kmkernel->acctMgr()->first(); a;
a = kmkernel->acctMgr()->next() ) {
if ( a && a->type() == "cachedimap" ) { //// ## proko2 hack. Need a list of allowed account types as ctor param
diff --git a/kmail/accountcombobox.h b/kmail/accountcombobox.h
index 5c8d1bbd..9229cb33 100644
--- a/kmail/accountcombobox.h
+++ b/kmail/accountcombobox.h
@@ -28,7 +28,7 @@
#ifndef KMAIL_ACCOUNTCOMBOBOX_H
#define KMAIL_ACCOUNTCOMBOBOX_H
-#include <qcombobox.h>
+#include <tqcombobox.h>
class KMAccount;
@@ -44,7 +44,7 @@ class AccountComboBox : public QComboBox
Q_OBJECT
public:
- AccountComboBox( QWidget* parent, const char* name = 0 );
+ AccountComboBox( TQWidget* parent, const char* name = 0 );
void setCurrentAccount( KMAccount* account );
KMAccount* currentAccount() const;
@@ -52,7 +52,7 @@ public:
private slots:
void slotRefreshAccounts();
private:
- QValueList<KMAccount *> applicableAccounts() const;
+ TQValueList<KMAccount *> applicableAccounts() const;
};
diff --git a/kmail/accountdialog.cpp b/kmail/accountdialog.cpp
index b517925a..6203d3e8 100644
--- a/kmail/accountdialog.cpp
+++ b/kmail/accountdialog.cpp
@@ -21,20 +21,20 @@
#include "accountdialog.h"
-#include <qbuttongroup.h>
-#include <qcheckbox.h>
-#include <qlayout.h>
-#include <qtabwidget.h>
-#include <qradiobutton.h>
-#include <qvalidator.h>
-#include <qlabel.h>
-#include <qpushbutton.h>
-#include <qwhatsthis.h>
-#include <qhbox.h>
-#include <qcombobox.h>
-#include <qheader.h>
-#include <qtoolbutton.h>
-#include <qgrid.h>
+#include <tqbuttongroup.h>
+#include <tqcheckbox.h>
+#include <tqlayout.h>
+#include <tqtabwidget.h>
+#include <tqradiobutton.h>
+#include <tqvalidator.h>
+#include <tqlabel.h>
+#include <tqpushbutton.h>
+#include <tqwhatsthis.h>
+#include <tqhbox.h>
+#include <tqcombobox.h>
+#include <tqheader.h>
+#include <tqtoolbutton.h>
+#include <tqgrid.h>
#include <kfiledialog.h>
#include <klocale.h>
@@ -85,45 +85,45 @@ namespace KMail {
class ProcmailRCParser
{
public:
- ProcmailRCParser(QString fileName = QString::null);
+ ProcmailRCParser(TQString fileName = TQString::null);
~ProcmailRCParser();
- QStringList getLockFilesList() const { return mLockFiles; }
- QStringList getSpoolFilesList() const { return mSpoolFiles; }
+ TQStringList getLockFilesList() const { return mLockFiles; }
+ TQStringList getSpoolFilesList() const { return mSpoolFiles; }
protected:
- void processGlobalLock(const QString&);
- void processLocalLock(const QString&);
- void processVariableSetting(const QString&, int);
- QString expandVars(const QString&);
-
- QFile mProcmailrc;
- QTextStream *mStream;
- QStringList mLockFiles;
- QStringList mSpoolFiles;
- QAsciiDict<QString> mVars;
+ void processGlobalLock(const TQString&);
+ void processLocalLock(const TQString&);
+ void processVariableSetting(const TQString&, int);
+ TQString expandVars(const TQString&);
+
+ TQFile mProcmailrc;
+ TQTextStream *mStream;
+ TQStringList mLockFiles;
+ TQStringList mSpoolFiles;
+ TQAsciiDict<TQString> mVars;
};
-ProcmailRCParser::ProcmailRCParser(QString fname)
+ProcmailRCParser::ProcmailRCParser(TQString fname)
: mProcmailrc(fname),
- mStream(new QTextStream(&mProcmailrc))
+ mStream(new TQTextStream(&mProcmailrc))
{
mVars.setAutoDelete(true);
// predefined
- mVars.insert( "HOME", new QString( QDir::homeDirPath() ) );
+ mVars.insert( "HOME", new TQString( TQDir::homeDirPath() ) );
if( !fname || fname.isEmpty() ) {
- fname = QDir::homeDirPath() + "/.procmailrc";
+ fname = TQDir::homeDirPath() + "/.procmailrc";
mProcmailrc.setName(fname);
}
- QRegExp lockFileGlobal("^LOCKFILE=", true);
- QRegExp lockFileLocal("^:0", true);
+ TQRegExp lockFileGlobal("^LOCKFILE=", true);
+ TQRegExp lockFileLocal("^:0", true);
if( mProcmailrc.open(IO_ReadOnly) ) {
- QString s;
+ TQString s;
while( !mStream->eof() ) {
@@ -149,7 +149,7 @@ ProcmailRCParser::ProcmailRCParser(QString fname)
}
}
- QString default_Location = getenv("MAIL");
+ TQString default_Location = getenv("MAIL");
if (default_Location.isNull()) {
default_Location = _PATH_MAILDIR;
@@ -170,17 +170,17 @@ ProcmailRCParser::~ProcmailRCParser()
}
void
-ProcmailRCParser::processGlobalLock(const QString &s)
+ProcmailRCParser::processGlobalLock(const TQString &s)
{
- QString val = expandVars(s.mid(s.find('=') + 1).stripWhiteSpace());
+ TQString val = expandVars(s.mid(s.find('=') + 1).stripWhiteSpace());
if ( !mLockFiles.contains(val) )
mLockFiles << val;
}
void
-ProcmailRCParser::processLocalLock(const QString &s)
+ProcmailRCParser::processLocalLock(const TQString &s)
{
- QString val;
+ TQString val;
int colonPos = s.findRev(':');
if (colonPos > 0) { // we don't care about the leading one
@@ -197,7 +197,7 @@ ProcmailRCParser::processLocalLock(const QString &s)
}
// parse until we find the spoolfile
- QString line, prevLine;
+ TQString line, prevLine;
do {
prevLine = line;
line = mStream->readLine().stripWhiteSpace();
@@ -238,27 +238,27 @@ ProcmailRCParser::processLocalLock(const QString &s)
}
void
-ProcmailRCParser::processVariableSetting(const QString &s, int eqPos)
+ProcmailRCParser::processVariableSetting(const TQString &s, int eqPos)
{
if( eqPos == -1) return;
- QString varName = s.left(eqPos),
+ TQString varName = s.left(eqPos),
varValue = expandVars(s.mid(eqPos + 1).stripWhiteSpace());
- mVars.insert(varName.latin1(), new QString(varValue));
+ mVars.insert(varName.latin1(), new TQString(varValue));
}
QString
-ProcmailRCParser::expandVars(const QString &s)
+ProcmailRCParser::expandVars(const TQString &s)
{
if( s.isEmpty()) return s;
- QString expS = s;
+ TQString expS = s;
- QAsciiDictIterator<QString> it( mVars ); // iterator for dict
+ TQAsciiDictIterator<TQString> it( mVars ); // iterator for dict
while ( it.current() ) {
- expS.replace(QString::fromLatin1("$") + it.currentKey(), *it.current());
+ expS.replace(TQString::fromLatin1("$") + it.currentKey(), *it.current());
++it;
}
@@ -267,8 +267,8 @@ ProcmailRCParser::expandVars(const QString &s)
-AccountDialog::AccountDialog( const QString & caption, KMAccount *account,
- QWidget *parent, const char *name, bool modal )
+AccountDialog::AccountDialog( const TQString & caption, KMAccount *account,
+ TQWidget *parent, const char *name, bool modal )
: KDialogBase( parent, name, modal, caption, Ok|Cancel|Help, Ok, true ),
mAccount( account ),
mServerTest( 0 ),
@@ -278,10 +278,10 @@ AccountDialog::AccountDialog( const QString & caption, KMAccount *account,
mCapaTLS( AllCapa ),
mSieveConfigEditor( 0 )
{
- mValidator = new QRegExpValidator( QRegExp( "[A-Za-z0-9-_:.]*" ), 0 );
+ mValidator = new TQRegExpValidator( TQRegExp( "[A-Za-z0-9-_:.]*" ), 0 );
setHelp("receiving-mail");
- QString accountType = mAccount->type();
+ TQString accountType = mAccount->type();
if( accountType == "local" )
{
@@ -305,7 +305,7 @@ AccountDialog::AccountDialog( const QString & caption, KMAccount *account,
}
else
{
- QString msg = i18n( "Account type is not supported." );
+ TQString msg = i18n( "Account type is not supported." );
KMessageBox::information( topLevelWidget(),msg,i18n("Configure Account") );
return;
}
@@ -324,113 +324,113 @@ AccountDialog::~AccountDialog()
void AccountDialog::makeLocalAccountPage()
{
ProcmailRCParser procmailrcParser;
- QFrame *page = makeMainWidget();
- QGridLayout *topLayout = new QGridLayout( page, 12, 3, 0, spacingHint() );
+ TQFrame *page = makeMainWidget();
+ TQGridLayout *topLayout = new TQGridLayout( page, 12, 3, 0, spacingHint() );
topLayout->addColSpacing( 1, fontMetrics().maxWidth()*15 );
topLayout->setRowStretch( 11, 10 );
topLayout->setColStretch( 1, 10 );
- mLocal.titleLabel = new QLabel( i18n("Account Type: Local Account"), page );
+ mLocal.titleLabel = new TQLabel( i18n("Account Type: Local Account"), page );
topLayout->addMultiCellWidget( mLocal.titleLabel, 0, 0, 0, 2 );
- QFont titleFont( mLocal.titleLabel->font() );
+ TQFont titleFont( mLocal.titleLabel->font() );
titleFont.setBold( true );
mLocal.titleLabel->setFont( titleFont );
KSeparator *hline = new KSeparator( KSeparator::HLine, page);
topLayout->addMultiCellWidget( hline, 1, 1, 0, 2 );
- QLabel *label = new QLabel( i18n("Account &name:"), page );
+ TQLabel *label = new TQLabel( i18n("Account &name:"), page );
topLayout->addWidget( label, 2, 0 );
mLocal.nameEdit = new KLineEdit( page );
label->setBuddy( mLocal.nameEdit );
topLayout->addWidget( mLocal.nameEdit, 2, 1 );
- label = new QLabel( i18n("File &location:"), page );
+ label = new TQLabel( i18n("File &location:"), page );
topLayout->addWidget( label, 3, 0 );
- mLocal.locationEdit = new QComboBox( true, page );
+ mLocal.locationEdit = new TQComboBox( true, page );
label->setBuddy( mLocal.locationEdit );
topLayout->addWidget( mLocal.locationEdit, 3, 1 );
mLocal.locationEdit->insertStringList(procmailrcParser.getSpoolFilesList());
- QPushButton *choose = new QPushButton( i18n("Choo&se..."), page );
+ TQPushButton *choose = new TQPushButton( i18n("Choo&se..."), page );
choose->setAutoDefault( false );
- connect( choose, SIGNAL(clicked()), this, SLOT(slotLocationChooser()) );
+ connect( choose, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotLocationChooser()) );
topLayout->addWidget( choose, 3, 2 );
- QButtonGroup *group = new QButtonGroup(i18n("Locking Method"), page );
+ TQButtonGroup *group = new TQButtonGroup(i18n("Locking Method"), page );
group->setColumnLayout(0, Qt::Horizontal);
group->layout()->setSpacing( 0 );
group->layout()->setMargin( 0 );
- QGridLayout *groupLayout = new QGridLayout( group->layout() );
+ TQGridLayout *groupLayout = new TQGridLayout( group->layout() );
groupLayout->setAlignment( Qt::AlignTop );
groupLayout->setSpacing( 6 );
groupLayout->setMargin( 11 );
- mLocal.lockProcmail = new QRadioButton( i18n("Procmail loc&kfile:"), group);
+ mLocal.lockProcmail = new TQRadioButton( i18n("Procmail loc&kfile:"), group);
groupLayout->addWidget(mLocal.lockProcmail, 0, 0);
- mLocal.procmailLockFileName = new QComboBox( true, group );
+ mLocal.procmailLockFileName = new TQComboBox( true, group );
groupLayout->addWidget(mLocal.procmailLockFileName, 0, 1);
mLocal.procmailLockFileName->insertStringList(procmailrcParser.getLockFilesList());
mLocal.procmailLockFileName->setEnabled(false);
- QObject::connect(mLocal.lockProcmail, SIGNAL(toggled(bool)),
- mLocal.procmailLockFileName, SLOT(setEnabled(bool)));
+ TQObject::connect(mLocal.lockProcmail, TQT_SIGNAL(toggled(bool)),
+ mLocal.procmailLockFileName, TQT_SLOT(setEnabled(bool)));
- mLocal.lockMutt = new QRadioButton(
+ mLocal.lockMutt = new TQRadioButton(
i18n("&Mutt dotlock"), group);
groupLayout->addWidget(mLocal.lockMutt, 1, 0);
- mLocal.lockMuttPriv = new QRadioButton(
+ mLocal.lockMuttPriv = new TQRadioButton(
i18n("M&utt dotlock privileged"), group);
groupLayout->addWidget(mLocal.lockMuttPriv, 2, 0);
- mLocal.lockFcntl = new QRadioButton(
+ mLocal.lockFcntl = new TQRadioButton(
i18n("&FCNTL"), group);
groupLayout->addWidget(mLocal.lockFcntl, 3, 0);
- mLocal.lockNone = new QRadioButton(
+ mLocal.lockNone = new TQRadioButton(
i18n("Non&e (use with care)"), group);
groupLayout->addWidget(mLocal.lockNone, 4, 0);
topLayout->addMultiCellWidget( group, 4, 4, 0, 2 );
#if 0
- QHBox* resourceHB = new QHBox( page );
+ TQHBox* resourceHB = new TQHBox( page );
resourceHB->setSpacing( 11 );
mLocal.resourceCheck =
- new QCheckBox( i18n( "Account for semiautomatic resource handling" ), resourceHB );
+ new TQCheckBox( i18n( "Account for semiautomatic resource handling" ), resourceHB );
mLocal.resourceClearButton =
- new QPushButton( i18n( "Clear" ), resourceHB );
- QWhatsThis::add( mLocal.resourceClearButton,
+ new TQPushButton( i18n( "Clear" ), resourceHB );
+ TQWhatsThis::add( mLocal.resourceClearButton,
i18n( "Delete all allocations for the resource represented by this account." ) );
mLocal.resourceClearButton->setEnabled( false );
- connect( mLocal.resourceCheck, SIGNAL( toggled(bool) ),
- mLocal.resourceClearButton, SLOT( setEnabled(bool) ) );
- connect( mLocal.resourceClearButton, SIGNAL( clicked() ),
- this, SLOT( slotClearResourceAllocations() ) );
+ connect( mLocal.resourceCheck, TQT_SIGNAL( toggled(bool) ),
+ mLocal.resourceClearButton, TQT_SLOT( setEnabled(bool) ) );
+ connect( mLocal.resourceClearButton, TQT_SIGNAL( clicked() ),
+ this, TQT_SLOT( slotClearResourceAllocations() ) );
mLocal.resourceClearPastButton =
- new QPushButton( i18n( "Clear Past" ), resourceHB );
+ new TQPushButton( i18n( "Clear Past" ), resourceHB );
mLocal.resourceClearPastButton->setEnabled( false );
- connect( mLocal.resourceCheck, SIGNAL( toggled(bool) ),
- mLocal.resourceClearPastButton, SLOT( setEnabled(bool) ) );
- QWhatsThis::add( mLocal.resourceClearPastButton,
+ connect( mLocal.resourceCheck, TQT_SIGNAL( toggled(bool) ),
+ mLocal.resourceClearPastButton, TQT_SLOT( setEnabled(bool) ) );
+ TQWhatsThis::add( mLocal.resourceClearPastButton,
i18n( "Delete all outdated allocations for the resource represented by this account." ) );
- connect( mLocal.resourceClearPastButton, SIGNAL( clicked() ),
- this, SLOT( slotClearPastResourceAllocations() ) );
+ connect( mLocal.resourceClearPastButton, TQT_SIGNAL( clicked() ),
+ this, TQT_SLOT( slotClearPastResourceAllocations() ) );
topLayout->addMultiCellWidget( resourceHB, 5, 5, 0, 2 );
#endif
mLocal.includeInCheck =
- new QCheckBox( i18n("Include in m&anual mail check"),
+ new TQCheckBox( i18n("Include in m&anual mail check"),
page );
topLayout->addMultiCellWidget( mLocal.includeInCheck, 5, 5, 0, 2 );
mLocal.intervalCheck =
- new QCheckBox( i18n("Enable &interval mail checking"), page );
+ new TQCheckBox( i18n("Enable &interval mail checking"), page );
topLayout->addMultiCellWidget( mLocal.intervalCheck, 6, 6, 0, 2 );
- connect( mLocal.intervalCheck, SIGNAL(toggled(bool)),
- this, SLOT(slotEnableLocalInterval(bool)) );
- mLocal.intervalLabel = new QLabel( i18n("Check inter&val:"), page );
+ connect( mLocal.intervalCheck, TQT_SIGNAL(toggled(bool)),
+ this, TQT_SLOT(slotEnableLocalInterval(bool)) );
+ mLocal.intervalLabel = new TQLabel( i18n("Check inter&val:"), page );
topLayout->addWidget( mLocal.intervalLabel, 7, 0 );
mLocal.intervalSpin = new KIntNumInput( page );
mLocal.intervalLabel->setBuddy( mLocal.intervalSpin );
@@ -439,98 +439,98 @@ void AccountDialog::makeLocalAccountPage()
mLocal.intervalSpin->setValue( defaultmailcheckintervalmin );
topLayout->addWidget( mLocal.intervalSpin, 7, 1 );
- label = new QLabel( i18n("&Destination folder:"), page );
+ label = new TQLabel( i18n("&Destination folder:"), page );
topLayout->addWidget( label, 8, 0 );
- mLocal.folderCombo = new QComboBox( false, page );
+ mLocal.folderCombo = new TQComboBox( false, page );
label->setBuddy( mLocal.folderCombo );
topLayout->addWidget( mLocal.folderCombo, 8, 1 );
- label = new QLabel( i18n("&Pre-command:"), page );
+ label = new TQLabel( i18n("&Pre-command:"), page );
topLayout->addWidget( label, 9, 0 );
mLocal.precommand = new KLineEdit( page );
label->setBuddy( mLocal.precommand );
topLayout->addWidget( mLocal.precommand, 9, 1 );
- mLocal.identityLabel = new QLabel( i18n("Identity:"), page );
+ mLocal.identityLabel = new TQLabel( i18n("Identity:"), page );
topLayout->addWidget( mLocal.identityLabel, 10, 0 );
mLocal.identityCombo = new KPIM::IdentityCombo(kmkernel->identityManager(), page );
mLocal.identityLabel->setBuddy( mLocal.identityCombo );
topLayout->addWidget( mLocal.identityCombo, 10, 1 );
- connect(kapp,SIGNAL(kdisplayFontChanged()),SLOT(slotFontChanged()));
+ connect(kapp,TQT_SIGNAL(kdisplayFontChanged()),TQT_SLOT(slotFontChanged()));
}
void AccountDialog::makeMaildirAccountPage()
{
ProcmailRCParser procmailrcParser;
- QFrame *page = makeMainWidget();
- QGridLayout *topLayout = new QGridLayout( page, 11, 3, 0, spacingHint() );
+ TQFrame *page = makeMainWidget();
+ TQGridLayout *topLayout = new TQGridLayout( page, 11, 3, 0, spacingHint() );
topLayout->addColSpacing( 1, fontMetrics().maxWidth()*15 );
topLayout->setRowStretch( 11, 10 );
topLayout->setColStretch( 1, 10 );
- mMaildir.titleLabel = new QLabel( i18n("Account Type: Maildir Account"), page );
+ mMaildir.titleLabel = new TQLabel( i18n("Account Type: Maildir Account"), page );
topLayout->addMultiCellWidget( mMaildir.titleLabel, 0, 0, 0, 2 );
- QFont titleFont( mMaildir.titleLabel->font() );
+ TQFont titleFont( mMaildir.titleLabel->font() );
titleFont.setBold( true );
mMaildir.titleLabel->setFont( titleFont );
- QFrame *hline = new QFrame( page );
- hline->setFrameStyle( QFrame::Sunken | QFrame::HLine );
+ TQFrame *hline = new TQFrame( page );
+ hline->setFrameStyle( TQFrame::Sunken | TQFrame::HLine );
topLayout->addMultiCellWidget( hline, 1, 1, 0, 2 );
mMaildir.nameEdit = new KLineEdit( page );
topLayout->addWidget( mMaildir.nameEdit, 2, 1 );
- QLabel *label = new QLabel( mMaildir.nameEdit, i18n("Account &name:"), page );
+ TQLabel *label = new TQLabel( mMaildir.nameEdit, i18n("Account &name:"), page );
topLayout->addWidget( label, 2, 0 );
- mMaildir.locationEdit = new QComboBox( true, page );
+ mMaildir.locationEdit = new TQComboBox( true, page );
topLayout->addWidget( mMaildir.locationEdit, 3, 1 );
mMaildir.locationEdit->insertStringList(procmailrcParser.getSpoolFilesList());
- label = new QLabel( mMaildir.locationEdit, i18n("Folder &location:"), page );
+ label = new TQLabel( mMaildir.locationEdit, i18n("Folder &location:"), page );
topLayout->addWidget( label, 3, 0 );
- QPushButton *choose = new QPushButton( i18n("Choo&se..."), page );
+ TQPushButton *choose = new TQPushButton( i18n("Choo&se..."), page );
choose->setAutoDefault( false );
- connect( choose, SIGNAL(clicked()), this, SLOT(slotMaildirChooser()) );
+ connect( choose, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotMaildirChooser()) );
topLayout->addWidget( choose, 3, 2 );
#if 0
- QHBox* resourceHB = new QHBox( page );
+ TQHBox* resourceHB = new TQHBox( page );
resourceHB->setSpacing( 11 );
mMaildir.resourceCheck =
- new QCheckBox( i18n( "Account for semiautomatic resource handling" ), resourceHB );
+ new TQCheckBox( i18n( "Account for semiautomatic resource handling" ), resourceHB );
mMaildir.resourceClearButton =
- new QPushButton( i18n( "Clear" ), resourceHB );
+ new TQPushButton( i18n( "Clear" ), resourceHB );
mMaildir.resourceClearButton->setEnabled( false );
- connect( mMaildir.resourceCheck, SIGNAL( toggled(bool) ),
- mMaildir.resourceClearButton, SLOT( setEnabled(bool) ) );
- QWhatsThis::add( mMaildir.resourceClearButton,
+ connect( mMaildir.resourceCheck, TQT_SIGNAL( toggled(bool) ),
+ mMaildir.resourceClearButton, TQT_SLOT( setEnabled(bool) ) );
+ TQWhatsThis::add( mMaildir.resourceClearButton,
i18n( "Delete all allocations for the resource represented by this account." ) );
- connect( mMaildir.resourceClearButton, SIGNAL( clicked() ),
- this, SLOT( slotClearResourceAllocations() ) );
+ connect( mMaildir.resourceClearButton, TQT_SIGNAL( clicked() ),
+ this, TQT_SLOT( slotClearResourceAllocations() ) );
mMaildir.resourceClearPastButton =
- new QPushButton( i18n( "Clear Past" ), resourceHB );
+ new TQPushButton( i18n( "Clear Past" ), resourceHB );
mMaildir.resourceClearPastButton->setEnabled( false );
- connect( mMaildir.resourceCheck, SIGNAL( toggled(bool) ),
- mMaildir.resourceClearPastButton, SLOT( setEnabled(bool) ) );
- QWhatsThis::add( mMaildir.resourceClearPastButton,
+ connect( mMaildir.resourceCheck, TQT_SIGNAL( toggled(bool) ),
+ mMaildir.resourceClearPastButton, TQT_SLOT( setEnabled(bool) ) );
+ TQWhatsThis::add( mMaildir.resourceClearPastButton,
i18n( "Delete all outdated allocations for the resource represented by this account." ) );
- connect( mMaildir.resourceClearPastButton, SIGNAL( clicked() ),
- this, SLOT( slotClearPastResourceAllocations() ) );
+ connect( mMaildir.resourceClearPastButton, TQT_SIGNAL( clicked() ),
+ this, TQT_SLOT( slotClearPastResourceAllocations() ) );
topLayout->addMultiCellWidget( resourceHB, 4, 4, 0, 2 );
#endif
mMaildir.includeInCheck =
- new QCheckBox( i18n("Include in &manual mail check"), page );
+ new TQCheckBox( i18n("Include in &manual mail check"), page );
topLayout->addMultiCellWidget( mMaildir.includeInCheck, 4, 4, 0, 2 );
mMaildir.intervalCheck =
- new QCheckBox( i18n("Enable &interval mail checking"), page );
+ new TQCheckBox( i18n("Enable &interval mail checking"), page );
topLayout->addMultiCellWidget( mMaildir.intervalCheck, 5, 5, 0, 2 );
- connect( mMaildir.intervalCheck, SIGNAL(toggled(bool)),
- this, SLOT(slotEnableMaildirInterval(bool)) );
- mMaildir.intervalLabel = new QLabel( i18n("Check inter&val:"), page );
+ connect( mMaildir.intervalCheck, TQT_SIGNAL(toggled(bool)),
+ this, TQT_SLOT(slotEnableMaildirInterval(bool)) );
+ mMaildir.intervalLabel = new TQLabel( i18n("Check inter&val:"), page );
topLayout->addWidget( mMaildir.intervalLabel, 6, 0 );
mMaildir.intervalSpin = new KIntNumInput( page );
mMaildir.intervalSpin->setRange( GlobalSettings::self()->minimumCheckInterval(), 10000, 1, false );
@@ -539,74 +539,74 @@ void AccountDialog::makeMaildirAccountPage()
mMaildir.intervalLabel->setBuddy( mMaildir.intervalSpin );
topLayout->addWidget( mMaildir.intervalSpin, 6, 1 );
- mMaildir.folderCombo = new QComboBox( false, page );
+ mMaildir.folderCombo = new TQComboBox( false, page );
topLayout->addWidget( mMaildir.folderCombo, 7, 1 );
- label = new QLabel( mMaildir.folderCombo,
+ label = new TQLabel( mMaildir.folderCombo,
i18n("&Destination folder:"), page );
topLayout->addWidget( label, 7, 0 );
mMaildir.precommand = new KLineEdit( page );
topLayout->addWidget( mMaildir.precommand, 8, 1 );
- label = new QLabel( mMaildir.precommand, i18n("&Pre-command:"), page );
+ label = new TQLabel( mMaildir.precommand, i18n("&Pre-command:"), page );
topLayout->addWidget( label, 8, 0 );
- mMaildir.identityLabel = new QLabel( i18n("Identity:"), page );
+ mMaildir.identityLabel = new TQLabel( i18n("Identity:"), page );
topLayout->addWidget( mMaildir.identityLabel, 9, 0 );
mMaildir.identityCombo = new KPIM::IdentityCombo(kmkernel->identityManager(), page );
mMaildir.identityLabel->setBuddy( mMaildir.identityCombo );
topLayout->addWidget( mMaildir.identityCombo, 9, 1 );
- connect(kapp,SIGNAL(kdisplayFontChanged()),SLOT(slotFontChanged()));
+ connect(kapp,TQT_SIGNAL(kdisplayFontChanged()),TQT_SLOT(slotFontChanged()));
}
void AccountDialog::makePopAccountPage()
{
- QFrame *page = makeMainWidget();
- QVBoxLayout *topLayout = new QVBoxLayout( page, 0, spacingHint() );
+ TQFrame *page = makeMainWidget();
+ TQVBoxLayout *topLayout = new TQVBoxLayout( page, 0, spacingHint() );
- mPop.titleLabel = new QLabel( page );
+ mPop.titleLabel = new TQLabel( page );
mPop.titleLabel->setText( i18n("Account Type: POP Account") );
- QFont titleFont( mPop.titleLabel->font() );
+ TQFont titleFont( mPop.titleLabel->font() );
titleFont.setBold( true );
mPop.titleLabel->setFont( titleFont );
topLayout->addWidget( mPop.titleLabel );
KSeparator *hline = new KSeparator( KSeparator::HLine, page);
topLayout->addWidget( hline );
- QTabWidget *tabWidget = new QTabWidget(page);
+ TQTabWidget *tabWidget = new TQTabWidget(page);
topLayout->addWidget( tabWidget );
- QWidget *page1 = new QWidget( tabWidget );
+ TQWidget *page1 = new TQWidget( tabWidget );
tabWidget->addTab( page1, i18n("&General") );
- QGridLayout *grid = new QGridLayout( page1, 16, 2, marginHint(), spacingHint() );
+ TQGridLayout *grid = new TQGridLayout( page1, 16, 2, marginHint(), spacingHint() );
grid->addColSpacing( 1, fontMetrics().maxWidth()*15 );
grid->setRowStretch( 15, 10 );
grid->setColStretch( 1, 10 );
- QLabel *label = new QLabel( i18n("Account &name:"), page1 );
+ TQLabel *label = new TQLabel( i18n("Account &name:"), page1 );
grid->addWidget( label, 0, 0 );
mPop.nameEdit = new KLineEdit( page1 );
label->setBuddy( mPop.nameEdit );
grid->addWidget( mPop.nameEdit, 0, 1 );
- label = new QLabel( i18n("&Login:"), page1 );
- QWhatsThis::add( label, i18n("Your Internet Service Provider gave you a <em>user name</em> which is used to authenticate you with their servers. It usually is the first part of your email address (the part before <em>@</em>).") );
+ label = new TQLabel( i18n("&Login:"), page1 );
+ TQWhatsThis::add( label, i18n("Your Internet Service Provider gave you a <em>user name</em> which is used to authenticate you with their servers. It usually is the first part of your email address (the part before <em>@</em>).") );
grid->addWidget( label, 1, 0 );
mPop.loginEdit = new KLineEdit( page1 );
label->setBuddy( mPop.loginEdit );
grid->addWidget( mPop.loginEdit, 1, 1 );
- label = new QLabel( i18n("P&assword:"), page1 );
+ label = new TQLabel( i18n("P&assword:"), page1 );
grid->addWidget( label, 2, 0 );
mPop.passwordEdit = new KLineEdit( page1 );
- mPop.passwordEdit->setEchoMode( QLineEdit::Password );
+ mPop.passwordEdit->setEchoMode( TQLineEdit::Password );
label->setBuddy( mPop.passwordEdit );
grid->addWidget( mPop.passwordEdit, 2, 1 );
- label = new QLabel( i18n("Ho&st:"), page1 );
+ label = new TQLabel( i18n("Ho&st:"), page1 );
grid->addWidget( label, 3, 0 );
mPop.hostEdit = new KLineEdit( page1 );
// only letters, digits, '-', '.', ':' (IPv6) and '_' (for Windows
@@ -615,16 +615,16 @@ void AccountDialog::makePopAccountPage()
label->setBuddy( mPop.hostEdit );
grid->addWidget( mPop.hostEdit, 3, 1 );
- label = new QLabel( i18n("&Port:"), page1 );
+ label = new TQLabel( i18n("&Port:"), page1 );
grid->addWidget( label, 4, 0 );
mPop.portEdit = new KLineEdit( page1 );
- mPop.portEdit->setValidator( new QIntValidator(this) );
+ mPop.portEdit->setValidator( new TQIntValidator(this) );
label->setBuddy( mPop.portEdit );
grid->addWidget( mPop.portEdit, 4, 1 );
mPop.storePasswordCheck =
- new QCheckBox( i18n("Sto&re POP password"), page1 );
- QWhatsThis::add( mPop.storePasswordCheck,
+ new TQCheckBox( i18n("Sto&re POP password"), page1 );
+ TQWhatsThis::add( mPop.storePasswordCheck,
i18n("Check this option to have KMail store "
"the password.\nIf KWallet is available "
"the password will be stored there which is considered "
@@ -637,104 +637,104 @@ void AccountDialog::makePopAccountPage()
grid->addMultiCellWidget( mPop.storePasswordCheck, 5, 5, 0, 1 );
mPop.leaveOnServerCheck =
- new QCheckBox( i18n("Lea&ve fetched messages on the server"), page1 );
- connect( mPop.leaveOnServerCheck, SIGNAL( clicked() ),
- this, SLOT( slotLeaveOnServerClicked() ) );
+ new TQCheckBox( i18n("Lea&ve fetched messages on the server"), page1 );
+ connect( mPop.leaveOnServerCheck, TQT_SIGNAL( clicked() ),
+ this, TQT_SLOT( slotLeaveOnServerClicked() ) );
grid->addMultiCellWidget( mPop.leaveOnServerCheck, 6, 6, 0, 1 );
- QHBox *afterDaysBox = new QHBox( page1 );
+ TQHBox *afterDaysBox = new TQHBox( page1 );
afterDaysBox->setSpacing( KDialog::spacingHint() );
mPop.leaveOnServerDaysCheck =
- new QCheckBox( i18n("Leave messages on the server for"), afterDaysBox );
- connect( mPop.leaveOnServerDaysCheck, SIGNAL( toggled(bool) ),
- this, SLOT( slotEnableLeaveOnServerDays(bool)) );
+ new TQCheckBox( i18n("Leave messages on the server for"), afterDaysBox );
+ connect( mPop.leaveOnServerDaysCheck, TQT_SIGNAL( toggled(bool) ),
+ this, TQT_SLOT( slotEnableLeaveOnServerDays(bool)) );
mPop.leaveOnServerDaysSpin = new KIntNumInput( afterDaysBox );
mPop.leaveOnServerDaysSpin->setRange( 1, 365, 1, false );
- connect( mPop.leaveOnServerDaysSpin, SIGNAL(valueChanged(int)),
- SLOT(slotLeaveOnServerDaysChanged(int)));
+ connect( mPop.leaveOnServerDaysSpin, TQT_SIGNAL(valueChanged(int)),
+ TQT_SLOT(slotLeaveOnServerDaysChanged(int)));
mPop.leaveOnServerDaysSpin->setValue( 1 );
afterDaysBox->setStretchFactor( mPop.leaveOnServerDaysSpin, 1 );
grid->addMultiCellWidget( afterDaysBox, 7, 7, 0, 1 );
- QHBox *leaveOnServerCountBox = new QHBox( page1 );
+ TQHBox *leaveOnServerCountBox = new TQHBox( page1 );
leaveOnServerCountBox->setSpacing( KDialog::spacingHint() );
mPop.leaveOnServerCountCheck =
- new QCheckBox( i18n("Keep only the last"), leaveOnServerCountBox );
- connect( mPop.leaveOnServerCountCheck, SIGNAL( toggled(bool) ),
- this, SLOT( slotEnableLeaveOnServerCount(bool)) );
+ new TQCheckBox( i18n("Keep only the last"), leaveOnServerCountBox );
+ connect( mPop.leaveOnServerCountCheck, TQT_SIGNAL( toggled(bool) ),
+ this, TQT_SLOT( slotEnableLeaveOnServerCount(bool)) );
mPop.leaveOnServerCountSpin = new KIntNumInput( leaveOnServerCountBox );
mPop.leaveOnServerCountSpin->setRange( 1, 999999, 1, false );
- connect( mPop.leaveOnServerCountSpin, SIGNAL(valueChanged(int)),
- SLOT(slotLeaveOnServerCountChanged(int)));
+ connect( mPop.leaveOnServerCountSpin, TQT_SIGNAL(valueChanged(int)),
+ TQT_SLOT(slotLeaveOnServerCountChanged(int)));
mPop.leaveOnServerCountSpin->setValue( 100 );
grid->addMultiCellWidget( leaveOnServerCountBox, 8, 8, 0, 1 );
- QHBox *leaveOnServerSizeBox = new QHBox( page1 );
+ TQHBox *leaveOnServerSizeBox = new TQHBox( page1 );
leaveOnServerSizeBox->setSpacing( KDialog::spacingHint() );
mPop.leaveOnServerSizeCheck =
- new QCheckBox( i18n("Keep only the last"), leaveOnServerSizeBox );
- connect( mPop.leaveOnServerSizeCheck, SIGNAL( toggled(bool) ),
- this, SLOT( slotEnableLeaveOnServerSize(bool)) );
+ new TQCheckBox( i18n("Keep only the last"), leaveOnServerSizeBox );
+ connect( mPop.leaveOnServerSizeCheck, TQT_SIGNAL( toggled(bool) ),
+ this, TQT_SLOT( slotEnableLeaveOnServerSize(bool)) );
mPop.leaveOnServerSizeSpin = new KIntNumInput( leaveOnServerSizeBox );
mPop.leaveOnServerSizeSpin->setRange( 1, 999999, 1, false );
mPop.leaveOnServerSizeSpin->setSuffix( i18n(" MB") );
mPop.leaveOnServerSizeSpin->setValue( 10 );
grid->addMultiCellWidget( leaveOnServerSizeBox, 9, 9, 0, 1 );
#if 0
- QHBox *resourceHB = new QHBox( page1 );
+ TQHBox *resourceHB = new TQHBox( page1 );
resourceHB->setSpacing( 11 );
mPop.resourceCheck =
- new QCheckBox( i18n( "Account for semiautomatic resource handling" ), resourceHB );
+ new TQCheckBox( i18n( "Account for semiautomatic resource handling" ), resourceHB );
mPop.resourceClearButton =
- new QPushButton( i18n( "Clear" ), resourceHB );
+ new TQPushButton( i18n( "Clear" ), resourceHB );
mPop.resourceClearButton->setEnabled( false );
- connect( mPop.resourceCheck, SIGNAL( toggled(bool) ),
- mPop.resourceClearButton, SLOT( setEnabled(bool) ) );
- QWhatsThis::add( mPop.resourceClearButton,
+ connect( mPop.resourceCheck, TQT_SIGNAL( toggled(bool) ),
+ mPop.resourceClearButton, TQT_SLOT( setEnabled(bool) ) );
+ TQWhatsThis::add( mPop.resourceClearButton,
i18n( "Delete all allocations for the resource represented by this account." ) );
- connect( mPop.resourceClearButton, SIGNAL( clicked() ),
- this, SLOT( slotClearResourceAllocations() ) );
+ connect( mPop.resourceClearButton, TQT_SIGNAL( clicked() ),
+ this, TQT_SLOT( slotClearResourceAllocations() ) );
mPop.resourceClearPastButton =
- new QPushButton( i18n( "Clear Past" ), resourceHB );
+ new TQPushButton( i18n( "Clear Past" ), resourceHB );
mPop.resourceClearPastButton->setEnabled( false );
- connect( mPop.resourceCheck, SIGNAL( toggled(bool) ),
- mPop.resourceClearPastButton, SLOT( setEnabled(bool) ) );
- QWhatsThis::add( mPop.resourceClearPastButton,
+ connect( mPop.resourceCheck, TQT_SIGNAL( toggled(bool) ),
+ mPop.resourceClearPastButton, TQT_SLOT( setEnabled(bool) ) );
+ TQWhatsThis::add( mPop.resourceClearPastButton,
i18n( "Delete all outdated allocations for the resource represented by this account." ) );
- connect( mPop.resourceClearPastButton, SIGNAL( clicked() ),
- this, SLOT( slotClearPastResourceAllocations() ) );
+ connect( mPop.resourceClearPastButton, TQT_SIGNAL( clicked() ),
+ this, TQT_SLOT( slotClearPastResourceAllocations() ) );
grid->addMultiCellWidget( resourceHB, 10, 10, 0, 2 );
#endif
mPop.includeInCheck =
- new QCheckBox( i18n("Include in man&ual mail check"), page1 );
+ new TQCheckBox( i18n("Include in man&ual mail check"), page1 );
grid->addMultiCellWidget( mPop.includeInCheck, 10, 10, 0, 1 );
- QHBox * hbox = new QHBox( page1 );
+ TQHBox * hbox = new TQHBox( page1 );
hbox->setSpacing( KDialog::spacingHint() );
mPop.filterOnServerCheck =
- new QCheckBox( i18n("&Filter messages if they are greater than"), hbox );
+ new TQCheckBox( i18n("&Filter messages if they are greater than"), hbox );
mPop.filterOnServerSizeSpin = new KIntNumInput ( hbox );
mPop.filterOnServerSizeSpin->setEnabled( false );
hbox->setStretchFactor( mPop.filterOnServerSizeSpin, 1 );
mPop.filterOnServerSizeSpin->setRange( 1, 10000000, 100, false );
- connect(mPop.filterOnServerSizeSpin, SIGNAL(valueChanged(int)),
- SLOT(slotFilterOnServerSizeChanged(int)));
+ connect(mPop.filterOnServerSizeSpin, TQT_SIGNAL(valueChanged(int)),
+ TQT_SLOT(slotFilterOnServerSizeChanged(int)));
mPop.filterOnServerSizeSpin->setValue( 50000 );
grid->addMultiCellWidget( hbox, 11, 11, 0, 1 );
- connect( mPop.filterOnServerCheck, SIGNAL(toggled(bool)),
- mPop.filterOnServerSizeSpin, SLOT(setEnabled(bool)) );
- connect( mPop.filterOnServerCheck, SIGNAL( clicked() ),
- this, SLOT( slotFilterOnServerClicked() ) );
- QString msg = i18n("If you select this option, POP Filters will be used to "
+ connect( mPop.filterOnServerCheck, TQT_SIGNAL(toggled(bool)),
+ mPop.filterOnServerSizeSpin, TQT_SLOT(setEnabled(bool)) );
+ connect( mPop.filterOnServerCheck, TQT_SIGNAL( clicked() ),
+ this, TQT_SLOT( slotFilterOnServerClicked() ) );
+ TQString msg = i18n("If you select this option, POP Filters will be used to "
"decide what to do with messages. You can then select "
"to download, delete or keep them on the server." );
- QWhatsThis::add( mPop.filterOnServerCheck, msg );
- QWhatsThis::add( mPop.filterOnServerSizeSpin, msg );
+ TQWhatsThis::add( mPop.filterOnServerCheck, msg );
+ TQWhatsThis::add( mPop.filterOnServerSizeSpin, msg );
mPop.intervalCheck =
- new QCheckBox( i18n("Enable &interval mail checking"), page1 );
+ new TQCheckBox( i18n("Enable &interval mail checking"), page1 );
grid->addMultiCellWidget( mPop.intervalCheck, 12, 12, 0, 1 );
- connect( mPop.intervalCheck, SIGNAL(toggled(bool)),
- this, SLOT(slotEnablePopInterval(bool)) );
- mPop.intervalLabel = new QLabel( i18n("Chec&k interval:"), page1 );
+ connect( mPop.intervalCheck, TQT_SIGNAL(toggled(bool)),
+ this, TQT_SLOT(slotEnablePopInterval(bool)) );
+ mPop.intervalLabel = new TQLabel( i18n("Chec&k interval:"), page1 );
grid->addWidget( mPop.intervalLabel, 13, 0 );
mPop.intervalSpin = new KIntNumInput( page1 );
mPop.intervalSpin->setRange( GlobalSettings::self()->minimumCheckInterval(), 10000, 1, false );
@@ -743,142 +743,142 @@ void AccountDialog::makePopAccountPage()
mPop.intervalLabel->setBuddy( mPop.intervalSpin );
grid->addWidget( mPop.intervalSpin, 13, 1 );
- label = new QLabel( i18n("Des&tination folder:"), page1 );
+ label = new TQLabel( i18n("Des&tination folder:"), page1 );
grid->addWidget( label, 14, 0 );
- mPop.folderCombo = new QComboBox( false, page1 );
+ mPop.folderCombo = new TQComboBox( false, page1 );
label->setBuddy( mPop.folderCombo );
grid->addWidget( mPop.folderCombo, 14, 1 );
- label = new QLabel( i18n("Pre-com&mand:"), page1 );
+ label = new TQLabel( i18n("Pre-com&mand:"), page1 );
grid->addWidget( label, 15, 0 );
mPop.precommand = new KLineEdit( page1 );
label->setBuddy(mPop.precommand);
grid->addWidget( mPop.precommand, 15, 1 );
- mPop.identityLabel = new QLabel( i18n("Identity:"), page1 );
+ mPop.identityLabel = new TQLabel( i18n("Identity:"), page1 );
grid->addWidget( mPop.identityLabel, 16, 0 );
mPop.identityCombo = new KPIM::IdentityCombo(kmkernel->identityManager(), page1 );
mPop.identityLabel->setBuddy( mPop.identityCombo );
grid->addWidget( mPop.identityCombo, 16, 1 );
- QWidget *page2 = new QWidget( tabWidget );
+ TQWidget *page2 = new TQWidget( tabWidget );
tabWidget->addTab( page2, i18n("&Extras") );
- QVBoxLayout *vlay = new QVBoxLayout( page2, marginHint(), spacingHint() );
+ TQVBoxLayout *vlay = new TQVBoxLayout( page2, marginHint(), spacingHint() );
vlay->addSpacing( KDialog::spacingHint() );
- QHBoxLayout *buttonLay = new QHBoxLayout( vlay );
+ TQHBoxLayout *buttonLay = new TQHBoxLayout( vlay );
mPop.checkCapabilities =
- new QPushButton( i18n("Check &What the Server Supports"), page2 );
- connect(mPop.checkCapabilities, SIGNAL(clicked()),
- SLOT(slotCheckPopCapabilities()));
+ new TQPushButton( i18n("Check &What the Server Supports"), page2 );
+ connect(mPop.checkCapabilities, TQT_SIGNAL(clicked()),
+ TQT_SLOT(slotCheckPopCapabilities()));
buttonLay->addStretch();
buttonLay->addWidget( mPop.checkCapabilities );
buttonLay->addStretch();
vlay->addSpacing( KDialog::spacingHint() );
- mPop.encryptionGroup = new QButtonGroup( 1, Qt::Horizontal,
+ mPop.encryptionGroup = new TQButtonGroup( 1, Qt::Horizontal,
i18n("Encryption"), page2 );
mPop.encryptionNone =
- new QRadioButton( i18n("&None"), mPop.encryptionGroup );
+ new TQRadioButton( i18n("&None"), mPop.encryptionGroup );
mPop.encryptionSSL =
- new QRadioButton( i18n("Use &SSL for secure mail download"),
+ new TQRadioButton( i18n("Use &SSL for secure mail download"),
mPop.encryptionGroup );
mPop.encryptionTLS =
- new QRadioButton( i18n("Use &TLS for secure mail download"),
+ new TQRadioButton( i18n("Use &TLS for secure mail download"),
mPop.encryptionGroup );
- connect(mPop.encryptionGroup, SIGNAL(clicked(int)),
- SLOT(slotPopEncryptionChanged(int)));
+ connect(mPop.encryptionGroup, TQT_SIGNAL(clicked(int)),
+ TQT_SLOT(slotPopEncryptionChanged(int)));
vlay->addWidget( mPop.encryptionGroup );
- mPop.authGroup = new QButtonGroup( 1, Qt::Horizontal,
+ mPop.authGroup = new TQButtonGroup( 1, Qt::Horizontal,
i18n("Authentication Method"), page2 );
- mPop.authUser = new QRadioButton( i18n("Clear te&xt") , mPop.authGroup,
+ mPop.authUser = new TQRadioButton( i18n("Clear te&xt") , mPop.authGroup,
"auth clear text" );
- mPop.authLogin = new QRadioButton( i18n("Please translate this "
+ mPop.authLogin = new TQRadioButton( i18n("Please translate this "
"authentication method only if you have a good reason", "&LOGIN"),
mPop.authGroup, "auth login" );
- mPop.authPlain = new QRadioButton( i18n("Please translate this "
+ mPop.authPlain = new TQRadioButton( i18n("Please translate this "
"authentication method only if you have a good reason", "&PLAIN"),
mPop.authGroup, "auth plain" );
- mPop.authCRAM_MD5 = new QRadioButton( i18n("CRAM-MD&5"), mPop.authGroup, "auth cram-md5" );
- mPop.authDigestMd5 = new QRadioButton( i18n("&DIGEST-MD5"), mPop.authGroup, "auth digest-md5" );
- mPop.authNTLM = new QRadioButton( i18n("&NTLM"), mPop.authGroup, "auth ntlm" );
- mPop.authGSSAPI = new QRadioButton( i18n("&GSSAPI"), mPop.authGroup, "auth gssapi" );
+ mPop.authCRAM_MD5 = new TQRadioButton( i18n("CRAM-MD&5"), mPop.authGroup, "auth cram-md5" );
+ mPop.authDigestMd5 = new TQRadioButton( i18n("&DIGEST-MD5"), mPop.authGroup, "auth digest-md5" );
+ mPop.authNTLM = new TQRadioButton( i18n("&NTLM"), mPop.authGroup, "auth ntlm" );
+ mPop.authGSSAPI = new TQRadioButton( i18n("&GSSAPI"), mPop.authGroup, "auth gssapi" );
if ( KProtocolInfo::capabilities("pop3").contains("SASL") == 0 )
{
mPop.authNTLM->hide();
mPop.authGSSAPI->hide();
}
- mPop.authAPOP = new QRadioButton( i18n("&APOP"), mPop.authGroup, "auth apop" );
+ mPop.authAPOP = new TQRadioButton( i18n("&APOP"), mPop.authGroup, "auth apop" );
vlay->addWidget( mPop.authGroup );
mPop.usePipeliningCheck =
- new QCheckBox( i18n("&Use pipelining for faster mail download"), page2 );
- connect(mPop.usePipeliningCheck, SIGNAL(clicked()),
- SLOT(slotPipeliningClicked()));
+ new TQCheckBox( i18n("&Use pipelining for faster mail download"), page2 );
+ connect(mPop.usePipeliningCheck, TQT_SIGNAL(clicked()),
+ TQT_SLOT(slotPipeliningClicked()));
vlay->addWidget( mPop.usePipeliningCheck );
vlay->addStretch();
- connect(kapp,SIGNAL(kdisplayFontChanged()),SLOT(slotFontChanged()));
+ connect(kapp,TQT_SIGNAL(kdisplayFontChanged()),TQT_SLOT(slotFontChanged()));
}
void AccountDialog::makeImapAccountPage( bool connected )
{
- QFrame *page = makeMainWidget();
- QVBoxLayout *topLayout = new QVBoxLayout( page, 0, spacingHint() );
+ TQFrame *page = makeMainWidget();
+ TQVBoxLayout *topLayout = new TQVBoxLayout( page, 0, spacingHint() );
- mImap.titleLabel = new QLabel( page );
+ mImap.titleLabel = new TQLabel( page );
if( connected )
mImap.titleLabel->setText( i18n("Account Type: Disconnected IMAP Account") );
else
mImap.titleLabel->setText( i18n("Account Type: IMAP Account") );
- QFont titleFont( mImap.titleLabel->font() );
+ TQFont titleFont( mImap.titleLabel->font() );
titleFont.setBold( true );
mImap.titleLabel->setFont( titleFont );
topLayout->addWidget( mImap.titleLabel );
KSeparator *hline = new KSeparator( KSeparator::HLine, page);
topLayout->addWidget( hline );
- QTabWidget *tabWidget = new QTabWidget(page);
+ TQTabWidget *tabWidget = new TQTabWidget(page);
topLayout->addWidget( tabWidget );
- QWidget *page1 = new QWidget( tabWidget );
+ TQWidget *page1 = new TQWidget( tabWidget );
tabWidget->addTab( page1, i18n("&General") );
int row = -1;
- QGridLayout *grid = new QGridLayout( page1, 16, 2, marginHint(), spacingHint() );
+ TQGridLayout *grid = new TQGridLayout( page1, 16, 2, marginHint(), spacingHint() );
grid->addColSpacing( 1, fontMetrics().maxWidth()*16 );
++row;
- QLabel *label = new QLabel( i18n("Account &name:"), page1 );
+ TQLabel *label = new TQLabel( i18n("Account &name:"), page1 );
grid->addWidget( label, row, 0 );
mImap.nameEdit = new KLineEdit( page1 );
label->setBuddy( mImap.nameEdit );
grid->addWidget( mImap.nameEdit, row, 1 );
++row;
- label = new QLabel( i18n("&Login:"), page1 );
- QWhatsThis::add( label, i18n("Your Internet Service Provider gave you a <em>user name</em> which is used to authenticate you with their servers. It usually is the first part of your email address (the part before <em>@</em>).") );
+ label = new TQLabel( i18n("&Login:"), page1 );
+ TQWhatsThis::add( label, i18n("Your Internet Service Provider gave you a <em>user name</em> which is used to authenticate you with their servers. It usually is the first part of your email address (the part before <em>@</em>).") );
grid->addWidget( label, row, 0 );
mImap.loginEdit = new KLineEdit( page1 );
label->setBuddy( mImap.loginEdit );
grid->addWidget( mImap.loginEdit, row, 1 );
++row;
- label = new QLabel( i18n("P&assword:"), page1 );
+ label = new TQLabel( i18n("P&assword:"), page1 );
grid->addWidget( label, row, 0 );
mImap.passwordEdit = new KLineEdit( page1 );
- mImap.passwordEdit->setEchoMode( QLineEdit::Password );
+ mImap.passwordEdit->setEchoMode( TQLineEdit::Password );
label->setBuddy( mImap.passwordEdit );
grid->addWidget( mImap.passwordEdit, row, 1 );
++row;
- label = new QLabel( i18n("Ho&st:"), page1 );
+ label = new TQLabel( i18n("Ho&st:"), page1 );
grid->addWidget( label, row, 0 );
mImap.hostEdit = new KLineEdit( page1 );
// only letters, digits, '-', '.', ':' (IPv6) and '_' (for Windows
@@ -888,77 +888,77 @@ void AccountDialog::makeImapAccountPage( bool connected )
grid->addWidget( mImap.hostEdit, row, 1 );
++row;
- label = new QLabel( i18n("&Port:"), page1 );
+ label = new TQLabel( i18n("&Port:"), page1 );
grid->addWidget( label, row, 0 );
mImap.portEdit = new KLineEdit( page1 );
- mImap.portEdit->setValidator( new QIntValidator(this) );
+ mImap.portEdit->setValidator( new TQIntValidator(this) );
label->setBuddy( mImap.portEdit );
grid->addWidget( mImap.portEdit, row, 1 );
// namespace list
++row;
- QHBox* box = new QHBox( page1 );
- label = new QLabel( i18n("Namespaces:"), box );
- QWhatsThis::add( label, i18n( "Here you see the different namespaces that your IMAP server supports."
+ TQHBox* box = new TQHBox( page1 );
+ label = new TQLabel( i18n("Namespaces:"), box );
+ TQWhatsThis::add( label, i18n( "Here you see the different namespaces that your IMAP server supports."
"Each namespace represents a prefix that separates groups of folders."
"Namespaces allow KMail for example to display your personal folders and shared folders in one account." ) );
// button to reload
- QToolButton* button = new QToolButton( box );
+ TQToolButton* button = new TQToolButton( box );
button->setAutoRaise(true);
- button->setSizePolicy( QSizePolicy( QSizePolicy::Fixed, QSizePolicy::Fixed ) );
+ button->setSizePolicy( TQSizePolicy( TQSizePolicy::Fixed, TQSizePolicy::Fixed ) );
button->setFixedSize( 22, 22 );
button->setIconSet(
KGlobal::iconLoader()->loadIconSet( "reload", KIcon::Small, 0 ) );
- connect( button, SIGNAL(clicked()), this, SLOT(slotReloadNamespaces()) );
- QWhatsThis::add( button,
+ connect( button, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotReloadNamespaces()) );
+ TQWhatsThis::add( button,
i18n("Reload the namespaces from the server. This overwrites any changes.") );
grid->addWidget( box, row, 0 );
// grid with label, namespace list and edit button
- QGrid* listbox = new QGrid( 3, page1 );
- label = new QLabel( i18n("Personal"), listbox );
- QWhatsThis::add( label, i18n( "Personal namespaces include your personal folders." ) );
+ TQGrid* listbox = new TQGrid( 3, page1 );
+ label = new TQLabel( i18n("Personal"), listbox );
+ TQWhatsThis::add( label, i18n( "Personal namespaces include your personal folders." ) );
mImap.personalNS = new KLineEdit( listbox );
mImap.personalNS->setReadOnly( true );
- mImap.editPNS = new QToolButton( listbox );
+ mImap.editPNS = new TQToolButton( listbox );
mImap.editPNS->setIconSet(
KGlobal::iconLoader()->loadIconSet( "edit", KIcon::Small, 0 ) );
mImap.editPNS->setAutoRaise( true );
- mImap.editPNS->setSizePolicy( QSizePolicy( QSizePolicy::Fixed, QSizePolicy::Fixed ) );
+ mImap.editPNS->setSizePolicy( TQSizePolicy( TQSizePolicy::Fixed, TQSizePolicy::Fixed ) );
mImap.editPNS->setFixedSize( 22, 22 );
- connect( mImap.editPNS, SIGNAL(clicked()), this, SLOT(slotEditPersonalNamespace()) );
+ connect( mImap.editPNS, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotEditPersonalNamespace()) );
- label = new QLabel( i18n("Other Users"), listbox );
- QWhatsThis::add( label, i18n( "These namespaces include the folders of other users." ) );
+ label = new TQLabel( i18n("Other Users"), listbox );
+ TQWhatsThis::add( label, i18n( "These namespaces include the folders of other users." ) );
mImap.otherUsersNS = new KLineEdit( listbox );
mImap.otherUsersNS->setReadOnly( true );
- mImap.editONS = new QToolButton( listbox );
+ mImap.editONS = new TQToolButton( listbox );
mImap.editONS->setIconSet(
KGlobal::iconLoader()->loadIconSet( "edit", KIcon::Small, 0 ) );
mImap.editONS->setAutoRaise( true );
- mImap.editONS->setSizePolicy( QSizePolicy( QSizePolicy::Fixed, QSizePolicy::Fixed ) );
+ mImap.editONS->setSizePolicy( TQSizePolicy( TQSizePolicy::Fixed, TQSizePolicy::Fixed ) );
mImap.editONS->setFixedSize( 22, 22 );
- connect( mImap.editONS, SIGNAL(clicked()), this, SLOT(slotEditOtherUsersNamespace()) );
+ connect( mImap.editONS, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotEditOtherUsersNamespace()) );
- label = new QLabel( i18n("Shared"), listbox );
- QWhatsThis::add( label, i18n( "These namespaces include the shared folders." ) );
+ label = new TQLabel( i18n("Shared"), listbox );
+ TQWhatsThis::add( label, i18n( "These namespaces include the shared folders." ) );
mImap.sharedNS = new KLineEdit( listbox );
mImap.sharedNS->setReadOnly( true );
- mImap.editSNS = new QToolButton( listbox );
+ mImap.editSNS = new TQToolButton( listbox );
mImap.editSNS->setIconSet(
KGlobal::iconLoader()->loadIconSet( "edit", KIcon::Small, 0 ) );
mImap.editSNS->setAutoRaise( true );
- mImap.editSNS->setSizePolicy( QSizePolicy( QSizePolicy::Fixed, QSizePolicy::Fixed ) );
+ mImap.editSNS->setSizePolicy( TQSizePolicy( TQSizePolicy::Fixed, TQSizePolicy::Fixed ) );
mImap.editSNS->setFixedSize( 22, 22 );
- connect( mImap.editSNS, SIGNAL(clicked()), this, SLOT(slotEditSharedNamespace()) );
+ connect( mImap.editSNS, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotEditSharedNamespace()) );
label->setBuddy( listbox );
grid->addWidget( listbox, row, 1 );
++row;
mImap.storePasswordCheck =
- new QCheckBox( i18n("Sto&re IMAP password"), page1 );
- QWhatsThis::add( mImap.storePasswordCheck,
+ new TQCheckBox( i18n("Sto&re IMAP password"), page1 );
+ TQWhatsThis::add( mImap.storePasswordCheck,
i18n("Check this option to have KMail store "
"the password.\nIf KWallet is available "
"the password will be stored there which is considered "
@@ -973,31 +973,31 @@ void AccountDialog::makeImapAccountPage( bool connected )
if( !connected ) {
++row;
mImap.autoExpungeCheck =
- new QCheckBox( i18n("Automaticall&y compact folders (expunges deleted messages)"), page1);
+ new TQCheckBox( i18n("Automaticall&y compact folders (expunges deleted messages)"), page1);
grid->addMultiCellWidget( mImap.autoExpungeCheck, row, row, 0, 1 );
}
++row;
- mImap.hiddenFoldersCheck = new QCheckBox( i18n("Sho&w hidden folders"), page1);
+ mImap.hiddenFoldersCheck = new TQCheckBox( i18n("Sho&w hidden folders"), page1);
grid->addMultiCellWidget( mImap.hiddenFoldersCheck, row, row, 0, 1 );
++row;
- mImap.subscribedFoldersCheck = new QCheckBox(
+ mImap.subscribedFoldersCheck = new TQCheckBox(
i18n("Show only s&ubscribed folders"), page1);
grid->addMultiCellWidget( mImap.subscribedFoldersCheck, row, row, 0, 1 );
++row;
- mImap.locallySubscribedFoldersCheck = new QCheckBox(
+ mImap.locallySubscribedFoldersCheck = new TQCheckBox(
i18n("Show only &locally subscribed folders"), page1);
grid->addMultiCellWidget( mImap.locallySubscribedFoldersCheck, row, row, 0, 1 );
if ( !connected ) {
// not implemented for disconnected yet
++row;
- mImap.loadOnDemandCheck = new QCheckBox(
+ mImap.loadOnDemandCheck = new TQCheckBox(
i18n("Load attach&ments on demand"), page1);
- QWhatsThis::add( mImap.loadOnDemandCheck,
+ TQWhatsThis::add( mImap.loadOnDemandCheck,
i18n("Activate this to load attachments not automatically when you select the email but only when you click on the attachment. This way also big emails are shown instantly.") );
grid->addMultiCellWidget( mImap.loadOnDemandCheck, row, row, 0, 1 );
}
@@ -1005,53 +1005,53 @@ void AccountDialog::makeImapAccountPage( bool connected )
if ( !connected ) {
// not implemented for disconnected yet
++row;
- mImap.listOnlyOpenCheck = new QCheckBox(
+ mImap.listOnlyOpenCheck = new TQCheckBox(
i18n("List only open folders"), page1);
- QWhatsThis::add( mImap.listOnlyOpenCheck,
+ TQWhatsThis::add( mImap.listOnlyOpenCheck,
i18n("Only folders that are open (expanded) in the folder tree are checked for subfolders. Use this if there are many folders on the server.") );
grid->addMultiCellWidget( mImap.listOnlyOpenCheck, row, row, 0, 1 );
}
#if 0
++row;
- QHBox* resourceHB = new QHBox( page1 );
+ TQHBox* resourceHB = new TQHBox( page1 );
resourceHB->setSpacing( 11 );
mImap.resourceCheck =
- new QCheckBox( i18n( "Account for semiautomatic resource handling" ), resourceHB );
+ new TQCheckBox( i18n( "Account for semiautomatic resource handling" ), resourceHB );
mImap.resourceClearButton =
- new QPushButton( i18n( "Clear" ), resourceHB );
+ new TQPushButton( i18n( "Clear" ), resourceHB );
mImap.resourceClearButton->setEnabled( false );
- connect( mImap.resourceCheck, SIGNAL( toggled(bool) ),
- mImap.resourceClearButton, SLOT( setEnabled(bool) ) );
- QWhatsThis::add( mImap.resourceClearButton,
+ connect( mImap.resourceCheck, TQT_SIGNAL( toggled(bool) ),
+ mImap.resourceClearButton, TQT_SLOT( setEnabled(bool) ) );
+ TQWhatsThis::add( mImap.resourceClearButton,
i18n( "Delete all allocations for the resource represented by this account." ) );
- connect( mImap.resourceClearButton, SIGNAL( clicked() ),
- this, SLOT( slotClearResourceAllocations() ) );
+ connect( mImap.resourceClearButton, TQT_SIGNAL( clicked() ),
+ this, TQT_SLOT( slotClearResourceAllocations() ) );
mImap.resourceClearPastButton =
- new QPushButton( i18n( "Clear Past" ), resourceHB );
+ new TQPushButton( i18n( "Clear Past" ), resourceHB );
mImap.resourceClearPastButton->setEnabled( false );
- connect( mImap.resourceCheck, SIGNAL( toggled(bool) ),
- mImap.resourceClearPastButton, SLOT( setEnabled(bool) ) );
- QWhatsThis::add( mImap.resourceClearPastButton,
+ connect( mImap.resourceCheck, TQT_SIGNAL( toggled(bool) ),
+ mImap.resourceClearPastButton, TQT_SLOT( setEnabled(bool) ) );
+ TQWhatsThis::add( mImap.resourceClearPastButton,
i18n( "Delete all outdated allocations for the resource represented by this account." ) );
- connect( mImap.resourceClearPastButton, SIGNAL( clicked() ),
- this, SLOT( slotClearPastResourceAllocations() ) );
+ connect( mImap.resourceClearPastButton, TQT_SIGNAL( clicked() ),
+ this, TQT_SLOT( slotClearPastResourceAllocations() ) );
grid->addMultiCellWidget( resourceHB, row, row, 0, 2 );
#endif
++row;
mImap.includeInCheck =
- new QCheckBox( i18n("Include in manual mail chec&k"), page1 );
+ new TQCheckBox( i18n("Include in manual mail chec&k"), page1 );
grid->addMultiCellWidget( mImap.includeInCheck, row, row, 0, 1 );
++row;
mImap.intervalCheck =
- new QCheckBox( i18n("Enable &interval mail checking"), page1 );
+ new TQCheckBox( i18n("Enable &interval mail checking"), page1 );
grid->addMultiCellWidget( mImap.intervalCheck, row, row, 0, 2 );
- connect( mImap.intervalCheck, SIGNAL(toggled(bool)),
- this, SLOT(slotEnableImapInterval(bool)) );
+ connect( mImap.intervalCheck, TQT_SIGNAL(toggled(bool)),
+ this, TQT_SLOT(slotEnableImapInterval(bool)) );
++row;
- mImap.intervalLabel = new QLabel( i18n("Check inter&val:"), page1 );
+ mImap.intervalLabel = new TQLabel( i18n("Check inter&val:"), page1 );
grid->addWidget( mImap.intervalLabel, row, 0 );
mImap.intervalSpin = new KIntNumInput( page1 );
mImap.intervalSpin->setRange( GlobalSettings::minimumCheckInterval(), 60, 1, false );
@@ -1061,7 +1061,7 @@ void AccountDialog::makeImapAccountPage( bool connected )
grid->addWidget( mImap.intervalSpin, row, 1 );
++row;
- label = new QLabel( i18n("&Trash folder:"), page1 );
+ label = new TQLabel( i18n("&Trash folder:"), page1 );
grid->addWidget( label, row, 0 );
mImap.trashCombo = new FolderRequester( page1,
kmkernel->getKMMainWidget()->folderTree() );
@@ -1070,57 +1070,57 @@ void AccountDialog::makeImapAccountPage( bool connected )
grid->addWidget( mImap.trashCombo, row, 1 );
++row;
- mImap.identityLabel = new QLabel( i18n("Identity:"), page1 );
+ mImap.identityLabel = new TQLabel( i18n("Identity:"), page1 );
grid->addWidget( mImap.identityLabel, row, 0 );
mImap.identityCombo = new KPIM::IdentityCombo(kmkernel->identityManager(), page1 );
mImap.identityLabel->setBuddy( mImap.identityCombo );
grid->addWidget( mImap.identityCombo, row, 1 );
- QWidget *page2 = new QWidget( tabWidget );
+ TQWidget *page2 = new TQWidget( tabWidget );
tabWidget->addTab( page2, i18n("S&ecurity") );
- QVBoxLayout *vlay = new QVBoxLayout( page2, marginHint(), spacingHint() );
+ TQVBoxLayout *vlay = new TQVBoxLayout( page2, marginHint(), spacingHint() );
vlay->addSpacing( KDialog::spacingHint() );
- QHBoxLayout *buttonLay = new QHBoxLayout( vlay );
+ TQHBoxLayout *buttonLay = new TQHBoxLayout( vlay );
mImap.checkCapabilities =
- new QPushButton( i18n("Check &What the Server Supports"), page2 );
- connect(mImap.checkCapabilities, SIGNAL(clicked()),
- SLOT(slotCheckImapCapabilities()));
+ new TQPushButton( i18n("Check &What the Server Supports"), page2 );
+ connect(mImap.checkCapabilities, TQT_SIGNAL(clicked()),
+ TQT_SLOT(slotCheckImapCapabilities()));
buttonLay->addStretch();
buttonLay->addWidget( mImap.checkCapabilities );
buttonLay->addStretch();
vlay->addSpacing( KDialog::spacingHint() );
- mImap.encryptionGroup = new QButtonGroup( 1, Qt::Horizontal,
+ mImap.encryptionGroup = new TQButtonGroup( 1, Qt::Horizontal,
i18n("Encryption"), page2 );
mImap.encryptionNone =
- new QRadioButton( i18n("&None"), mImap.encryptionGroup );
+ new TQRadioButton( i18n("&None"), mImap.encryptionGroup );
mImap.encryptionSSL =
- new QRadioButton( i18n("Use &SSL for secure mail download"),
+ new TQRadioButton( i18n("Use &SSL for secure mail download"),
mImap.encryptionGroup );
mImap.encryptionTLS =
- new QRadioButton( i18n("Use &TLS for secure mail download"),
+ new TQRadioButton( i18n("Use &TLS for secure mail download"),
mImap.encryptionGroup );
- connect(mImap.encryptionGroup, SIGNAL(clicked(int)),
- SLOT(slotImapEncryptionChanged(int)));
+ connect(mImap.encryptionGroup, TQT_SIGNAL(clicked(int)),
+ TQT_SLOT(slotImapEncryptionChanged(int)));
vlay->addWidget( mImap.encryptionGroup );
- mImap.authGroup = new QButtonGroup( 1, Qt::Horizontal,
+ mImap.authGroup = new TQButtonGroup( 1, Qt::Horizontal,
i18n("Authentication Method"), page2 );
- mImap.authUser = new QRadioButton( i18n("Clear te&xt"), mImap.authGroup );
- mImap.authLogin = new QRadioButton( i18n("Please translate this "
+ mImap.authUser = new TQRadioButton( i18n("Clear te&xt"), mImap.authGroup );
+ mImap.authLogin = new TQRadioButton( i18n("Please translate this "
"authentication method only if you have a good reason", "&LOGIN"),
mImap.authGroup );
- mImap.authPlain = new QRadioButton( i18n("Please translate this "
+ mImap.authPlain = new TQRadioButton( i18n("Please translate this "
"authentication method only if you have a good reason", "&PLAIN"),
mImap.authGroup );
- mImap.authCramMd5 = new QRadioButton( i18n("CRAM-MD&5"), mImap.authGroup );
- mImap.authDigestMd5 = new QRadioButton( i18n("&DIGEST-MD5"), mImap.authGroup );
- mImap.authNTLM = new QRadioButton( i18n("&NTLM"), mImap.authGroup );
- mImap.authGSSAPI = new QRadioButton( i18n("&GSSAPI"), mImap.authGroup );
- mImap.authAnonymous = new QRadioButton( i18n("&Anonymous"), mImap.authGroup );
+ mImap.authCramMd5 = new TQRadioButton( i18n("CRAM-MD&5"), mImap.authGroup );
+ mImap.authDigestMd5 = new TQRadioButton( i18n("&DIGEST-MD5"), mImap.authGroup );
+ mImap.authNTLM = new TQRadioButton( i18n("&NTLM"), mImap.authGroup );
+ mImap.authGSSAPI = new TQRadioButton( i18n("&GSSAPI"), mImap.authGroup );
+ mImap.authAnonymous = new TQRadioButton( i18n("&Anonymous"), mImap.authGroup );
vlay->addWidget( mImap.authGroup );
vlay->addStretch();
@@ -1130,16 +1130,16 @@ void AccountDialog::makeImapAccountPage( bool connected )
mSieveConfigEditor->layout()->setMargin( KDialog::marginHint() );
tabWidget->addTab( mSieveConfigEditor, i18n("&Filtering") );
- connect(kapp,SIGNAL(kdisplayFontChanged()),SLOT(slotFontChanged()));
+ connect(kapp,TQT_SIGNAL(kdisplayFontChanged()),TQT_SLOT(slotFontChanged()));
}
void AccountDialog::setupSettings()
{
- QComboBox *folderCombo = 0;
+ TQComboBox *folderCombo = 0;
int interval = mAccount->checkInterval();
- QString accountType = mAccount->type();
+ TQString accountType = mAccount->type();
if( accountType == "local" )
{
ProcmailRCParser procmailrcParser;
@@ -1191,7 +1191,7 @@ void AccountDialog::setupSettings()
mPop.loginEdit->setText( ap.login() );
mPop.passwordEdit->setText( ap.passwd());
mPop.hostEdit->setText( ap.host() );
- mPop.portEdit->setText( QString("%1").arg( ap.port() ) );
+ mPop.portEdit->setText( TQString("%1").arg( ap.port() ) );
mPop.usePipeliningCheck->setChecked( ap.usePipelining() );
mPop.storePasswordCheck->setChecked( ap.storePasswd() );
mPop.leaveOnServerCheck->setChecked( ap.leaveOnServer() );
@@ -1256,7 +1256,7 @@ void AccountDialog::setupSettings()
mImap.loginEdit->setText( ai.login() );
mImap.passwordEdit->setText( ai.passwd());
mImap.hostEdit->setText( ai.host() );
- mImap.portEdit->setText( QString("%1").arg( ai.port() ) );
+ mImap.portEdit->setText( TQString("%1").arg( ai.port() ) );
mImap.autoExpungeCheck->setChecked( ai.autoExpunge() );
mImap.hiddenFoldersCheck->setChecked( ai.hiddenFolders() );
mImap.subscribedFoldersCheck->setChecked( ai.onlySubscribedFolders() );
@@ -1271,7 +1271,7 @@ void AccountDialog::setupSettings()
mImap.intervalCheck->setChecked( interval >= 1 );
if ( interval <= 0 ) mImap.intervalSpin->setValue( defaultmailcheckintervalmin );
else mImap.intervalSpin->setValue( interval );
- QString trashfolder = ai.trash();
+ TQString trashfolder = ai.trash();
if (trashfolder.isEmpty())
trashfolder = kmkernel->trashFolder()->idString();
mImap.trashCombo->setFolder( trashfolder );
@@ -1309,7 +1309,7 @@ void AccountDialog::setupSettings()
mImap.loginEdit->setText( ai.login() );
mImap.passwordEdit->setText( ai.passwd());
mImap.hostEdit->setText( ai.host() );
- mImap.portEdit->setText( QString("%1").arg( ai.port() ) );
+ mImap.portEdit->setText( TQString("%1").arg( ai.port() ) );
#if 0
mImap.resourceCheck->setChecked( ai.resource() );
#endif
@@ -1321,7 +1321,7 @@ void AccountDialog::setupSettings()
if ( interval <= 0 ) mImap.intervalSpin->setValue( defaultmailcheckintervalmin );
else mImap.intervalSpin->setValue( interval );
mImap.includeInCheck->setChecked( !ai.checkExclude() );
- QString trashfolder = ai.trash();
+ TQString trashfolder = ai.trash();
if (trashfolder.isEmpty())
trashfolder = kmkernel->trashFolder()->idString();
mImap.trashCombo->setFolder( trashfolder );
@@ -1407,7 +1407,7 @@ void AccountDialog::setupSettings()
kmkernel->folderMgr()->createI18nFolderList(&mFolderNames, &mFolderList);
while (i < mFolderNames.count())
{
- QValueList<QGuardedPtr<KMFolder> >::Iterator it = mFolderList.at(i);
+ TQValueList<TQGuardedPtr<KMFolder> >::Iterator it = mFolderList.at(i);
KMFolder *folder = *it;
if (folder->isSystemFolder())
{
@@ -1490,7 +1490,7 @@ void AccountDialog::slotPipeliningClicked()
"Supports\" button at the bottom of the dialog;\n"
"if your server does not announce it, but you want more speed, then "
"you should do some testing first by sending yourself a batch "
- "of mail and downloading it."), QString::null,
+ "of mail and downloading it."), TQString::null,
"pipelining");
}
@@ -1507,7 +1507,7 @@ void AccountDialog::slotPopEncryptionChanged(int id)
: ( id == SSL ) ? mCapaSSL
: mCapaNormal;
enablePopFeatures( mCurCapa );
- const QButton *old = mPop.authGroup->selected();
+ const TQButton *old = mPop.authGroup->selected();
if ( !old->isEnabled() )
checkHighest( mPop.authGroup );
}
@@ -1525,7 +1525,7 @@ void AccountDialog::slotImapEncryptionChanged(int id)
: ( id == SSL ) ? mCapaSSL
: mCapaNormal;
enableImapAuthMethods( authMethods );
- QButton *old = mImap.authGroup->selected();
+ TQButton *old = mImap.authGroup->selected();
if ( !old->isEnabled() )
checkHighest( mImap.authGroup );
}
@@ -1542,10 +1542,10 @@ void AccountDialog::slotCheckPopCapabilities()
delete mServerTest;
mServerTest = new KMServerTest(POP_PROTOCOL, mPop.hostEdit->text(),
mPop.portEdit->text().toInt());
- connect( mServerTest, SIGNAL( capabilities( const QStringList &,
- const QStringList & ) ),
- this, SLOT( slotPopCapabilities( const QStringList &,
- const QStringList & ) ) );
+ connect( mServerTest, TQT_SIGNAL( capabilities( const TQStringList &,
+ const TQStringList & ) ),
+ this, TQT_SLOT( slotPopCapabilities( const TQStringList &,
+ const TQStringList & ) ) );
mPop.checkCapabilities->setEnabled(false);
}
@@ -1561,20 +1561,20 @@ void AccountDialog::slotCheckImapCapabilities()
delete mServerTest;
mServerTest = new KMServerTest(IMAP_PROTOCOL, mImap.hostEdit->text(),
mImap.portEdit->text().toInt());
- connect( mServerTest, SIGNAL( capabilities( const QStringList &,
- const QStringList & ) ),
- this, SLOT( slotImapCapabilities( const QStringList &,
- const QStringList & ) ) );
+ connect( mServerTest, TQT_SIGNAL( capabilities( const TQStringList &,
+ const TQStringList & ) ),
+ this, TQT_SLOT( slotImapCapabilities( const TQStringList &,
+ const TQStringList & ) ) );
mImap.checkCapabilities->setEnabled(false);
}
-unsigned int AccountDialog::popCapabilitiesFromStringList( const QStringList & l )
+unsigned int AccountDialog::popCapabilitiesFromStringList( const TQStringList & l )
{
unsigned int capa = 0;
kdDebug( 5006 ) << k_funcinfo << l << endl;
- for ( QStringList::const_iterator it = l.begin() ; it != l.end() ; ++it ) {
- QString cur = (*it).upper();
+ for ( TQStringList::const_iterator it = l.begin() ; it != l.end() ; ++it ) {
+ TQString cur = (*it).upper();
if ( cur == "PLAIN" )
capa |= Plain;
else if ( cur == "LOGIN" )
@@ -1602,8 +1602,8 @@ unsigned int AccountDialog::popCapabilitiesFromStringList( const QStringList & l
}
-void AccountDialog::slotPopCapabilities( const QStringList & capaNormal,
- const QStringList & capaSSL )
+void AccountDialog::slotPopCapabilities( const TQStringList & capaNormal,
+ const TQStringList & capaSSL )
{
mPop.checkCapabilities->setEnabled( true );
mCapaNormal = popCapabilitiesFromStringList( capaNormal );
@@ -1682,11 +1682,11 @@ void AccountDialog::enablePopFeatures( unsigned int capa )
}
-unsigned int AccountDialog::imapCapabilitiesFromStringList( const QStringList & l )
+unsigned int AccountDialog::imapCapabilitiesFromStringList( const TQStringList & l )
{
unsigned int capa = 0;
- for ( QStringList::const_iterator it = l.begin() ; it != l.end() ; ++it ) {
- QString cur = (*it).upper();
+ for ( TQStringList::const_iterator it = l.begin() ; it != l.end() ; ++it ) {
+ TQString cur = (*it).upper();
if ( cur == "AUTH=PLAIN" )
capa |= Plain;
else if ( cur == "AUTH=LOGIN" )
@@ -1708,8 +1708,8 @@ unsigned int AccountDialog::imapCapabilitiesFromStringList( const QStringList &
}
-void AccountDialog::slotImapCapabilities( const QStringList & capaNormal,
- const QStringList & capaSSL )
+void AccountDialog::slotImapCapabilities( const TQStringList & capaNormal,
+ const TQStringList & capaSSL )
{
mImap.checkCapabilities->setEnabled( true );
mCapaNormal = imapCapabilitiesFromStringList( capaNormal );
@@ -1760,11 +1760,11 @@ void AccountDialog::enableImapAuthMethods( unsigned int capa )
}
-void AccountDialog::checkHighest( QButtonGroup *btnGroup )
+void AccountDialog::checkHighest( TQButtonGroup *btnGroup )
{
kdDebug(5006) << "checkHighest( " << btnGroup << " )" << endl;
for ( int i = btnGroup->count() - 1; i >= 0 ; --i ) {
- QButton * btn = btnGroup->find( i );
+ TQButton * btn = btnGroup->find( i );
if ( btn && btn->isEnabled() ) {
btn->animateClick();
return;
@@ -1782,7 +1782,7 @@ void AccountDialog::slotOk()
void AccountDialog::saveSettings()
{
- QString accountType = mAccount->type();
+ TQString accountType = mAccount->type();
if( accountType == "local" )
{
KMAcctLocal *acctLocal = dynamic_cast<KMAcctLocal*>(mAccount);
@@ -1957,7 +1957,7 @@ void AccountDialog::saveSettings()
ImapAccountBase::nsDelimMap::Iterator it;
ImapAccountBase::namespaceDelim::Iterator it2;
for ( it = mImap.nsMap.begin(); it != mImap.nsMap.end(); ++it ) {
- QStringList list;
+ TQStringList list;
for ( it2 = it.data().begin(); it2 != it.data().end(); ++it2 ) {
list << it2.key();
delimMap[it2.key()] = it2.data();
@@ -1992,9 +1992,9 @@ void AccountDialog::saveSettings()
void AccountDialog::slotLocationChooser()
{
- static QString directory( "/" );
+ static TQString directory( "/" );
- KFileDialog dialog( directory, QString::null, this, 0, true );
+ KFileDialog dialog( directory, TQString::null, this, 0, true );
dialog.setCaption( i18n("Choose Location") );
bool result = dialog.exec();
@@ -2020,9 +2020,9 @@ void AccountDialog::slotLocationChooser()
void AccountDialog::slotMaildirChooser()
{
- static QString directory( "/" );
+ static TQString directory( "/" );
- QString dir = KFileDialog::getExistingDirectory(directory, this, i18n("Choose Location"));
+ TQString dir = KFileDialog::getExistingDirectory(directory, this, i18n("Choose Location"));
if( dir.isEmpty() )
return;
@@ -2077,22 +2077,22 @@ void AccountDialog::slotEnableMaildirInterval( bool state )
void AccountDialog::slotFontChanged( void )
{
- QString accountType = mAccount->type();
+ TQString accountType = mAccount->type();
if( accountType == "local" )
{
- QFont titleFont( mLocal.titleLabel->font() );
+ TQFont titleFont( mLocal.titleLabel->font() );
titleFont.setBold( true );
mLocal.titleLabel->setFont(titleFont);
}
else if( accountType == "pop" )
{
- QFont titleFont( mPop.titleLabel->font() );
+ TQFont titleFont( mPop.titleLabel->font() );
titleFont.setBold( true );
mPop.titleLabel->setFont(titleFont);
}
else if( accountType == "imap" )
{
- QFont titleFont( mImap.titleLabel->font() );
+ TQFont titleFont( mImap.titleLabel->font() );
titleFont.setBold( true );
mImap.titleLabel->setFont(titleFont);
}
@@ -2117,35 +2117,35 @@ void AccountDialog::slotReloadNamespaces()
{
initAccountForConnect();
mImap.personalNS->setText( i18n("Fetching Namespaces...") );
- mImap.otherUsersNS->setText( QString::null );
- mImap.sharedNS->setText( QString::null );
+ mImap.otherUsersNS->setText( TQString::null );
+ mImap.sharedNS->setText( TQString::null );
ImapAccountBase* ai = static_cast<ImapAccountBase*>( mAccount );
- connect( ai, SIGNAL( namespacesFetched( const ImapAccountBase::nsDelimMap& ) ),
- this, SLOT( slotSetupNamespaces( const ImapAccountBase::nsDelimMap& ) ) );
- connect( ai, SIGNAL( connectionResult(int, const QString&) ),
- this, SLOT( slotConnectionResult(int, const QString&) ) );
+ connect( ai, TQT_SIGNAL( namespacesFetched( const ImapAccountBase::nsDelimMap& ) ),
+ this, TQT_SLOT( slotSetupNamespaces( const ImapAccountBase::nsDelimMap& ) ) );
+ connect( ai, TQT_SIGNAL( connectionResult(int, const TQString&) ),
+ this, TQT_SLOT( slotConnectionResult(int, const TQString&) ) );
ai->getNamespaces();
}
}
-void AccountDialog::slotConnectionResult( int errorCode, const QString& )
+void AccountDialog::slotConnectionResult( int errorCode, const TQString& )
{
if ( errorCode > 0 ) {
ImapAccountBase* ai = static_cast<ImapAccountBase*>( mAccount );
- disconnect( ai, SIGNAL( namespacesFetched( const ImapAccountBase::nsDelimMap& ) ),
- this, SLOT( slotSetupNamespaces( const ImapAccountBase::nsDelimMap& ) ) );
- disconnect( ai, SIGNAL( connectionResult(int, const QString&) ),
- this, SLOT( slotConnectionResult(int, const QString&) ) );
- mImap.personalNS->setText( QString::null );
+ disconnect( ai, TQT_SIGNAL( namespacesFetched( const ImapAccountBase::nsDelimMap& ) ),
+ this, TQT_SLOT( slotSetupNamespaces( const ImapAccountBase::nsDelimMap& ) ) );
+ disconnect( ai, TQT_SIGNAL( connectionResult(int, const TQString&) ),
+ this, TQT_SLOT( slotConnectionResult(int, const TQString&) ) );
+ mImap.personalNS->setText( TQString::null );
}
}
void AccountDialog::slotSetupNamespaces( const ImapAccountBase::nsDelimMap& map )
{
- disconnect( this, SLOT( slotSetupNamespaces( const ImapAccountBase::nsDelimMap& ) ) );
- mImap.personalNS->setText( QString::null );
- mImap.otherUsersNS->setText( QString::null );
- mImap.sharedNS->setText( QString::null );
+ disconnect( this, TQT_SLOT( slotSetupNamespaces( const ImapAccountBase::nsDelimMap& ) ) );
+ mImap.personalNS->setText( TQString::null );
+ mImap.otherUsersNS->setText( TQString::null );
+ mImap.sharedNS->setText( TQString::null );
mImap.nsMap = map;
ImapAccountBase::namespaceDelim ns = map[ImapAccountBase::PersonalNS];
@@ -2172,10 +2172,10 @@ void AccountDialog::slotSetupNamespaces( const ImapAccountBase::nsDelimMap& map
}
}
-const QString AccountDialog::namespaceListToString( const QStringList& list )
+const TQString AccountDialog::namespaceListToString( const TQStringList& list )
{
- QStringList myList = list;
- for ( QStringList::Iterator it = myList.begin(); it != myList.end(); ++it ) {
+ TQStringList myList = list;
+ for ( TQStringList::Iterator it = myList.begin(); it != myList.end(); ++it ) {
if ( (*it).isEmpty() ) {
(*it) = "<" + i18n("Empty") + ">";
}
@@ -2185,7 +2185,7 @@ const QString AccountDialog::namespaceListToString( const QStringList& list )
void AccountDialog::initAccountForConnect()
{
- QString type = mAccount->type();
+ TQString type = mAccount->type();
if ( type == "local" )
return;
@@ -2246,7 +2246,7 @@ void AccountDialog::initAccountForConnect()
void AccountDialog::slotEditPersonalNamespace()
{
NamespaceEditDialog dialog( this, ImapAccountBase::PersonalNS, &mImap.nsMap );
- if ( dialog.exec() == QDialog::Accepted ) {
+ if ( dialog.exec() == TQDialog::Accepted ) {
slotSetupNamespaces( mImap.nsMap );
}
}
@@ -2254,7 +2254,7 @@ void AccountDialog::slotEditPersonalNamespace()
void AccountDialog::slotEditOtherUsersNamespace()
{
NamespaceEditDialog dialog( this, ImapAccountBase::OtherUsersNS, &mImap.nsMap );
- if ( dialog.exec() == QDialog::Accepted ) {
+ if ( dialog.exec() == TQDialog::Accepted ) {
slotSetupNamespaces( mImap.nsMap );
}
}
@@ -2262,30 +2262,30 @@ void AccountDialog::slotEditOtherUsersNamespace()
void AccountDialog::slotEditSharedNamespace()
{
NamespaceEditDialog dialog( this, ImapAccountBase::SharedNS, &mImap.nsMap );
- if ( dialog.exec() == QDialog::Accepted ) {
+ if ( dialog.exec() == TQDialog::Accepted ) {
slotSetupNamespaces( mImap.nsMap );
}
}
-NamespaceLineEdit::NamespaceLineEdit( QWidget* parent )
+NamespaceLineEdit::NamespaceLineEdit( TQWidget* parent )
: KLineEdit( parent )
{
}
-void NamespaceLineEdit::setText( const QString& text )
+void NamespaceLineEdit::setText( const TQString& text )
{
mLastText = text;
KLineEdit::setText( text );
}
-NamespaceEditDialog::NamespaceEditDialog( QWidget *parent,
+NamespaceEditDialog::NamespaceEditDialog( TQWidget *parent,
ImapAccountBase::imapNamespace type, ImapAccountBase::nsDelimMap* map )
- : KDialogBase( parent, "edit_namespace", false, QString::null,
+ : KDialogBase( parent, "edit_namespace", false, TQString::null,
Ok|Cancel, Ok, true ), mType( type ), mNamespaceMap( map )
{
- QVBox *page = makeVBoxMainWidget();
+ TQVBox *page = makeVBoxMainWidget();
- QString ns;
+ TQString ns;
if ( mType == ImapAccountBase::PersonalNS ) {
ns = i18n("Personal");
} else if ( mType == ImapAccountBase::OtherUsersNS ) {
@@ -2294,20 +2294,20 @@ NamespaceEditDialog::NamespaceEditDialog( QWidget *parent,
ns = i18n("Shared");
}
setCaption( i18n("Edit Namespace '%1'").arg(ns) );
- QGrid* grid = new QGrid( 2, page );
+ TQGrid* grid = new TQGrid( 2, page );
- mBg = new QButtonGroup( 0 );
- connect( mBg, SIGNAL( clicked(int) ), this, SLOT( slotRemoveEntry(int) ) );
+ mBg = new TQButtonGroup( 0 );
+ connect( mBg, TQT_SIGNAL( clicked(int) ), this, TQT_SLOT( slotRemoveEntry(int) ) );
mDelimMap = mNamespaceMap->find( mType ).data();
ImapAccountBase::namespaceDelim::Iterator it;
for ( it = mDelimMap.begin(); it != mDelimMap.end(); ++it ) {
NamespaceLineEdit* edit = new NamespaceLineEdit( grid );
edit->setText( it.key() );
- QToolButton* button = new QToolButton( grid );
+ TQToolButton* button = new TQToolButton( grid );
button->setIconSet(
KGlobal::iconLoader()->loadIconSet( "editdelete", KIcon::Small, 0 ) );
button->setAutoRaise( true );
- button->setSizePolicy( QSizePolicy( QSizePolicy::Fixed, QSizePolicy::Fixed ) );
+ button->setSizePolicy( TQSizePolicy( TQSizePolicy::Fixed, TQSizePolicy::Fixed ) );
button->setFixedSize( 22, 22 );
mLineEditMap[ mBg->insert( button ) ] = edit;
}
@@ -2334,7 +2334,7 @@ void NamespaceEditDialog::slotRemoveEntry( int id )
void NamespaceEditDialog::slotOk()
{
- QMap<int, NamespaceLineEdit*>::Iterator it;
+ TQMap<int, NamespaceLineEdit*>::Iterator it;
for ( it = mLineEditMap.begin(); it != mLineEditMap.end(); ++it ) {
NamespaceLineEdit* edit = it.data();
if ( edit->isModified() ) {
diff --git a/kmail/accountdialog.h b/kmail/accountdialog.h
index 784cee00..837e23cf 100644
--- a/kmail/accountdialog.h
+++ b/kmail/accountdialog.h
@@ -26,7 +26,7 @@
#include <kdialogbase.h>
#include <klistview.h>
#include <klineedit.h>
-#include <qguardedptr.h>
+#include <tqguardedptr.h>
#include "imapaccountbase.h"
class QRegExpValidator;
@@ -57,157 +57,157 @@ class AccountDialog : public KDialogBase
Q_OBJECT
public:
- AccountDialog( const QString & caption, KMAccount *account,
- QWidget *parent=0, const char *name=0, bool modal=true );
+ AccountDialog( const TQString & caption, KMAccount *account,
+ TQWidget *parent=0, const char *name=0, bool modal=true );
virtual ~AccountDialog();
private:
struct LocalWidgets
{
- QLabel *titleLabel;
- QLineEdit *nameEdit;
- QComboBox *locationEdit;
- QRadioButton *lockMutt;
- QRadioButton *lockMuttPriv;
- QRadioButton *lockProcmail;
- QComboBox *procmailLockFileName;
- QRadioButton *lockFcntl;
- QRadioButton *lockNone;
- QLineEdit *precommand;
+ TQLabel *titleLabel;
+ TQLineEdit *nameEdit;
+ TQComboBox *locationEdit;
+ TQRadioButton *lockMutt;
+ TQRadioButton *lockMuttPriv;
+ TQRadioButton *lockProcmail;
+ TQComboBox *procmailLockFileName;
+ TQRadioButton *lockFcntl;
+ TQRadioButton *lockNone;
+ TQLineEdit *precommand;
#if 0
- QCheckBox *resourceCheck;
- QPushButton *resourceClearButton;
- QPushButton *resourceClearPastButton;
+ TQCheckBox *resourceCheck;
+ TQPushButton *resourceClearButton;
+ TQPushButton *resourceClearPastButton;
#endif
- QCheckBox *includeInCheck;
- QCheckBox *intervalCheck;
- QLabel *intervalLabel;
+ TQCheckBox *includeInCheck;
+ TQCheckBox *intervalCheck;
+ TQLabel *intervalLabel;
KIntNumInput *intervalSpin;
- QComboBox *folderCombo;
- //QComboBox *identityCombo;
+ TQComboBox *folderCombo;
+ //TQComboBox *identityCombo;
KPIM::IdentityCombo *identityCombo;
- QLabel *identityLabel;
+ TQLabel *identityLabel;
};
struct MaildirWidgets
{
- QLabel *titleLabel;
- QLineEdit *nameEdit;
- QComboBox *locationEdit;
- QLineEdit *precommand;
+ TQLabel *titleLabel;
+ TQLineEdit *nameEdit;
+ TQComboBox *locationEdit;
+ TQLineEdit *precommand;
#if 0
- QCheckBox *resourceCheck;
- QPushButton *resourceClearButton;
- QPushButton *resourceClearPastButton;
+ TQCheckBox *resourceCheck;
+ TQPushButton *resourceClearButton;
+ TQPushButton *resourceClearPastButton;
#endif
- QCheckBox *includeInCheck;
- QCheckBox *intervalCheck;
- QLabel *intervalLabel;
+ TQCheckBox *includeInCheck;
+ TQCheckBox *intervalCheck;
+ TQLabel *intervalLabel;
KIntNumInput *intervalSpin;
- QComboBox *folderCombo;
- //QComboBox *identityCombo;
+ TQComboBox *folderCombo;
+ //TQComboBox *identityCombo;
KPIM::IdentityCombo *identityCombo;
- QLabel *identityLabel;
+ TQLabel *identityLabel;
};
struct PopWidgets
{
- QLabel *titleLabel;
- QLineEdit *nameEdit;
- QLineEdit *loginEdit;
- QLineEdit *passwordEdit;
- QLineEdit *hostEdit;
- QLineEdit *portEdit;
- QLineEdit *precommand;
- QButtonGroup *encryptionGroup;
- QRadioButton *encryptionNone;
- QRadioButton *encryptionSSL;
- QRadioButton *encryptionTLS;
- QButtonGroup *authGroup;
- QRadioButton *authUser;
- QRadioButton *authPlain;
- QRadioButton *authLogin;
- QRadioButton *authCRAM_MD5;
- QRadioButton *authDigestMd5;
- QRadioButton *authNTLM;
- QRadioButton *authGSSAPI;
- QRadioButton *authAPOP;
+ TQLabel *titleLabel;
+ TQLineEdit *nameEdit;
+ TQLineEdit *loginEdit;
+ TQLineEdit *passwordEdit;
+ TQLineEdit *hostEdit;
+ TQLineEdit *portEdit;
+ TQLineEdit *precommand;
+ TQButtonGroup *encryptionGroup;
+ TQRadioButton *encryptionNone;
+ TQRadioButton *encryptionSSL;
+ TQRadioButton *encryptionTLS;
+ TQButtonGroup *authGroup;
+ TQRadioButton *authUser;
+ TQRadioButton *authPlain;
+ TQRadioButton *authLogin;
+ TQRadioButton *authCRAM_MD5;
+ TQRadioButton *authDigestMd5;
+ TQRadioButton *authNTLM;
+ TQRadioButton *authGSSAPI;
+ TQRadioButton *authAPOP;
- QPushButton *checkCapabilities;
- QCheckBox *usePipeliningCheck;
- QCheckBox *storePasswordCheck;
- QCheckBox *leaveOnServerCheck;
- QCheckBox *leaveOnServerDaysCheck;
+ TQPushButton *checkCapabilities;
+ TQCheckBox *usePipeliningCheck;
+ TQCheckBox *storePasswordCheck;
+ TQCheckBox *leaveOnServerCheck;
+ TQCheckBox *leaveOnServerDaysCheck;
KIntNumInput *leaveOnServerDaysSpin;
- QCheckBox *leaveOnServerCountCheck;
+ TQCheckBox *leaveOnServerCountCheck;
KIntNumInput *leaveOnServerCountSpin;
- QCheckBox *leaveOnServerSizeCheck;
+ TQCheckBox *leaveOnServerSizeCheck;
KIntNumInput *leaveOnServerSizeSpin;
#if 0
- QCheckBox *resourceCheck;
- QPushButton *resourceClearButton;
- QPushButton *resourceClearPastButton;
+ TQCheckBox *resourceCheck;
+ TQPushButton *resourceClearButton;
+ TQPushButton *resourceClearPastButton;
#endif
- QCheckBox *includeInCheck;
- QCheckBox *intervalCheck;
- QCheckBox *filterOnServerCheck;
- QLabel *intervalLabel;
+ TQCheckBox *includeInCheck;
+ TQCheckBox *intervalCheck;
+ TQCheckBox *filterOnServerCheck;
+ TQLabel *intervalLabel;
KIntNumInput *intervalSpin;
KIntNumInput *filterOnServerSizeSpin;
- QComboBox *folderCombo;
- //QComboBox *identityCombo;
+ TQComboBox *folderCombo;
+ //TQComboBox *identityCombo;
KPIM::IdentityCombo *identityCombo;
- QLabel *identityLabel;
+ TQLabel *identityLabel;
};
struct ImapWidgets
{
- QLabel *titleLabel;
- QLineEdit *nameEdit;
- QLineEdit *loginEdit;
- QLineEdit *passwordEdit;
- QLineEdit *hostEdit;
- QLineEdit *portEdit;
+ TQLabel *titleLabel;
+ TQLineEdit *nameEdit;
+ TQLineEdit *loginEdit;
+ TQLineEdit *passwordEdit;
+ TQLineEdit *hostEdit;
+ TQLineEdit *portEdit;
#if 0
- QCheckBox *resourceCheck;
- QPushButton *resourceClearButton;
- QPushButton *resourceClearPastButton;
+ TQCheckBox *resourceCheck;
+ TQPushButton *resourceClearButton;
+ TQPushButton *resourceClearPastButton;
#endif
- QCheckBox *autoExpungeCheck; // only used by normal (online) IMAP
- QCheckBox *hiddenFoldersCheck;
- QCheckBox *subscribedFoldersCheck;
- QCheckBox *locallySubscribedFoldersCheck;
- QCheckBox *loadOnDemandCheck;
- QCheckBox *storePasswordCheck;
- QCheckBox *progressDialogCheck; // only used by Disconnected IMAP
- QCheckBox *includeInCheck;
- QCheckBox *intervalCheck;
- QCheckBox *listOnlyOpenCheck;
- QLabel *intervalLabel;
+ TQCheckBox *autoExpungeCheck; // only used by normal (online) IMAP
+ TQCheckBox *hiddenFoldersCheck;
+ TQCheckBox *subscribedFoldersCheck;
+ TQCheckBox *locallySubscribedFoldersCheck;
+ TQCheckBox *loadOnDemandCheck;
+ TQCheckBox *storePasswordCheck;
+ TQCheckBox *progressDialogCheck; // only used by Disconnected IMAP
+ TQCheckBox *includeInCheck;
+ TQCheckBox *intervalCheck;
+ TQCheckBox *listOnlyOpenCheck;
+ TQLabel *intervalLabel;
KIntNumInput *intervalSpin;
- QButtonGroup *encryptionGroup;
- QRadioButton *encryptionNone;
- QRadioButton *encryptionSSL;
- QRadioButton *encryptionTLS;
- QButtonGroup *authGroup;
- QRadioButton *authUser;
- QRadioButton *authPlain;
- QRadioButton *authLogin;
- QRadioButton *authCramMd5;
- QRadioButton *authDigestMd5;
- QRadioButton *authGSSAPI;
- QRadioButton *authNTLM;
- QRadioButton *authAnonymous;
- QPushButton *checkCapabilities;
+ TQButtonGroup *encryptionGroup;
+ TQRadioButton *encryptionNone;
+ TQRadioButton *encryptionSSL;
+ TQRadioButton *encryptionTLS;
+ TQButtonGroup *authGroup;
+ TQRadioButton *authUser;
+ TQRadioButton *authPlain;
+ TQRadioButton *authLogin;
+ TQRadioButton *authCramMd5;
+ TQRadioButton *authDigestMd5;
+ TQRadioButton *authGSSAPI;
+ TQRadioButton *authNTLM;
+ TQRadioButton *authAnonymous;
+ TQPushButton *checkCapabilities;
FolderRequester *trashCombo;
KLineEdit *personalNS;
KLineEdit *otherUsersNS;
KLineEdit *sharedNS;
- QToolButton *editPNS;
- QToolButton *editONS;
- QToolButton *editSNS;
+ TQToolButton *editPNS;
+ TQToolButton *editONS;
+ TQToolButton *editSNS;
ImapAccountBase::nsDelimMap nsMap;
KPIM::IdentityCombo *identityCombo;
- QLabel *identityLabel;
+ TQLabel *identityLabel;
};
private slots:
@@ -229,14 +229,14 @@ class AccountDialog : public KDialogBase
void slotImapEncryptionChanged(int);
void slotCheckPopCapabilities();
void slotCheckImapCapabilities();
- void slotPopCapabilities( const QStringList &, const QStringList & );
- void slotImapCapabilities( const QStringList &, const QStringList & );
+ void slotPopCapabilities( const TQStringList &, const TQStringList & );
+ void slotImapCapabilities( const TQStringList &, const TQStringList & );
void slotReloadNamespaces();
void slotSetupNamespaces( const ImapAccountBase::nsDelimMap& map );
void slotEditPersonalNamespace();
void slotEditOtherUsersNamespace();
void slotEditSharedNamespace();
- void slotConnectionResult( int errorCode, const QString& );
+ void slotConnectionResult( int errorCode, const TQString& );
void slotLeaveOnServerDaysChanged( int value );
void slotLeaveOnServerCountChanged( int value );
void slotFilterOnServerSizeChanged( int value );
@@ -253,13 +253,13 @@ class AccountDialog : public KDialogBase
void makeImapAccountPage( bool disconnected = false );
void setupSettings();
void saveSettings();
- void checkHighest( QButtonGroup * );
- static unsigned int popCapabilitiesFromStringList( const QStringList & );
- static unsigned int imapCapabilitiesFromStringList( const QStringList & );
+ void checkHighest( TQButtonGroup * );
+ static unsigned int popCapabilitiesFromStringList( const TQStringList & );
+ static unsigned int imapCapabilitiesFromStringList( const TQStringList & );
void enablePopFeatures( unsigned int );
void enableImapAuthMethods( unsigned int );
void initAccountForConnect();
- const QString namespaceListToString( const QStringList& list );
+ const TQString namespaceListToString( const TQStringList& list );
private:
LocalWidgets mLocal;
@@ -267,8 +267,8 @@ class AccountDialog : public KDialogBase
PopWidgets mPop;
ImapWidgets mImap;
KMAccount *mAccount;
- QValueList<QGuardedPtr<KMFolder> > mFolderList;
- QStringList mFolderNames;
+ TQValueList<TQGuardedPtr<KMFolder> > mFolderList;
+ TQStringList mFolderNames;
KMServerTest *mServerTest;
enum EncryptionMethods {
NoEncryption = 0,
@@ -296,7 +296,7 @@ class AccountDialog : public KDialogBase
unsigned int mCapaSSL;
unsigned int mCapaTLS;
KMail::SieveConfigEditor *mSieveConfigEditor;
- QRegExpValidator *mValidator;
+ TQRegExpValidator *mValidator;
};
class NamespaceLineEdit: public KLineEdit
@@ -304,15 +304,15 @@ class NamespaceLineEdit: public KLineEdit
Q_OBJECT
public:
- NamespaceLineEdit( QWidget* parent );
+ NamespaceLineEdit( TQWidget* parent );
- const QString& lastText() { return mLastText; }
+ const TQString& lastText() { return mLastText; }
public slots:
- virtual void setText ( const QString & );
+ virtual void setText ( const TQString & );
private:
- QString mLastText;
+ TQString mLastText;
};
class NamespaceEditDialog: public KDialogBase
@@ -320,7 +320,7 @@ class NamespaceEditDialog: public KDialogBase
Q_OBJECT
public:
- NamespaceEditDialog( QWidget* parent, ImapAccountBase::imapNamespace type,
+ NamespaceEditDialog( TQWidget* parent, ImapAccountBase::imapNamespace type,
ImapAccountBase::nsDelimMap* map );
protected slots:
@@ -331,8 +331,8 @@ class NamespaceEditDialog: public KDialogBase
ImapAccountBase::imapNamespace mType;
ImapAccountBase::nsDelimMap* mNamespaceMap;
ImapAccountBase::namespaceDelim mDelimMap;
- QMap<int, NamespaceLineEdit*> mLineEditMap;
- QButtonGroup* mBg;
+ TQMap<int, NamespaceLineEdit*> mLineEditMap;
+ TQButtonGroup* mBg;
};
} // namespace KMail
diff --git a/kmail/accountmanager.cpp b/kmail/accountmanager.cpp
index 54a1b416..0610622f 100644
--- a/kmail/accountmanager.cpp
+++ b/kmail/accountmanager.cpp
@@ -25,14 +25,14 @@
#include <kconfig.h>
#include <kapplication.h>
-#include <qregexp.h>
-#include <qvaluelist.h>
+#include <tqregexp.h>
+#include <tqvaluelist.h>
using namespace KMail;
//-----------------------------------------------------------------------------
AccountManager::AccountManager()
- :QObject(), mNewMailArrived( false ), mInteractive( false ),
+ :TQObject(), mNewMailArrived( false ), mInteractive( false ),
mTotalNewMailsArrived( 0 ), mDisplaySummary( false )
{
mAcctChecking.clear();
@@ -50,15 +50,15 @@ AccountManager::~AccountManager()
void AccountManager::writeConfig( bool withSync )
{
KConfig* config = KMKernel::config();
- QString groupName;
+ TQString groupName;
KConfigGroupSaver saver(config, "General");
config->writeEntry("accounts", mAcctList.count());
// first delete all account groups in the config file:
- QStringList accountGroups =
- config->groupList().grep( QRegExp( "Account \\d+" ) );
- for ( QStringList::Iterator it = accountGroups.begin() ;
+ TQStringList accountGroups =
+ config->groupList().grep( TQRegExp( "Account \\d+" ) );
+ for ( TQStringList::Iterator it = accountGroups.begin() ;
it != accountGroups.end() ; ++it )
config->deleteGroup( *it );
@@ -78,8 +78,8 @@ void AccountManager::readConfig(void)
{
KConfig* config = KMKernel::config();
KMAccount* acct;
- QString acctType, acctName;
- QCString groupName;
+ TQString acctType, acctName;
+ TQCString groupName;
int i, num;
uint id;
@@ -149,8 +149,8 @@ void AccountManager::processNextCheck( bool _newMail )
kdDebug(5006) << "account " << acct->name() << " finished check" << endl;
mAcctChecking.remove( acct );
kmkernel->filterMgr()->deref();
- disconnect( acct, SIGNAL( finishedCheck( bool, CheckStatus ) ),
- this, SLOT( processNextCheck( bool ) ) );
+ disconnect( acct, TQT_SIGNAL( finishedCheck( bool, CheckStatus ) ),
+ this, TQT_SLOT( processNextCheck( bool ) ) );
}
if ( mAcctChecking.isEmpty() ) {
// all checks finished, display summary
@@ -164,7 +164,7 @@ void AccountManager::processNextCheck( bool _newMail )
}
if ( mAcctTodo.isEmpty() ) return;
- QString accountHostName;
+ TQString accountHostName;
KMAccount *curAccount = 0;
for ( AccountList::Iterator it ( mAcctTodo.begin() ), last ( mAcctTodo.end() ); it != last; ) {
@@ -180,7 +180,7 @@ void AccountManager::processNextCheck( bool _newMail )
if ( curAccount->type() != "imap" && curAccount->type() != "cachedimap" &&
curAccount->folder() == 0 ) {
- QString tmp = i18n("Account %1 has no mailbox defined:\n"
+ TQString tmp = i18n("Account %1 has no mailbox defined:\n"
"mail checking aborted;\n"
"check your account settings.")
.arg(curAccount->name());
@@ -196,18 +196,18 @@ void AccountManager::processNextCheck( bool _newMail )
// Check with the network status daemon whether the network is available
const int NetWorkStatusUnknown = 1;
const int NetWorkStatusOnline = 8;
- QCString replyType;
- QByteArray params;
- QByteArray reply;
+ TQCString replyType;
+ TQByteArray params;
+ TQByteArray reply;
- QDataStream stream( params, IO_WriteOnly );
+ TQDataStream stream( params, IO_WriteOnly );
stream << static_cast<NetworkAccount*>( curAccount )->host();
- if ( kapp->dcopClient()->call( "kded", "networkstatus", "status(QString)",
+ if ( kapp->dcopClient()->call( "kded", "networkstatus", "status(TQString)",
params, replyType, reply ) && ( replyType == "int" ) )
{
int result;
- QDataStream stream2( reply, IO_ReadOnly );
+ TQDataStream stream2( reply, IO_ReadOnly );
stream2 >> result;
kdDebug() << k_funcinfo << "networkstatus status = " << result << endl;
// if it's not unknown (no networks announced by network control apps), and not offline, give up now
@@ -219,8 +219,8 @@ void AccountManager::processNextCheck( bool _newMail )
}
}
- connect( curAccount, SIGNAL( finishedCheck( bool, CheckStatus ) ),
- this, SLOT( processNextCheck( bool ) ) );
+ connect( curAccount, TQT_SIGNAL( finishedCheck( bool, CheckStatus ) ),
+ this, TQT_SLOT( processNextCheck( bool ) ) );
KPIM::BroadcastStatus::instance()->setStatusMsg(
i18n("Checking account %1 for new mail").arg(curAccount->name()));
@@ -234,7 +234,7 @@ void AccountManager::processNextCheck( bool _newMail )
}
//-----------------------------------------------------------------------------
-KMAccount* AccountManager::create( const QString &aType, const QString &aName, uint id )
+KMAccount* AccountManager::create( const TQString &aType, const TQString &aName, uint id )
{
KMAccount* act = 0;
if ( id == 0 )
@@ -258,8 +258,8 @@ KMAccount* AccountManager::create( const QString &aType, const QString &aName, u
kdWarning(5006) << "Attempt to instantiate a non-existing account type!" << endl;
return 0;
}
- connect( act, SIGNAL( newMailsProcessed( const QMap<QString, int> & ) ),
- this, SLOT( addToTotalNewMailCount( const QMap<QString, int> & ) ) );
+ connect( act, TQT_SIGNAL( newMailsProcessed( const TQMap<TQString, int> & ) ),
+ this, TQT_SLOT( addToTotalNewMailCount( const TQMap<TQString, int> & ) ) );
return act;
}
@@ -281,7 +281,7 @@ void AccountManager::add( KMAccount *account )
//-----------------------------------------------------------------------------
-KMAccount* AccountManager::findByName(const QString &aName) const
+KMAccount* AccountManager::findByName(const TQString &aName) const
{
if ( aName.isEmpty() ) return 0;
@@ -370,9 +370,9 @@ void AccountManager::invalidateIMAPFolders()
//-----------------------------------------------------------------------------
-QStringList AccountManager::getAccounts() const
+TQStringList AccountManager::getAccounts() const
{
- QStringList strList;
+ TQStringList strList;
for ( AccountList::ConstIterator it( mAcctList.begin() ), end( mAcctList.end() ); it != end; ++it ) {
strList.append( (*it)->name() );
}
@@ -392,9 +392,9 @@ void AccountManager::intCheckMail(int item, bool _interactive)
//-----------------------------------------------------------------------------
-void AccountManager::addToTotalNewMailCount( const QMap<QString, int> & newInFolder )
+void AccountManager::addToTotalNewMailCount( const TQMap<TQString, int> & newInFolder )
{
- for ( QMap<QString, int>::const_iterator it = newInFolder.begin();
+ for ( TQMap<TQString, int>::const_iterator it = newInFolder.begin();
it != newInFolder.end(); ++it ) {
mTotalNewMailsArrived += it.data();
if ( mTotalNewInFolder.find( it.key() ) == mTotalNewInFolder.end() )
@@ -407,7 +407,7 @@ void AccountManager::addToTotalNewMailCount( const QMap<QString, int> & newInFol
//-----------------------------------------------------------------------------
uint AccountManager::createId()
{
- QValueList<uint> usedIds;
+ TQValueList<uint> usedIds;
for ( AccountList::ConstIterator it( mAcctList.begin() ), end( mAcctList.end() ); it != end; ++it ) {
usedIds << (*it)->id();
}
diff --git a/kmail/accountmanager.h b/kmail/accountmanager.h
index fda0591f..95b7b49e 100644
--- a/kmail/accountmanager.h
+++ b/kmail/accountmanager.h
@@ -20,7 +20,7 @@
#ifndef accountmanager_h
#define accountmanager_h
-#include <qobject.h>
+#include <tqobject.h>
#include "kmaccount.h"
#include <kdepimmacros.h>
@@ -51,8 +51,8 @@ public:
/** Create a new account of given type with given name. Currently
the types "local" for local mail folders and "pop" are supported. */
- KMAccount* create( const QString& type,
- const QString& name = QString::null,
+ KMAccount* create( const TQString& type,
+ const TQString& name = TQString::null,
uint id = 0);
/** Adds an account to the list of accounts */
@@ -60,7 +60,7 @@ public:
/** Find account by name. Returns 0 if account does not exist.
Search is done case sensitive. */
- KMAccount* findByName( const QString& name ) const;
+ KMAccount* findByName( const TQString& name ) const;
/** Find account by id. Returns 0 if account does not exist.
*/
@@ -84,7 +84,7 @@ public:
/** Delete all IMAP folders and resync them */
void invalidateIMAPFolders();
- QStringList getAccounts() const;
+ TQStringList getAccounts() const;
/// Called on exit (KMMainWin::queryExit)
void cancelMailCheck();
@@ -101,7 +101,7 @@ public slots:
/** this slot increases the count of new mails to show a total number
after checking in multiple accounts. */
- void addToTotalNewMailCount( const QMap<QString, int> & newInFolder );
+ void addToTotalNewMailCount( const TQMap<TQString, int> & newInFolder );
signals:
@@ -112,7 +112,7 @@ signals:
* @param newInFolder number of new messages for each folder
**/
void checkedMail( bool newMail, bool interactive,
- const QMap<QString, int> & newInFolder );
+ const TQMap<TQString, int> & newInFolder );
/** emitted when an account is removed */
void accountRemoved( KMAccount* account );
/** emitted when an account is added */
@@ -131,7 +131,7 @@ private:
int mTotalNewMailsArrived;
// for detailed (per folder) new mail notification
- QMap<QString, int> mTotalNewInFolder;
+ TQMap<TQString, int> mTotalNewInFolder;
// if a summary should be displayed
bool mDisplaySummary;
diff --git a/kmail/accountwizard.cpp b/kmail/accountwizard.cpp
index cc831790..de6c4317 100644
--- a/kmail/accountwizard.cpp
+++ b/kmail/accountwizard.cpp
@@ -32,13 +32,13 @@
#include <klistbox.h>
#include <klocale.h>
-#include <qcheckbox.h>
-#include <qdir.h>
-#include <qhbox.h>
-#include <qlabel.h>
-#include <qlayout.h>
-#include <qpushbutton.h>
-#include <qvbox.h>
+#include <tqcheckbox.h>
+#include <tqdir.h>
+#include <tqhbox.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
+#include <tqpushbutton.h>
+#include <tqvbox.h>
#include "kmacctlocal.h"
#include "kmkernel.h"
@@ -81,7 +81,7 @@ class AccountTypeBox : public KListBox
public:
enum Type { Local, POP3, IMAP, dIMAP, Maildir };
- AccountTypeBox( QWidget *parent )
+ AccountTypeBox( TQWidget *parent )
: KListBox( parent, "AccountTypeBox" )
{
mTypeList << i18n( "Local mailbox" );
@@ -104,10 +104,10 @@ class AccountTypeBox : public KListBox
}
private:
- QStringList mTypeList;
+ TQStringList mTypeList;
};
-AccountWizard::AccountWizard( KMKernel *kernel, QWidget *parent )
+AccountWizard::AccountWizard( KMKernel *kernel, TQWidget *parent )
: KWizard( parent, "KWizard" ), mKernel( kernel ),
mAccount( 0 ), mTransportInfo( 0 ), mServerTest( 0 )
{
@@ -118,21 +118,21 @@ AccountWizard::AccountWizard( KMKernel *kernel, QWidget *parent )
setupServerInformationPage();
}
-void AccountWizard::start( KMKernel *kernel, QWidget *parent )
+void AccountWizard::start( KMKernel *kernel, TQWidget *parent )
{
KConfigGroup wizardConfig( KMKernel::config(), "AccountWizard" );
if ( wizardConfig.readBoolEntry( "ShowOnStartup", true ) ) {
AccountWizard wizard( kernel, parent );
int result = wizard.exec();
- if ( result == QDialog::Accepted ) {
+ if ( result == TQDialog::Accepted ) {
wizardConfig.writeEntry( "ShowOnStartup", false );
kernel->slotConfigChanged();
}
}
}
-void AccountWizard::showPage( QWidget *page )
+void AccountWizard::showPage( TQWidget *page )
{
if ( page == mWelcomePage ) {
// do nothing
@@ -152,7 +152,7 @@ void AccountWizard::showPage( QWidget *page )
} else if ( page == mLoginInformationPage ) {
if ( mLoginName->text().isEmpty() ) {
// try to extract login from email address
- QString email = mEMailAddress->text();
+ TQString email = mEMailAddress->text();
int pos = email.find( '@' );
if ( pos != -1 )
mLoginName->setText( email.left( pos ) );
@@ -167,9 +167,9 @@ void AccountWizard::showPage( QWidget *page )
mIncomingLabel->setText( i18n( "Location:" ) );
if ( mTypeBox->type() == AccountTypeBox::Local )
- mIncomingLocation->setText( QDir::homeDirPath() + "/inbox" );
+ mIncomingLocation->setText( TQDir::homeDirPath() + "/inbox" );
else
- mIncomingLocation->setText( QDir::homeDirPath() + "/Mail/" );
+ mIncomingLocation->setText( TQDir::homeDirPath() + "/Mail/" );
} else {
mIncomingLocationWdg->hide();
mIncomingServerWdg->show();
@@ -179,20 +179,20 @@ void AccountWizard::showPage( QWidget *page )
setFinishEnabled( mServerInformationPage, true );
}
- QWizard::showPage( page );
+ TQWizard::showPage( page );
}
void AccountWizard::setupWelcomePage()
{
- mWelcomePage = new QVBox( this );
- ((QVBox*)mWelcomePage)->setSpacing( KDialog::spacingHint() );
+ mWelcomePage = new TQVBox( this );
+ ((TQVBox*)mWelcomePage)->setSpacing( KDialog::spacingHint() );
- QLabel *label = new QLabel( i18n( "Welcome to KMail" ), mWelcomePage );
- QFont font = label->font();
+ TQLabel *label = new TQLabel( i18n( "Welcome to KMail" ), mWelcomePage );
+ TQFont font = label->font();
font.setBold( true );
label->setFont( font );
- new QLabel( i18n( "<qt>It seems you have started KMail for the first time. "
+ new TQLabel( i18n( "<qt>It seems you have started KMail for the first time. "
"You can use this wizard to setup your mail accounts. Just "
"enter the connection data that you received from your email provider "
"into the following pages.</qt>" ), mWelcomePage );
@@ -202,10 +202,10 @@ void AccountWizard::setupWelcomePage()
void AccountWizard::setupAccountTypePage()
{
- mAccountTypePage = new QVBox( this );
- ((QVBox*)mAccountTypePage)->setSpacing( KDialog::spacingHint() );
+ mAccountTypePage = new TQVBox( this );
+ ((TQVBox*)mAccountTypePage)->setSpacing( KDialog::spacingHint() );
- new QLabel( i18n( "Select what kind of account you would like to create" ), mAccountTypePage );
+ new TQLabel( i18n( "Select what kind of account you would like to create" ), mAccountTypePage );
mTypeBox = new AccountTypeBox( mAccountTypePage );
@@ -214,25 +214,25 @@ void AccountWizard::setupAccountTypePage()
void AccountWizard::setupAccountInformationPage()
{
- mAccountInformationPage = new QWidget( this );
- QGridLayout *layout = new QGridLayout( mAccountInformationPage, 3, 2,
+ mAccountInformationPage = new TQWidget( this );
+ TQGridLayout *layout = new TQGridLayout( mAccountInformationPage, 3, 2,
KDialog::marginHint(), KDialog::spacingHint() );
- QLabel *label = new QLabel( i18n( "Real name:" ), mAccountInformationPage );
+ TQLabel *label = new TQLabel( i18n( "Real name:" ), mAccountInformationPage );
mRealName = new KLineEdit( mAccountInformationPage );
label->setBuddy( mRealName );
layout->addWidget( label, 0, 0 );
layout->addWidget( mRealName, 0, 1 );
- label = new QLabel( i18n( "E-mail address:" ), mAccountInformationPage );
+ label = new TQLabel( i18n( "E-mail address:" ), mAccountInformationPage );
mEMailAddress = new KLineEdit( mAccountInformationPage );
label->setBuddy( mEMailAddress );
layout->addWidget( label, 1, 0 );
layout->addWidget( mEMailAddress, 1, 1 );
- label = new QLabel( i18n( "Organization:" ), mAccountInformationPage );
+ label = new TQLabel( i18n( "Organization:" ), mAccountInformationPage );
mOrganization = new KLineEdit( mAccountInformationPage );
label->setBuddy( mOrganization );
@@ -244,20 +244,20 @@ void AccountWizard::setupAccountInformationPage()
void AccountWizard::setupLoginInformationPage()
{
- mLoginInformationPage = new QWidget( this );
- QGridLayout *layout = new QGridLayout( mLoginInformationPage, 2, 2,
+ mLoginInformationPage = new TQWidget( this );
+ TQGridLayout *layout = new TQGridLayout( mLoginInformationPage, 2, 2,
KDialog::marginHint(), KDialog::spacingHint() );
- QLabel *label = new QLabel( i18n( "Login name:" ), mLoginInformationPage );
+ TQLabel *label = new TQLabel( i18n( "Login name:" ), mLoginInformationPage );
mLoginName = new KLineEdit( mLoginInformationPage );
label->setBuddy( mLoginName );
layout->addWidget( label, 0, 0 );
layout->addWidget( mLoginName, 0, 1 );
- label = new QLabel( i18n( "Password:" ), mLoginInformationPage );
+ label = new TQLabel( i18n( "Password:" ), mLoginInformationPage );
mPassword = new KLineEdit( mLoginInformationPage );
- mPassword->setEchoMode( QLineEdit::Password );
+ mPassword->setEchoMode( TQLineEdit::Password );
label->setBuddy( mPassword );
layout->addWidget( label, 1, 0 );
@@ -268,67 +268,67 @@ void AccountWizard::setupLoginInformationPage()
void AccountWizard::setupServerInformationPage()
{
- mServerInformationPage = new QWidget( this );
- QGridLayout *layout = new QGridLayout( mServerInformationPage, 3, 2,
+ mServerInformationPage = new TQWidget( this );
+ TQGridLayout *layout = new TQGridLayout( mServerInformationPage, 3, 2,
KDialog::marginHint(), KDialog::spacingHint() );
- mIncomingLabel = new QLabel( mServerInformationPage );
+ mIncomingLabel = new TQLabel( mServerInformationPage );
- mIncomingServerWdg = new QVBox( mServerInformationPage );
+ mIncomingServerWdg = new TQVBox( mServerInformationPage );
mIncomingServer = new KLineEdit( mIncomingServerWdg );
- mIncomingUseSSL = new QCheckBox( i18n( "Use secure connection (SSL)" ), mIncomingServerWdg );
+ mIncomingUseSSL = new TQCheckBox( i18n( "Use secure connection (SSL)" ), mIncomingServerWdg );
- mIncomingLocationWdg = new QHBox( mServerInformationPage );
+ mIncomingLocationWdg = new TQHBox( mServerInformationPage );
mIncomingLocation = new KLineEdit( mIncomingLocationWdg );
- mChooseLocation = new QPushButton( i18n( "Choose..." ), mIncomingLocationWdg );
+ mChooseLocation = new TQPushButton( i18n( "Choose..." ), mIncomingLocationWdg );
- connect( mChooseLocation, SIGNAL( clicked() ),
- this, SLOT( chooseLocation() ) );
+ connect( mChooseLocation, TQT_SIGNAL( clicked() ),
+ this, TQT_SLOT( chooseLocation() ) );
layout->addWidget( mIncomingLabel, 0, 0, AlignTop );
layout->addWidget( mIncomingLocationWdg, 0, 1 );
layout->addWidget( mIncomingServerWdg, 0, 1 );
- QLabel *label = new QLabel( i18n( "Outgoing server:" ), mServerInformationPage );
+ TQLabel *label = new TQLabel( i18n( "Outgoing server:" ), mServerInformationPage );
mOutgoingServer = new KLineEdit( mServerInformationPage );
label->setBuddy( mOutgoingServer );
layout->addWidget( label, 1, 0 );
layout->addWidget( mOutgoingServer, 1, 1 );
- mOutgoingUseSSL = new QCheckBox( i18n( "Use secure connection (SSL)" ), mServerInformationPage );
+ mOutgoingUseSSL = new TQCheckBox( i18n( "Use secure connection (SSL)" ), mServerInformationPage );
layout->addWidget( mOutgoingUseSSL, 2, 1 );
- mLocalDelivery = new QCheckBox( i18n( "Use local delivery" ),
+ mLocalDelivery = new TQCheckBox( i18n( "Use local delivery" ),
mServerInformationPage );
layout->addWidget( mLocalDelivery, 3, 0 );
- connect( mLocalDelivery, SIGNAL( toggled( bool ) ),
- mOutgoingServer, SLOT( setDisabled( bool ) ) );
+ connect( mLocalDelivery, TQT_SIGNAL( toggled( bool ) ),
+ mOutgoingServer, TQT_SLOT( setDisabled( bool ) ) );
addPage( mServerInformationPage, i18n( "Server Information" ) );
}
void AccountWizard::chooseLocation()
{
- QString location;
+ TQString location;
if ( mTypeBox->type() == AccountTypeBox::Local ) {
- location = KFileDialog::getSaveFileName( QString(), QString(), this );
+ location = KFileDialog::getSaveFileName( TQString(), TQString(), this );
} else if ( mTypeBox->type() == AccountTypeBox::Maildir ) {
- location = KFileDialog::getExistingDirectory( QString(), this );
+ location = KFileDialog::getExistingDirectory( TQString(), this );
}
if ( !location.isEmpty() )
mIncomingLocation->setText( location );
}
-QString AccountWizard::accountName() const
+TQString AccountWizard::accountName() const
{
// create account name
- QString name( i18n( "None" ) );
+ TQString name( i18n( "None" ) );
- QString email = mEMailAddress->text();
+ TQString email = mEMailAddress->text();
int pos = email.find( '@' );
if ( pos != -1 ) {
name = email.mid( pos + 1 );
@@ -338,10 +338,10 @@ QString AccountWizard::accountName() const
return name;
}
-QLabel *AccountWizard::createInfoLabel( const QString &msg )
+TQLabel *AccountWizard::createInfoLabel( const TQString &msg )
{
- QLabel *label = new QLabel( msg, this );
- label->setFrameStyle( QFrame::Panel | QFrame::Raised );
+ TQLabel *label = new TQLabel( msg, this );
+ label->setFrameStyle( TQFrame::Panel | TQFrame::Raised );
label->resize( fontMetrics().width( msg ) + 20, label->height() * 2 );
label->move( width() / 2 - label->width() / 2, height() / 2 - label->height() / 2 );
label->show();
@@ -361,7 +361,7 @@ void AccountWizard::accept()
manager->commit();
- QTimer::singleShot( 0, this, SLOT( createTransport() ) );
+ TQTimer::singleShot( 0, this, TQT_SLOT( createTransport() ) );
}
void AccountWizard::createTransport()
@@ -386,7 +386,7 @@ void AccountWizard::createTransport()
mTransportInfo->auth = false;
mTransportInfo->setStorePasswd( false );
- QTimer::singleShot( 0, this, SLOT( transportCreated() ) );
+ TQTimer::singleShot( 0, this, TQT_SLOT( transportCreated() ) );
} else { // delivery via SMTP
mTransportInfo->type = "smtp";
mTransportInfo->name = accountName();
@@ -425,7 +425,7 @@ void AccountWizard::transportCreated()
mTransportInfoList.setAutoDelete( true );
mTransportInfoList.clear();
- QTimer::singleShot( 0, this, SLOT( createAccount() ) );
+ TQTimer::singleShot( 0, this, TQT_SLOT( createAccount() ) );
}
void AccountWizard::createAccount()
@@ -485,7 +485,7 @@ void AccountWizard::createAccount()
else if ( mTypeBox->type() == AccountTypeBox::IMAP || mTypeBox->type() == AccountTypeBox::dIMAP )
checkImapCapabilities( mIncomingServer->text(), port );
else
- QTimer::singleShot( 0, this, SLOT( accountCreated() ) );
+ TQTimer::singleShot( 0, this, TQT_SLOT( accountCreated() ) );
}
void AccountWizard::accountCreated()
@@ -503,48 +503,48 @@ void AccountWizard::finished()
{
GlobalSettings::self()->writeConfig();
- QWizard::accept();
+ TQWizard::accept();
}
// ----- Security Checks --------------
-void AccountWizard::checkPopCapabilities( const QString &server, int port )
+void AccountWizard::checkPopCapabilities( const TQString &server, int port )
{
delete mServerTest;
mServerTest = new KMServerTest( POP_PROTOCOL, server, port );
- connect( mServerTest, SIGNAL( capabilities( const QStringList&, const QStringList& ) ),
- this, SLOT( popCapabilities( const QStringList&, const QStringList& ) ) );
+ connect( mServerTest, TQT_SIGNAL( capabilities( const TQStringList&, const TQStringList& ) ),
+ this, TQT_SLOT( popCapabilities( const TQStringList&, const TQStringList& ) ) );
mAuthInfoLabel = createInfoLabel( i18n( "Check for supported security capabilities of %1..." ).arg( server ) );
}
-void AccountWizard::checkImapCapabilities( const QString &server, int port )
+void AccountWizard::checkImapCapabilities( const TQString &server, int port )
{
delete mServerTest;
mServerTest = new KMServerTest( IMAP_PROTOCOL, server, port );
- connect( mServerTest, SIGNAL( capabilities( const QStringList&, const QStringList& ) ),
- this, SLOT( imapCapabilities( const QStringList&, const QStringList& ) ) );
+ connect( mServerTest, TQT_SIGNAL( capabilities( const TQStringList&, const TQStringList& ) ),
+ this, TQT_SLOT( imapCapabilities( const TQStringList&, const TQStringList& ) ) );
mAuthInfoLabel = createInfoLabel( i18n( "Check for supported security capabilities of %1..." ).arg( server ) );
}
-void AccountWizard::checkSmtpCapabilities( const QString &server, int port )
+void AccountWizard::checkSmtpCapabilities( const TQString &server, int port )
{
delete mServerTest;
mServerTest = new KMServerTest( SMTP_PROTOCOL, server, port );
- connect( mServerTest, SIGNAL( capabilities( const QStringList&, const QStringList&,
- const QString&, const QString&, const QString& ) ),
- this, SLOT( smtpCapabilities( const QStringList&, const QStringList&,
- const QString&, const QString&, const QString& ) ) );
+ connect( mServerTest, TQT_SIGNAL( capabilities( const TQStringList&, const TQStringList&,
+ const TQString&, const TQString&, const TQString& ) ),
+ this, TQT_SLOT( smtpCapabilities( const TQStringList&, const TQStringList&,
+ const TQString&, const TQString&, const TQString& ) ) );
mAuthInfoLabel = createInfoLabel( i18n( "Check for supported security capabilities of %1..." ).arg( server ) );
}
-void AccountWizard::popCapabilities( const QStringList &capaNormalList,
- const QStringList &capaSSLList )
+void AccountWizard::popCapabilities( const TQStringList &capaNormalList,
+ const TQStringList &capaSSLList )
{
uint capaNormal = popCapabilitiesFromStringList( capaNormalList );
uint capaTLS = 0;
@@ -593,8 +593,8 @@ void AccountWizard::popCapabilities( const QStringList &capaNormalList,
}
-void AccountWizard::imapCapabilities( const QStringList &capaNormalList,
- const QStringList &capaSSLList )
+void AccountWizard::imapCapabilities( const TQStringList &capaNormalList,
+ const TQStringList &capaSSLList )
{
uint capaNormal = imapCapabilitiesFromStringList( capaNormalList );
uint capaTLS = 0;
@@ -641,11 +641,11 @@ void AccountWizard::imapCapabilities( const QStringList &capaNormalList,
accountCreated();
}
-void AccountWizard::smtpCapabilities( const QStringList &capaNormal,
- const QStringList &capaSSL,
- const QString &authNone,
- const QString &authSSL,
- const QString &authTLS )
+void AccountWizard::smtpCapabilities( const TQStringList &capaNormal,
+ const TQStringList &capaSSL,
+ const TQString &authNone,
+ const TQString &authSSL,
+ const TQString &authTLS )
{
uint authBitsNone, authBitsSSL, authBitsTLS;
@@ -699,12 +699,12 @@ void AccountWizard::smtpCapabilities( const QStringList &capaNormal,
transportCreated();
}
-uint AccountWizard::popCapabilitiesFromStringList( const QStringList & l )
+uint AccountWizard::popCapabilitiesFromStringList( const TQStringList & l )
{
unsigned int capa = 0;
- for ( QStringList::const_iterator it = l.begin() ; it != l.end() ; ++it ) {
- QString cur = (*it).upper();
+ for ( TQStringList::const_iterator it = l.begin() ; it != l.end() ; ++it ) {
+ TQString cur = (*it).upper();
if ( cur == "PLAIN" )
capa |= Plain;
else if ( cur == "LOGIN" )
@@ -726,12 +726,12 @@ uint AccountWizard::popCapabilitiesFromStringList( const QStringList & l )
return capa;
}
-uint AccountWizard::imapCapabilitiesFromStringList( const QStringList & l )
+uint AccountWizard::imapCapabilitiesFromStringList( const TQStringList & l )
{
unsigned int capa = 0;
- for ( QStringList::const_iterator it = l.begin() ; it != l.end() ; ++it ) {
- QString cur = (*it).upper();
+ for ( TQStringList::const_iterator it = l.begin() ; it != l.end() ; ++it ) {
+ TQString cur = (*it).upper();
if ( cur == "AUTH=PLAIN" )
capa |= Plain;
else if ( cur == "AUTH=LOGIN" )
@@ -753,12 +753,12 @@ uint AccountWizard::imapCapabilitiesFromStringList( const QStringList & l )
return capa;
}
-uint AccountWizard::authMethodsFromString( const QString & s )
+uint AccountWizard::authMethodsFromString( const TQString & s )
{
unsigned int result = 0;
- QStringList sl = QStringList::split( '\n', s.upper() );
- for ( QStringList::const_iterator it = sl.begin() ; it != sl.end() ; ++it )
+ TQStringList sl = TQStringList::split( '\n', s.upper() );
+ for ( TQStringList::const_iterator it = sl.begin() ; it != sl.end() ; ++it )
if ( *it == "SASL/LOGIN" )
result |= Login;
else if ( *it == "SASL/PLAIN" )
@@ -775,11 +775,11 @@ uint AccountWizard::authMethodsFromString( const QString & s )
return result;
}
-uint AccountWizard::authMethodsFromStringList( const QStringList & sl )
+uint AccountWizard::authMethodsFromStringList( const TQStringList & sl )
{
unsigned int result = 0;
- for ( QStringList::const_iterator it = sl.begin() ; it != sl.end() ; ++it )
+ for ( TQStringList::const_iterator it = sl.begin() ; it != sl.end() ; ++it )
if ( *it == "LOGIN" )
result |= Login;
else if ( *it == "PLAIN" )
diff --git a/kmail/accountwizard.h b/kmail/accountwizard.h
index 0dea0e44..56cba599 100644
--- a/kmail/accountwizard.h
+++ b/kmail/accountwizard.h
@@ -54,15 +54,15 @@ class AccountWizard : public KWizard
@param kernel The mail kernel the wizard should work on.
@param parent The parent widget of the dialog.
*/
- static void start( KMKernel *kernel, QWidget *parent = 0 );
+ static void start( KMKernel *kernel, TQWidget *parent = 0 );
/**
Reimplemented
*/
- void showPage( QWidget *page );
+ void showPage( TQWidget *page );
protected:
- AccountWizard( KMKernel *kernel, QWidget *parent );
+ AccountWizard( KMKernel *kernel, TQWidget *parent );
~AccountWizard() {};
void setupWelcomePage();
@@ -81,57 +81,57 @@ class AccountWizard : public KWizard
void finished();
private slots:
- void popCapabilities( const QStringList&, const QStringList& );
- void imapCapabilities( const QStringList&, const QStringList& );
- void smtpCapabilities( const QStringList&, const QStringList&,
- const QString&, const QString&, const QString& );
+ void popCapabilities( const TQStringList&, const TQStringList& );
+ void imapCapabilities( const TQStringList&, const TQStringList& );
+ void smtpCapabilities( const TQStringList&, const TQStringList&,
+ const TQString&, const TQString&, const TQString& );
private:
- QString accountName() const;
- QLabel *createInfoLabel( const QString &msg );
+ TQString accountName() const;
+ TQLabel *createInfoLabel( const TQString &msg );
- void checkPopCapabilities( const QString&, int );
- void checkImapCapabilities( const QString&, int );
- void checkSmtpCapabilities( const QString&, int );
- uint popCapabilitiesFromStringList( const QStringList& );
- uint imapCapabilitiesFromStringList( const QStringList& );
- uint authMethodsFromString( const QString& );
- uint authMethodsFromStringList( const QStringList& );
+ void checkPopCapabilities( const TQString&, int );
+ void checkImapCapabilities( const TQString&, int );
+ void checkSmtpCapabilities( const TQString&, int );
+ uint popCapabilitiesFromStringList( const TQStringList& );
+ uint imapCapabilitiesFromStringList( const TQStringList& );
+ uint authMethodsFromString( const TQString& );
+ uint authMethodsFromStringList( const TQStringList& );
- QWidget *mWelcomePage;
+ TQWidget *mWelcomePage;
- QWidget *mAccountTypePage;
+ TQWidget *mAccountTypePage;
AccountTypeBox *mTypeBox;
- QWidget *mAccountInformationPage;
+ TQWidget *mAccountInformationPage;
KLineEdit *mRealName;
KLineEdit *mEMailAddress;
KLineEdit *mOrganization;
- QWidget *mLoginInformationPage;
+ TQWidget *mLoginInformationPage;
KLineEdit *mLoginName;
KLineEdit *mPassword;
- QWidget *mServerInformationPage;
- QLabel *mIncomingLabel;
+ TQWidget *mServerInformationPage;
+ TQLabel *mIncomingLabel;
KLineEdit *mIncomingServer;
- QCheckBox *mIncomingUseSSL;
+ TQCheckBox *mIncomingUseSSL;
KLineEdit *mIncomingLocation;
- QPushButton *mChooseLocation;
+ TQPushButton *mChooseLocation;
KLineEdit *mOutgoingServer;
- QCheckBox *mOutgoingUseSSL;
- QCheckBox *mLocalDelivery;
+ TQCheckBox *mOutgoingUseSSL;
+ TQCheckBox *mLocalDelivery;
- QWidget *mIncomingServerWdg;
- QWidget *mIncomingLocationWdg;
+ TQWidget *mIncomingServerWdg;
+ TQWidget *mIncomingLocationWdg;
- QLabel *mAuthInfoLabel;
+ TQLabel *mAuthInfoLabel;
KMKernel *mKernel;
KMAccount *mAccount;
KMTransportInfo *mTransportInfo;
- QPtrList<KMTransportInfo> mTransportInfoList;
+ TQPtrList<KMTransportInfo> mTransportInfoList;
KMServerTest *mServerTest;
};
diff --git a/kmail/acljobs.cpp b/kmail/acljobs.cpp
index 568a6f4b..41931829 100644
--- a/kmail/acljobs.cpp
+++ b/kmail/acljobs.cpp
@@ -36,11 +36,11 @@ using namespace KMail;
// Convert str to an ACLPermissions value.
// url and user are there only for the error message
-static unsigned int IMAPRightsToPermission( const QString& str, const KURL& url, const QString& user ) {
+static unsigned int IMAPRightsToPermission( const TQString& str, const KURL& url, const TQString& user ) {
unsigned int perm = 0;
uint len = str.length();
for (uint i = 0; i < len; ++i) {
- QChar ch = str[i];
+ TQChar ch = str[i];
switch ( ch.latin1() ) {
case 'l': perm |= ACLJobs::List; break;
case 'r': perm |= ACLJobs::Read; break;
@@ -69,8 +69,8 @@ static unsigned int IMAPRightsToPermission( const QString& str, const KURL& url,
return perm;
}
-static QCString permissionsToIMAPRights( unsigned int permissions ) {
- QCString str = "";
+static TQCString permissionsToIMAPRights( unsigned int permissions ) {
+ TQCString str = "";
if ( permissions & ACLJobs::List )
str += 'l';
if ( permissions & ACLJobs::Read )
@@ -93,9 +93,9 @@ static QCString permissionsToIMAPRights( unsigned int permissions ) {
}
#ifndef NDEBUG
-QString ACLJobs::permissionsToString( unsigned int permissions )
+TQString ACLJobs::permissionsToString( unsigned int permissions )
{
- QString str;
+ TQString str;
if ( permissions & ACLJobs::List )
str += "List ";
if ( permissions & ACLJobs::Read )
@@ -118,12 +118,12 @@ QString ACLJobs::permissionsToString( unsigned int permissions )
}
#endif
-KIO::SimpleJob* ACLJobs::setACL( KIO::Slave* slave, const KURL& url, const QString& user, unsigned int permissions )
+KIO::SimpleJob* ACLJobs::setACL( KIO::Slave* slave, const KURL& url, const TQString& user, unsigned int permissions )
{
- QString perm = QString::fromLatin1( permissionsToIMAPRights( permissions ) );
+ TQString perm = TQString::fromLatin1( permissionsToIMAPRights( permissions ) );
- QByteArray packedArgs;
- QDataStream stream( packedArgs, IO_WriteOnly );
+ TQByteArray packedArgs;
+ TQDataStream stream( packedArgs, IO_WriteOnly );
stream << (int)'A' << (int)'S' << url << user << perm;
KIO::SimpleJob* job = KIO::special( url, packedArgs, false );
@@ -131,10 +131,10 @@ KIO::SimpleJob* ACLJobs::setACL( KIO::Slave* slave, const KURL& url, const QStri
return job;
}
-ACLJobs::DeleteACLJob* ACLJobs::deleteACL( KIO::Slave* slave, const KURL& url, const QString& user )
+ACLJobs::DeleteACLJob* ACLJobs::deleteACL( KIO::Slave* slave, const KURL& url, const TQString& user )
{
- QByteArray packedArgs;
- QDataStream stream( packedArgs, IO_WriteOnly );
+ TQByteArray packedArgs;
+ TQDataStream stream( packedArgs, IO_WriteOnly );
stream << (int)'A' << (int)'D' << url << user;
ACLJobs::DeleteACLJob* job = new ACLJobs::DeleteACLJob( url, user, packedArgs, false );
@@ -144,8 +144,8 @@ ACLJobs::DeleteACLJob* ACLJobs::deleteACL( KIO::Slave* slave, const KURL& url, c
ACLJobs::GetACLJob* ACLJobs::getACL( KIO::Slave* slave, const KURL& url )
{
- QByteArray packedArgs;
- QDataStream stream( packedArgs, IO_WriteOnly );
+ TQByteArray packedArgs;
+ TQDataStream stream( packedArgs, IO_WriteOnly );
stream << (int)'A' << (int)'G' << url;
ACLJobs::GetACLJob* job = new ACLJobs::GetACLJob( url, packedArgs, false );
@@ -155,8 +155,8 @@ ACLJobs::GetACLJob* ACLJobs::getACL( KIO::Slave* slave, const KURL& url )
ACLJobs::GetUserRightsJob* ACLJobs::getUserRights( KIO::Slave* slave, const KURL& url )
{
- QByteArray packedArgs;
- QDataStream stream( packedArgs, IO_WriteOnly );
+ TQByteArray packedArgs;
+ TQDataStream stream( packedArgs, IO_WriteOnly );
stream << (int)'A' << (int)'M' << url;
ACLJobs::GetUserRightsJob* job = new ACLJobs::GetUserRightsJob( url, packedArgs, false );
@@ -164,43 +164,43 @@ ACLJobs::GetUserRightsJob* ACLJobs::getUserRights( KIO::Slave* slave, const KURL
return job;
}
-ACLJobs::GetACLJob::GetACLJob( const KURL& url, const QByteArray &packedArgs,
+ACLJobs::GetACLJob::GetACLJob( const KURL& url, const TQByteArray &packedArgs,
bool showProgressInfo )
: KIO::SimpleJob( url, KIO::CMD_SPECIAL, packedArgs, showProgressInfo )
{
- connect( this, SIGNAL(infoMessage(KIO::Job*,const QString&)),
- SLOT(slotInfoMessage(KIO::Job*,const QString&)) );
+ connect( this, TQT_SIGNAL(infoMessage(KIO::Job*,const TQString&)),
+ TQT_SLOT(slotInfoMessage(KIO::Job*,const TQString&)) );
}
-void ACLJobs::GetACLJob::slotInfoMessage( KIO::Job*, const QString& str )
+void ACLJobs::GetACLJob::slotInfoMessage( KIO::Job*, const TQString& str )
{
// Parse the result
- QStringList lst = QStringList::split( "\"", str, true );
+ TQStringList lst = TQStringList::split( "\"", str, true );
while ( lst.count() >= 2 ) // we take items 2 by 2
{
- QString user = lst.front(); lst.pop_front();
- QString imapRights = lst.front(); lst.pop_front();
+ TQString user = lst.front(); lst.pop_front();
+ TQString imapRights = lst.front(); lst.pop_front();
unsigned int perm = IMAPRightsToPermission( imapRights, url(), user );
m_entries.append( ACLListEntry( user, imapRights, perm ) );
}
}
-ACLJobs::GetUserRightsJob::GetUserRightsJob( const KURL& url, const QByteArray &packedArgs,
+ACLJobs::GetUserRightsJob::GetUserRightsJob( const KURL& url, const TQByteArray &packedArgs,
bool showProgressInfo )
: KIO::SimpleJob( url, KIO::CMD_SPECIAL, packedArgs, showProgressInfo )
{
- connect( this, SIGNAL(infoMessage(KIO::Job*,const QString&)),
- SLOT(slotInfoMessage(KIO::Job*,const QString&)) );
+ connect( this, TQT_SIGNAL(infoMessage(KIO::Job*,const TQString&)),
+ TQT_SLOT(slotInfoMessage(KIO::Job*,const TQString&)) );
}
-void ACLJobs::GetUserRightsJob::slotInfoMessage( KIO::Job*, const QString& str )
+void ACLJobs::GetUserRightsJob::slotInfoMessage( KIO::Job*, const TQString& str )
{
// Parse the result
- m_permissions = IMAPRightsToPermission( str, url(), QString::null );
+ m_permissions = IMAPRightsToPermission( str, url(), TQString::null );
}
-ACLJobs::DeleteACLJob::DeleteACLJob( const KURL& url, const QString& userId,
- const QByteArray &packedArgs,
+ACLJobs::DeleteACLJob::DeleteACLJob( const KURL& url, const TQString& userId,
+ const TQByteArray &packedArgs,
bool showProgressInfo )
: KIO::SimpleJob( url, KIO::CMD_SPECIAL, packedArgs, showProgressInfo ),
mUserId( userId )
@@ -214,7 +214,7 @@ ACLJobs::MultiSetACLJob::MultiSetACLJob( KIO::Slave* slave, const KURL& url, con
mSlave( slave ),
mUrl( url ), mACLList( acl ), mACLListIterator( mACLList.begin() )
{
- QTimer::singleShot(0, this, SLOT(slotStart()));
+ TQTimer::singleShot(0, this, TQT_SLOT(slotStart()));
}
void ACLJobs::MultiSetACLJob::slotStart()
diff --git a/kmail/acljobs.h b/kmail/acljobs.h
index 0d4a731d..7abc8065 100644
--- a/kmail/acljobs.h
+++ b/kmail/acljobs.h
@@ -33,22 +33,22 @@
#define KMACLJOBS_H
#include <kio/job.h>
-#include <qvaluevector.h>
+#include <tqvaluevector.h>
namespace KMail {
/// One entry in the ACL list: user and permissions
struct ACLListEntry {
ACLListEntry() {} // for QValueVector
- ACLListEntry( const QString& u, const QString& irl, int p )
+ ACLListEntry( const TQString& u, const TQString& irl, int p )
: userId( u ), internalRightsList( irl ), permissions( p ), changed( false ) {}
- QString userId;
- QString internalRightsList; ///< protocol-dependent string (e.g. IMAP rights list)
+ TQString userId;
+ TQString internalRightsList; ///< protocol-dependent string (e.g. IMAP rights list)
int permissions; ///< based on the ACLPermissions enum
bool changed; ///< special flag for KMFolderCachedImap
};
- typedef QValueVector<ACLListEntry> ACLList;
+ typedef TQValueVector<ACLListEntry> ACLList;
/**
* This namespace contains functions that return jobs for ACL operations.
@@ -78,11 +78,11 @@ namespace ACLJobs {
All = List | Read | WriteFlags | Insert | Post | Create | Delete | Administer | WriteSeenFlag
};
/// Set the permissions for a given user on a given url
- KIO::SimpleJob* setACL( KIO::Slave* slave, const KURL& url, const QString& user, unsigned int permissions );
+ KIO::SimpleJob* setACL( KIO::Slave* slave, const KURL& url, const TQString& user, unsigned int permissions );
class DeleteACLJob;
/// Delete the permissions for a given user on a given url
- DeleteACLJob* deleteACL( KIO::Slave* slave, const KURL& url, const QString& user );
+ DeleteACLJob* deleteACL( KIO::Slave* slave, const KURL& url, const TQString& user );
class GetACLJob;
/// List all ACLs for a given url
@@ -101,13 +101,13 @@ namespace ACLJobs {
{
Q_OBJECT
public:
- GetACLJob( const KURL& url, const QByteArray &packedArgs,
+ GetACLJob( const KURL& url, const TQByteArray &packedArgs,
bool showProgressInfo );
const ACLList& entries() const { return m_entries; }
protected slots:
- void slotInfoMessage( KIO::Job*, const QString& );
+ void slotInfoMessage( KIO::Job*, const TQString& );
private:
ACLList m_entries;
};
@@ -117,12 +117,12 @@ namespace ACLJobs {
{
Q_OBJECT
public:
- GetUserRightsJob( const KURL& url, const QByteArray &packedArgs,
+ GetUserRightsJob( const KURL& url, const TQByteArray &packedArgs,
bool showProgressInfo );
unsigned int permissions() const { return m_permissions; }
protected slots:
- void slotInfoMessage( KIO::Job*, const QString& );
+ void slotInfoMessage( KIO::Job*, const TQString& );
private:
unsigned int m_permissions;
};
@@ -133,14 +133,14 @@ namespace ACLJobs {
{
Q_OBJECT
public:
- DeleteACLJob( const KURL& url, const QString& userId,
- const QByteArray &packedArgs,
+ DeleteACLJob( const KURL& url, const TQString& userId,
+ const TQByteArray &packedArgs,
bool showProgressInfo );
- QString userId() const { return mUserId; }
+ TQString userId() const { return mUserId; }
private:
- QString mUserId;
+ TQString mUserId;
};
/// Set and delete a list of permissions for different users on a given url
@@ -153,7 +153,7 @@ namespace ACLJobs {
signals:
// Emitted when a given user's permissions were successfully changed.
// This allows the caller to keep track of what exactly was done (and handle errors better)
- void aclChanged( const QString& userId, int permissions );
+ void aclChanged( const TQString& userId, int permissions );
protected slots:
virtual void slotStart();
@@ -168,7 +168,7 @@ namespace ACLJobs {
#ifndef NDEBUG
- QString permissionsToString( unsigned int permissions );
+ TQString permissionsToString( unsigned int permissions );
#endif
}
diff --git a/kmail/actionscheduler.cpp b/kmail/actionscheduler.cpp
index 3d92cd7a..0af6cdd4 100644
--- a/kmail/actionscheduler.cpp
+++ b/kmail/actionscheduler.cpp
@@ -46,23 +46,23 @@
#include "accountmanager.h"
using KMail::AccountManager;
-#include <qtimer.h>
+#include <tqtimer.h>
#include <kconfig.h>
#include <kstandarddirs.h>
using namespace KMail;
-typedef QPtrList<KMMsgBase> KMMessageList;
+typedef TQPtrList<KMMsgBase> KMMessageList;
KMFolderMgr* ActionScheduler::tempFolderMgr = 0;
int ActionScheduler::refCount = 0;
int ActionScheduler::count = 0;
-QValueList<ActionScheduler*> *ActionScheduler::schedulerList = 0;
+TQValueList<ActionScheduler*> *ActionScheduler::schedulerList = 0;
bool ActionScheduler::sEnabled = false;
bool ActionScheduler::sEnabledChecked = false;
ActionScheduler::ActionScheduler(KMFilterMgr::FilterSet set,
- QValueList<KMFilter*> filters,
+ TQValueList<KMFilter*> filters,
KMHeaders *headers,
KMFolder *srcFolder)
:mSet( set ), mHeaders( headers )
@@ -81,22 +81,22 @@ ActionScheduler::ActionScheduler(KMFilterMgr::FilterSet set,
mAccount = false;
lastCommand = 0;
lastJob = 0;
- finishTimer = new QTimer( this, "finishTimer" );
- connect( finishTimer, SIGNAL(timeout()), this, SLOT(finish()));
- fetchMessageTimer = new QTimer( this, "fetchMessageTimer" );
- connect( fetchMessageTimer, SIGNAL(timeout()), this, SLOT(fetchMessage()));
- tempCloseFoldersTimer = new QTimer( this, "tempCloseFoldersTimer" );
- connect( tempCloseFoldersTimer, SIGNAL(timeout()), this, SLOT(tempCloseFolders()));
- processMessageTimer = new QTimer( this, "processMessageTimer" );
- connect( processMessageTimer, SIGNAL(timeout()), this, SLOT(processMessage()));
- filterMessageTimer = new QTimer( this, "filterMessageTimer" );
- connect( filterMessageTimer, SIGNAL(timeout()), this, SLOT(filterMessage()));
- timeOutTimer = new QTimer( this, "timeOutTimer" );
- connect( timeOutTimer, SIGNAL(timeout()), this, SLOT(timeOut()));
- fetchTimeOutTimer = new QTimer( this, "fetchTimeOutTimer" );
- connect( fetchTimeOutTimer, SIGNAL(timeout()), this, SLOT(fetchTimeOut()));
-
- QValueList<KMFilter*>::Iterator it = filters.begin();
+ finishTimer = new TQTimer( this, "finishTimer" );
+ connect( finishTimer, TQT_SIGNAL(timeout()), this, TQT_SLOT(finish()));
+ fetchMessageTimer = new TQTimer( this, "fetchMessageTimer" );
+ connect( fetchMessageTimer, TQT_SIGNAL(timeout()), this, TQT_SLOT(fetchMessage()));
+ tempCloseFoldersTimer = new TQTimer( this, "tempCloseFoldersTimer" );
+ connect( tempCloseFoldersTimer, TQT_SIGNAL(timeout()), this, TQT_SLOT(tempCloseFolders()));
+ processMessageTimer = new TQTimer( this, "processMessageTimer" );
+ connect( processMessageTimer, TQT_SIGNAL(timeout()), this, TQT_SLOT(processMessage()));
+ filterMessageTimer = new TQTimer( this, "filterMessageTimer" );
+ connect( filterMessageTimer, TQT_SIGNAL(timeout()), this, TQT_SLOT(filterMessage()));
+ timeOutTimer = new TQTimer( this, "timeOutTimer" );
+ connect( timeOutTimer, TQT_SIGNAL(timeout()), this, TQT_SLOT(timeOut()));
+ fetchTimeOutTimer = new TQTimer( this, "fetchTimeOutTimer" );
+ connect( fetchTimeOutTimer, TQT_SIGNAL(timeout()), this, TQT_SLOT(fetchTimeOut()));
+
+ TQValueList<KMFilter*>::Iterator it = filters.begin();
for (; it != filters.end(); ++it)
mFilters.append( **it );
mDestFolder = 0;
@@ -104,7 +104,7 @@ ActionScheduler::ActionScheduler(KMFilterMgr::FilterSet set,
mDeleteSrcFolder = false;
setSourceFolder( srcFolder );
} else {
- QString tmpName;
+ TQString tmpName;
tmpName.setNum( count );
if (!tempFolderMgr)
tempFolderMgr = new KMFolderMgr(locateLocal("data","kmail/filter"));
@@ -114,7 +114,7 @@ ActionScheduler::ActionScheduler(KMFilterMgr::FilterSet set,
setSourceFolder( tempFolder );
}
if (!schedulerList)
- schedulerList = new QValueList<ActionScheduler*>;
+ schedulerList = new TQValueList<ActionScheduler*>;
schedulerList->append( this );
}
@@ -122,10 +122,10 @@ ActionScheduler::~ActionScheduler()
{
schedulerList->remove( this );
tempCloseFolders();
- disconnect( mSrcFolder, SIGNAL(closed()),
- this, SLOT(folderClosedOrExpunged()) );
- disconnect( mSrcFolder, SIGNAL(expunged(KMFolder*)),
- this, SLOT(folderClosedOrExpunged()) );
+ disconnect( mSrcFolder, TQT_SIGNAL(closed()),
+ this, TQT_SLOT(folderClosedOrExpunged()) );
+ disconnect( mSrcFolder, TQT_SIGNAL(expunged(KMFolder*)),
+ this, TQT_SLOT(folderClosedOrExpunged()) );
mSrcFolder->close("actionschedsrc");
if (mDeleteSrcFolder)
@@ -157,12 +157,12 @@ void ActionScheduler::setSourceFolder( KMFolder *srcFolder )
{
srcFolder->open("actionschedsrc");
if (mSrcFolder) {
- disconnect( mSrcFolder, SIGNAL(msgAdded(KMFolder*, Q_UINT32)),
- this, SLOT(msgAdded(KMFolder*, Q_UINT32)) );
- disconnect( mSrcFolder, SIGNAL(closed()),
- this, SLOT(folderClosedOrExpunged()) );
- disconnect( mSrcFolder, SIGNAL(expunged(KMFolder*)),
- this, SLOT(folderClosedOrExpunged()) );
+ disconnect( mSrcFolder, TQT_SIGNAL(msgAdded(KMFolder*, Q_UINT32)),
+ this, TQT_SLOT(msgAdded(KMFolder*, Q_UINT32)) );
+ disconnect( mSrcFolder, TQT_SIGNAL(closed()),
+ this, TQT_SLOT(folderClosedOrExpunged()) );
+ disconnect( mSrcFolder, TQT_SIGNAL(expunged(KMFolder*)),
+ this, TQT_SLOT(folderClosedOrExpunged()) );
mSrcFolder->close("actionschedsrc");
}
mSrcFolder = srcFolder;
@@ -170,21 +170,21 @@ void ActionScheduler::setSourceFolder( KMFolder *srcFolder )
for (i = 0; i < mSrcFolder->count(); ++i)
enqueue( mSrcFolder->getMsgBase( i )->getMsgSerNum() );
if (mSrcFolder) {
- connect( mSrcFolder, SIGNAL(msgAdded(KMFolder*, Q_UINT32)),
- this, SLOT(msgAdded(KMFolder*, Q_UINT32)) );
- connect( mSrcFolder, SIGNAL(closed()),
- this, SLOT(folderClosedOrExpunged()) );
- connect( mSrcFolder, SIGNAL(expunged(KMFolder*)),
- this, SLOT(folderClosedOrExpunged()) );
+ connect( mSrcFolder, TQT_SIGNAL(msgAdded(KMFolder*, Q_UINT32)),
+ this, TQT_SLOT(msgAdded(KMFolder*, Q_UINT32)) );
+ connect( mSrcFolder, TQT_SIGNAL(closed()),
+ this, TQT_SLOT(folderClosedOrExpunged()) );
+ connect( mSrcFolder, TQT_SIGNAL(expunged(KMFolder*)),
+ this, TQT_SLOT(folderClosedOrExpunged()) );
}
}
-void ActionScheduler::setFilterList( QValueList<KMFilter*> filters )
+void ActionScheduler::setFilterList( TQValueList<KMFilter*> filters )
{
mFiltersAreQueued = true;
mQueuedFilters.clear();
- QValueList<KMFilter*>::Iterator it = filters.begin();
+ TQValueList<KMFilter*>::Iterator it = filters.begin();
for (; it != filters.end(); ++it)
mQueuedFilters.append( **it );
if (!mExecuting) {
@@ -221,7 +221,7 @@ int ActionScheduler::tempOpenFolder( KMFolder* aFolder )
void ActionScheduler::tempCloseFolders()
{
// close temp opened folders
- QValueListConstIterator<QGuardedPtr<KMFolder> > it;
+ TQValueListConstIterator<TQGuardedPtr<KMFolder> > it;
for (it = mOpenFolders.begin(); it != mOpenFolders.end(); ++it) {
KMFolder *folder = *it;
if (folder)
@@ -230,17 +230,17 @@ void ActionScheduler::tempCloseFolders()
mOpenFolders.clear();
}
-void ActionScheduler::execFilters(const QValueList<Q_UINT32> serNums)
+void ActionScheduler::execFilters(const TQValueList<Q_UINT32> serNums)
{
- QValueListConstIterator<Q_UINT32> it;
+ TQValueListConstIterator<Q_UINT32> it;
for (it = serNums.begin(); it != serNums.end(); ++it)
execFilters( *it );
}
-void ActionScheduler::execFilters(const QPtrList<KMMsgBase> msgList)
+void ActionScheduler::execFilters(const TQPtrList<KMMsgBase> msgList)
{
KMMsgBase *msgBase;
- QPtrList<KMMsgBase> list = msgList;
+ TQPtrList<KMMsgBase> list = msgList;
for (msgBase = list.first(); msgBase; msgBase = list.next())
execFilters( msgBase->getMsgSerNum() );
}
@@ -380,7 +380,7 @@ void ActionScheduler::finish()
void ActionScheduler::fetchMessage()
{
- QValueListIterator<Q_UINT32> mFetchMessageIt = mFetchSerNums.begin();
+ TQValueListIterator<Q_UINT32> mFetchMessageIt = mFetchSerNums.begin();
while (mFetchMessageIt != mFetchSerNums.end()) {
if (!MessageProperty::transferInProgress(*mFetchMessageIt))
break;
@@ -419,11 +419,11 @@ void ActionScheduler::fetchMessage()
if (msg && msg->isComplete()) {
messageFetched( msg );
} else if (msg) {
- fetchTimeOutTime = QTime::currentTime();
+ fetchTimeOutTime = TQTime::currentTime();
fetchTimeOutTimer->start( 60 * 1000, true );
FolderJob *job = msg->parent()->createJob( msg );
- connect( job, SIGNAL(messageRetrieved( KMMessage* )),
- SLOT(messageFetched( KMMessage* )) );
+ connect( job, TQT_SIGNAL(messageRetrieved( KMMessage* )),
+ TQT_SLOT(messageFetched( KMMessage* )) );
lastJob = job;
job->start();
} else {
@@ -450,7 +450,7 @@ void ActionScheduler::messageFetched( KMMessage *msg )
// Is the new serial number being set correctly then?
if ((mSet & KMFilterMgr::Explicit) ||
(msg->headerField( "X-KMail-Filtered" ).isEmpty())) {
- QString serNumS;
+ TQString serNumS;
serNumS.setNum( msg->getMsgSerNum() );
KMMessage *newMsg = new KMMessage;
newMsg->fromString(msg->asString());
@@ -563,8 +563,8 @@ void ActionScheduler::processMessage()
}
if (msg) {
FolderJob *job = msg->parent()->createJob( msg );
- connect( job, SIGNAL(messageRetrieved( KMMessage* )),
- SLOT(messageRetrieved( KMMessage* )) );
+ connect( job, TQT_SIGNAL(messageRetrieved( KMMessage* )),
+ TQT_SLOT(messageRetrieved( KMMessage* )) );
job->start();
} else {
mExecuting = false;
@@ -595,7 +595,7 @@ void ActionScheduler::filterMessage()
// filter is applicable
if ( FilterLog::instance()->isLogging() ) {
- QString logText( i18n( "<b>Evaluating filter rules:</b> " ) );
+ TQString logText( i18n( "<b>Evaluating filter rules:</b> " ) );
logText.append( (*mFilterIt).pattern()->asString() );
FilterLog::instance()->add( logText, FilterLog::patternDesc );
}
@@ -624,7 +624,7 @@ void ActionScheduler::actionMessage(KMFilterAction::ReturnCode res)
KMMessage *msg = message( *mMessageIt );
if (msg) {
if ( FilterLog::instance()->isLogging() ) {
- QString logText( i18n( "<b>Applying filter action:</b> %1" )
+ TQString logText( i18n( "<b>Applying filter action:</b> %1" )
.arg( mFilterAction->displayString() ) );
FilterLog::instance()->add( logText, FilterLog::appliedAction );
}
@@ -651,7 +651,7 @@ void ActionScheduler::moveMessage()
MessageProperty::setTransferInProgress( *mMessageIt, false, true );
KMMessage *msg = message( *mMessageIt );
KMFolder *folder = MessageProperty::filterFolder( *mMessageIt );
- QString serNumS = msg->headerField( "X-KMail-Filtered" );
+ TQString serNumS = msg->headerField( "X-KMail-Filtered" );
if (!serNumS.isEmpty())
mOriginalSerNum = serNumS.toUInt();
else
@@ -687,10 +687,10 @@ void ActionScheduler::moveMessage()
if (msg && folder && kmkernel->folderIsTrash( folder ))
KMFilterAction::sendMDN( msg, KMime::MDN::Deleted );
- timeOutTime = QTime::currentTime();
+ timeOutTime = TQTime::currentTime();
KMCommand *cmd = new KMMoveCommand( folder, msg );
- connect( cmd, SIGNAL( completed( KMCommand * ) ),
- this, SLOT( moveMessageFinished( KMCommand * ) ) );
+ connect( cmd, TQT_SIGNAL( completed( KMCommand * ) ),
+ this, TQT_SLOT( moveMessageFinished( KMCommand * ) ) );
cmd->start();
// sometimes the move command doesn't complete so time out after a minute
// and move onto the next message
@@ -727,16 +727,16 @@ void ActionScheduler::moveMessageFinished( KMCommand *command )
if (mResult == ResultOk) {
mExecutingLock = false;
if (cmd)
- connect( cmd, SIGNAL( completed( KMCommand * ) ),
- this, SLOT( processMessage() ) );
+ connect( cmd, TQT_SIGNAL( completed( KMCommand * ) ),
+ this, TQT_SLOT( processMessage() ) );
else
processMessageTimer->start( 0, true );
} else {
// Note: An alternative to consider is just calling
// finishTimer->start and returning
if (cmd)
- connect( cmd, SIGNAL( completed( KMCommand * ) ),
- this, SLOT( finish() ) );
+ connect( cmd, TQT_SIGNAL( completed( KMCommand * ) ),
+ this, TQT_SLOT( finish() ) );
else
finishTimer->start( 0, true );
}
@@ -758,8 +758,8 @@ void ActionScheduler::timeOut()
// Note: This is a good place for a debug statement
assert( lastCommand );
// sometimes imap jobs seem to just stall so give up and move on
- disconnect( lastCommand, SIGNAL( completed( KMCommand * ) ),
- this, SLOT( moveMessageFinished( KMCommand * ) ) );
+ disconnect( lastCommand, TQT_SIGNAL( completed( KMCommand * ) ),
+ this, TQT_SLOT( moveMessageFinished( KMCommand * ) ) );
lastCommand = 0;
mExecutingLock = false;
mExecuting = false;
@@ -773,41 +773,41 @@ void ActionScheduler::fetchTimeOut()
// Note: This is a good place for a debug statement
assert( lastJob );
// sometimes imap jobs seem to just stall so give up and move on
- disconnect( lastJob, SIGNAL(messageRetrieved( KMMessage* )),
- this, SLOT(messageFetched( KMMessage* )) );
+ disconnect( lastJob, TQT_SIGNAL(messageRetrieved( KMMessage* )),
+ this, TQT_SLOT(messageFetched( KMMessage* )) );
lastJob->kill();
lastJob = 0;
fetchMessageTimer->start( 0, true );
}
-QString ActionScheduler::debug()
+TQString ActionScheduler::debug()
{
- QString res;
- QValueList<ActionScheduler*>::iterator it;
+ TQString res;
+ TQValueList<ActionScheduler*>::iterator it;
int i = 1;
for ( it = schedulerList->begin(); it != schedulerList->end(); ++it ) {
- res.append( QString( "ActionScheduler #%1.\n" ).arg( i ) );
+ res.append( TQString( "ActionScheduler #%1.\n" ).arg( i ) );
if ((*it)->mAccount && kmkernel->find( (*it)->mAccountId )) {
- res.append( QString( "Account %1, Name %2.\n" )
+ res.append( TQString( "Account %1, Name %2.\n" )
.arg( (*it)->mAccountId )
.arg( kmkernel->acctMgr()->find( (*it)->mAccountId )->name() ) );
}
- res.append( QString( "mExecuting %1, " ).arg( (*it)->mExecuting ? "true" : "false" ) );
- res.append( QString( "mExecutingLock %1, " ).arg( (*it)->mExecutingLock ? "true" : "false" ) );
- res.append( QString( "mFetchExecuting %1.\n" ).arg( (*it)->mFetchExecuting ? "true" : "false" ) );
- res.append( QString( "mOriginalSerNum %1.\n" ).arg( (*it)->mOriginalSerNum ) );
- res.append( QString( "mMessageIt %1.\n" ).arg( ((*it)->mMessageIt != 0) ? *(*it)->mMessageIt : 0 ) );
- res.append( QString( "mSerNums count %1, " ).arg( (*it)->mSerNums.count() ) );
- res.append( QString( "mFetchSerNums count %1.\n" ).arg( (*it)->mFetchSerNums.count() ) );
- res.append( QString( "mResult " ) );
+ res.append( TQString( "mExecuting %1, " ).arg( (*it)->mExecuting ? "true" : "false" ) );
+ res.append( TQString( "mExecutingLock %1, " ).arg( (*it)->mExecutingLock ? "true" : "false" ) );
+ res.append( TQString( "mFetchExecuting %1.\n" ).arg( (*it)->mFetchExecuting ? "true" : "false" ) );
+ res.append( TQString( "mOriginalSerNum %1.\n" ).arg( (*it)->mOriginalSerNum ) );
+ res.append( TQString( "mMessageIt %1.\n" ).arg( ((*it)->mMessageIt != 0) ? *(*it)->mMessageIt : 0 ) );
+ res.append( TQString( "mSerNums count %1, " ).arg( (*it)->mSerNums.count() ) );
+ res.append( TQString( "mFetchSerNums count %1.\n" ).arg( (*it)->mFetchSerNums.count() ) );
+ res.append( TQString( "mResult " ) );
if ((*it)->mResult == ResultOk)
- res.append( QString( "ResultOk.\n" ) );
+ res.append( TQString( "ResultOk.\n" ) );
else if ((*it)->mResult == ResultError)
- res.append( QString( "ResultError.\n" ) );
+ res.append( TQString( "ResultError.\n" ) );
else if ((*it)->mResult == ResultCriticalError)
- res.append( QString( "ResultCriticalError.\n" ) );
+ res.append( TQString( "ResultCriticalError.\n" ) );
else
- res.append( QString( "Unknown.\n" ) );
+ res.append( TQString( "Unknown.\n" ) );
++i;
}
diff --git a/kmail/actionscheduler.h b/kmail/actionscheduler.h
index 027bce21..e785210b 100644
--- a/kmail/actionscheduler.h
+++ b/kmail/actionscheduler.h
@@ -37,9 +37,9 @@
#include "kmfiltermgr.h" // KMFilterMgr::FilterSet
#include "kmcommands.h"
-#include <qobject.h>
-#include <qguardedptr.h>
-#include <qtimer.h>
+#include <tqobject.h>
+#include <tqguardedptr.h>
+#include <tqtimer.h>
class KMHeaders;
@@ -54,7 +54,7 @@ public:
enum ReturnCode { ResultOk, ResultError, ResultCriticalError };
ActionScheduler(KMFilterMgr::FilterSet set,
- QValueList<KMFilter*> filters,
+ TQValueList<KMFilter*> filters,
KMHeaders *headers = 0,
KMFolder *srcFolder = 0);
~ActionScheduler();
@@ -75,7 +75,7 @@ public:
/** Set a list of filters to work with
The current list will not be updated until the queue
of messages left to process is empty */
- void setFilterList( QValueList<KMFilter*> filters );
+ void setFilterList( TQValueList<KMFilter*> filters );
/** Set the id of the account associated with this scheduler */
void setAccountId( uint id ) { mAccountId = id; mAccount = true; }
@@ -84,12 +84,12 @@ public:
void clearAccountId() { mAccountId = 0; mAccount = false; }
/** Queue a message for filtering */
- void execFilters(const QValueList<Q_UINT32> serNums);
- void execFilters(const QPtrList<KMMsgBase> msgList);
+ void execFilters(const TQValueList<Q_UINT32> serNums);
+ void execFilters(const TQPtrList<KMMsgBase> msgList);
void execFilters(KMMsgBase* msgBase);
void execFilters(Q_UINT32 serNum);
- static QString debug();
+ static TQString debug();
static bool isEnabled();
/** Allow or deny manipulations on the message to be filtered.
@@ -136,19 +136,19 @@ private slots:
void fetchTimeOut();
private:
- static QValueList<ActionScheduler*> *schedulerList; // for debugging
+ static TQValueList<ActionScheduler*> *schedulerList; // for debugging
static KMFolderMgr *tempFolderMgr;
static int refCount, count;
static bool sEnabled, sEnabledChecked;
- QValueListIterator<Q_UINT32> mMessageIt;
- QValueListIterator<KMFilter> mFilterIt;
- QValueList<Q_UINT32> mSerNums, mFetchSerNums;
- QValueList<QGuardedPtr<KMFolder> > mOpenFolders;
- QValueList<KMFilter> mFilters, mQueuedFilters;
+ TQValueListIterator<Q_UINT32> mMessageIt;
+ TQValueListIterator<KMFilter> mFilterIt;
+ TQValueList<Q_UINT32> mSerNums, mFetchSerNums;
+ TQValueList<TQGuardedPtr<KMFolder> > mOpenFolders;
+ TQValueList<KMFilter> mFilters, mQueuedFilters;
KMFilterAction* mFilterAction;
KMFilterMgr::FilterSet mSet;
KMHeaders *mHeaders;
- QGuardedPtr<KMFolder> mSrcFolder, mDestFolder;
+ TQGuardedPtr<KMFolder> mSrcFolder, mDestFolder;
bool mExecuting, mExecutingLock, mFetchExecuting;
bool mUnget, mFetchUnget;
bool mIgnore;
@@ -160,10 +160,10 @@ private:
Q_UINT32 mOriginalSerNum;
bool mDeleteSrcFolder;
ReturnCode mResult;
- QTimer *finishTimer, *fetchMessageTimer, *tempCloseFoldersTimer;
- QTimer *processMessageTimer, *filterMessageTimer;
- QTimer *timeOutTimer, *fetchTimeOutTimer;
- QTime timeOutTime, fetchTimeOutTime;
+ TQTimer *finishTimer, *fetchMessageTimer, *tempCloseFoldersTimer;
+ TQTimer *processMessageTimer, *filterMessageTimer;
+ TQTimer *timeOutTimer, *fetchTimeOutTimer;
+ TQTime timeOutTime, fetchTimeOutTime;
KMCommand *lastCommand;
FolderJob *lastJob;
};
diff --git a/kmail/annotationjobs.cpp b/kmail/annotationjobs.cpp
index 314f01fa..6b9cd8e8 100644
--- a/kmail/annotationjobs.cpp
+++ b/kmail/annotationjobs.cpp
@@ -35,11 +35,11 @@
using namespace KMail;
KIO::SimpleJob* AnnotationJobs::setAnnotation(
- KIO::Slave* slave, const KURL& url, const QString& entry,
- const QMap<QString,QString>& attributes )
+ KIO::Slave* slave, const KURL& url, const TQString& entry,
+ const TQMap<TQString,TQString>& attributes )
{
- QByteArray packedArgs;
- QDataStream stream( packedArgs, IO_WriteOnly );
+ TQByteArray packedArgs;
+ TQDataStream stream( packedArgs, IO_WriteOnly );
stream << (int)'M' << (int)'S' << url << entry << attributes;
KIO::SimpleJob* job = KIO::special( url, packedArgs, false );
@@ -48,11 +48,11 @@ KIO::SimpleJob* AnnotationJobs::setAnnotation(
}
AnnotationJobs::GetAnnotationJob* AnnotationJobs::getAnnotation(
- KIO::Slave* slave, const KURL& url, const QString& entry,
- const QStringList& attributes )
+ KIO::Slave* slave, const KURL& url, const TQString& entry,
+ const TQStringList& attributes )
{
- QByteArray packedArgs;
- QDataStream stream( packedArgs, IO_WriteOnly );
+ TQByteArray packedArgs;
+ TQDataStream stream( packedArgs, IO_WriteOnly );
stream << (int)'M' << (int)'G' << url << entry << attributes;
GetAnnotationJob* job = new GetAnnotationJob( url, entry, packedArgs, false );
@@ -60,42 +60,42 @@ AnnotationJobs::GetAnnotationJob* AnnotationJobs::getAnnotation(
return job;
}
-AnnotationJobs::GetAnnotationJob::GetAnnotationJob( const KURL& url, const QString& entry,
- const QByteArray &packedArgs,
+AnnotationJobs::GetAnnotationJob::GetAnnotationJob( const KURL& url, const TQString& entry,
+ const TQByteArray &packedArgs,
bool showProgressInfo )
: KIO::SimpleJob( url, KIO::CMD_SPECIAL, packedArgs, showProgressInfo ),
mEntry( entry )
{
- connect( this, SIGNAL(infoMessage(KIO::Job*,const QString&)),
- SLOT(slotInfoMessage(KIO::Job*,const QString&)) );
+ connect( this, TQT_SIGNAL(infoMessage(KIO::Job*,const TQString&)),
+ TQT_SLOT(slotInfoMessage(KIO::Job*,const TQString&)) );
}
-void AnnotationJobs::GetAnnotationJob::slotInfoMessage( KIO::Job*, const QString& str )
+void AnnotationJobs::GetAnnotationJob::slotInfoMessage( KIO::Job*, const TQString& str )
{
// Parse the result
- QStringList lst = QStringList::split( "\r", str );
+ TQStringList lst = TQStringList::split( "\r", str );
while ( lst.count() >= 2 ) // we take items 2 by 2
{
- QString name = lst.front(); lst.pop_front();
- QString value = lst.front(); lst.pop_front();
+ TQString name = lst.front(); lst.pop_front();
+ TQString value = lst.front(); lst.pop_front();
mAnnotations.append( AnnotationAttribute( mEntry, name, value ) );
}
}
AnnotationJobs::MultiGetAnnotationJob::MultiGetAnnotationJob(
- KIO::Slave* slave, const KURL& url, const QStringList& entries, bool showProgressInfo )
+ KIO::Slave* slave, const KURL& url, const TQStringList& entries, bool showProgressInfo )
: KIO::Job( showProgressInfo ),
mSlave( slave ),
mUrl( url ), mEntryList( entries ), mEntryListIterator( mEntryList.begin() )
{
- QTimer::singleShot(0, this, SLOT(slotStart()));
+ TQTimer::singleShot(0, this, TQT_SLOT(slotStart()));
}
void AnnotationJobs::MultiGetAnnotationJob::slotStart()
{
if ( mEntryListIterator != mEntryList.end() ) {
- QStringList attributes;
+ TQStringList attributes;
attributes << "value";
KIO::Job* job = getAnnotation( mSlave, mUrl, *mEntryListIterator, attributes );
addSubjob( job );
@@ -111,8 +111,8 @@ void AnnotationJobs::MultiGetAnnotationJob::slotResult( KIO::Job *job )
return;
}
subjobs.remove( job );
- const QString& entry = *mEntryListIterator;
- QString value;
+ const TQString& entry = *mEntryListIterator;
+ TQString value;
bool found = false;
GetAnnotationJob* getJob = static_cast<GetAnnotationJob *>( job );
const AnnotationList& lst = getJob->annotations();
@@ -130,7 +130,7 @@ void AnnotationJobs::MultiGetAnnotationJob::slotResult( KIO::Job *job )
slotStart();
}
-AnnotationJobs::MultiGetAnnotationJob* AnnotationJobs::multiGetAnnotation( KIO::Slave* slave, const KURL& url, const QStringList& entries )
+AnnotationJobs::MultiGetAnnotationJob* AnnotationJobs::multiGetAnnotation( KIO::Slave* slave, const KURL& url, const TQStringList& entries )
{
return new MultiGetAnnotationJob( slave, url, entries, false /*showProgressInfo*/ );
}
@@ -143,7 +143,7 @@ AnnotationJobs::MultiSetAnnotationJob::MultiSetAnnotationJob(
mSlave( slave ),
mUrl( url ), mAnnotationList( annotations ), mAnnotationListIterator( mAnnotationList.begin() )
{
- QTimer::singleShot(0, this, SLOT(slotStart()));
+ TQTimer::singleShot(0, this, TQT_SLOT(slotStart()));
}
@@ -153,7 +153,7 @@ void AnnotationJobs::MultiSetAnnotationJob::slotStart()
const AnnotationAttribute& attr = *mAnnotationListIterator;
// setAnnotation can set multiple attributes for a given entry.
// So in theory we could group entries coming from our list. Bah.
- QMap<QString, QString> attributes;
+ TQMap<TQString, TQString> attributes;
attributes.insert( attr.name, attr.value );
kdDebug() << k_funcinfo << " setting annotation " << attr.entry << " " << attr.name << " " << attr.value << endl;
KIO::Job* job = setAnnotation( mSlave, mUrl, attr.entry, attributes );
@@ -187,8 +187,8 @@ AnnotationJobs::MultiSetAnnotationJob* AnnotationJobs::multiSetAnnotation(
AnnotationJobs::MultiUrlGetAnnotationJob::MultiUrlGetAnnotationJob( KIO::Slave* slave,
const KURL& baseUrl,
- const QStringList& paths,
- const QString& annotation )
+ const TQStringList& paths,
+ const TQString& annotation )
: KIO::Job( false ),
mSlave( slave ),
mUrl( baseUrl ),
@@ -196,14 +196,14 @@ AnnotationJobs::MultiUrlGetAnnotationJob::MultiUrlGetAnnotationJob( KIO::Slave*
mPathListIterator( mPathList.begin() ),
mAnnotation( annotation )
{
- QTimer::singleShot(0, this, SLOT(slotStart()));
+ TQTimer::singleShot(0, this, TQT_SLOT(slotStart()));
}
void AnnotationJobs::MultiUrlGetAnnotationJob::slotStart()
{
if ( mPathListIterator != mPathList.end() ) {
- QStringList attributes;
+ TQStringList attributes;
attributes << "value";
KURL url(mUrl);
url.setPath( *mPathListIterator );
@@ -221,7 +221,7 @@ void AnnotationJobs::MultiUrlGetAnnotationJob::slotResult( KIO::Job *job )
return;
}
subjobs.remove( job );
- const QString& path = *mPathListIterator;
+ const TQString& path = *mPathListIterator;
GetAnnotationJob* getJob = static_cast<GetAnnotationJob *>( job );
const AnnotationList& lst = getJob->annotations();
for ( unsigned int i = 0 ; i < lst.size() ; ++ i ) {
@@ -236,15 +236,15 @@ void AnnotationJobs::MultiUrlGetAnnotationJob::slotResult( KIO::Job *job )
slotStart();
}
-QMap<QString, QString> AnnotationJobs::MultiUrlGetAnnotationJob::annotations() const
+TQMap<TQString, TQString> AnnotationJobs::MultiUrlGetAnnotationJob::annotations() const
{
return mAnnotations;
}
AnnotationJobs::MultiUrlGetAnnotationJob* AnnotationJobs::multiUrlGetAnnotation( KIO::Slave* slave,
const KURL& baseUrl,
- const QStringList& paths,
- const QString& annotation )
+ const TQStringList& paths,
+ const TQString& annotation )
{
return new MultiUrlGetAnnotationJob( slave, baseUrl, paths, annotation );
}
diff --git a/kmail/annotationjobs.h b/kmail/annotationjobs.h
index 5375eeed..2c6ca984 100644
--- a/kmail/annotationjobs.h
+++ b/kmail/annotationjobs.h
@@ -33,21 +33,21 @@
#define ANNOTATIONJOBS_H
#include <kio/job.h>
-#include <qvaluevector.h>
+#include <tqvaluevector.h>
namespace KMail {
/// One entry in the annotation list: attribute name and attribute value
struct AnnotationAttribute {
AnnotationAttribute() {} // for QValueVector
- AnnotationAttribute( const QString& e, const QString& n, const QString& v )
+ AnnotationAttribute( const TQString& e, const TQString& n, const TQString& v )
: entry( e ), name( n ), value( v ) {}
- QString entry; // e.g. /comment
- QString name; // e.g. value.shared
- QString value;
+ TQString entry; // e.g. /comment
+ TQString name; // e.g. value.shared
+ TQString value;
};
-typedef QValueVector<AnnotationAttribute> AnnotationList;
+typedef TQValueVector<AnnotationAttribute> AnnotationList;
/**
* This namespace contains functions that return jobs for annotation operations.
@@ -65,8 +65,8 @@ namespace AnnotationJobs {
* @param entry the name of the annotation entry
* @param attributes attribute name+value pairs
*/
-KIO::SimpleJob* setAnnotation( KIO::Slave* slave, const KURL& url, const QString& entry,
- const QMap<QString,QString>& attributes );
+KIO::SimpleJob* setAnnotation( KIO::Slave* slave, const KURL& url, const TQString& entry,
+ const TQMap<TQString,TQString>& attributes );
class MultiSetAnnotationJob;
/**
@@ -82,15 +82,15 @@ class GetAnnotationJob;
* @param entry the name of the annotation entry
* @param attributes attribute names
*/
-GetAnnotationJob* getAnnotation( KIO::Slave* slave, const KURL& url, const QString& entry,
- const QStringList& attributes );
+GetAnnotationJob* getAnnotation( KIO::Slave* slave, const KURL& url, const TQString& entry,
+ const TQStringList& attributes );
class MultiGetAnnotationJob;
/**
* Get multiple annotation entries
* Currently we assume we want to get the "value" for each, to simplify the data structure.
*/
-MultiGetAnnotationJob* multiGetAnnotation( KIO::Slave* slave, const KURL& url, const QStringList& entries );
+MultiGetAnnotationJob* multiGetAnnotation( KIO::Slave* slave, const KURL& url, const TQStringList& entries );
class MultiUrlGetAnnotationJob;
/**
@@ -100,8 +100,8 @@ class MultiUrlGetAnnotationJob;
*/
MultiUrlGetAnnotationJob* multiUrlGetAnnotation( KIO::Slave* slave,
const KURL& baseUrl,
- const QStringList& paths,
- const QString& annotation );
+ const TQStringList& paths,
+ const TQString& annotation );
/// for getAnnotation()
@@ -109,16 +109,16 @@ class GetAnnotationJob : public KIO::SimpleJob
{
Q_OBJECT
public:
- GetAnnotationJob( const KURL& url, const QString& entry, const QByteArray &packedArgs,
+ GetAnnotationJob( const KURL& url, const TQString& entry, const TQByteArray &packedArgs,
bool showProgressInfo );
const AnnotationList& annotations() const { return mAnnotations; }
protected slots:
- void slotInfoMessage( KIO::Job*, const QString& );
+ void slotInfoMessage( KIO::Job*, const TQString& );
private:
AnnotationList mAnnotations;
- QString mEntry;
+ TQString mEntry;
};
/// for multiGetAnnotation
@@ -127,11 +127,11 @@ class MultiGetAnnotationJob : public KIO::Job
Q_OBJECT
public:
- MultiGetAnnotationJob( KIO::Slave* slave, const KURL& url, const QStringList& entries, bool showProgressInfo );
+ MultiGetAnnotationJob( KIO::Slave* slave, const KURL& url, const TQStringList& entries, bool showProgressInfo );
signals:
// Emitted when a given annotation was found - or not found
- void annotationResult( const QString& entry, const QString& value, bool found );
+ void annotationResult( const TQString& entry, const TQString& value, bool found );
protected slots:
virtual void slotStart();
@@ -140,8 +140,8 @@ protected slots:
private:
KIO::Slave* mSlave;
const KURL mUrl;
- const QStringList mEntryList;
- QStringList::const_iterator mEntryListIterator;
+ const TQStringList mEntryList;
+ TQStringList::const_iterator mEntryListIterator;
};
/// for multiUrlGetAnnotation
@@ -151,9 +151,9 @@ class MultiUrlGetAnnotationJob : public KIO::Job
public:
MultiUrlGetAnnotationJob( KIO::Slave* slave, const KURL& baseUrl,
- const QStringList& paths, const QString& annotation );
+ const TQStringList& paths, const TQString& annotation );
- QMap<QString, QString> annotations() const;
+ TQMap<TQString, TQString> annotations() const;
protected slots:
virtual void slotStart();
@@ -162,10 +162,10 @@ protected slots:
private:
KIO::Slave* mSlave;
const KURL mUrl;
- const QStringList mPathList;
- QStringList::const_iterator mPathListIterator;
- QString mAnnotation;
- QMap<QString, QString> mAnnotations;
+ const TQStringList mPathList;
+ TQStringList::const_iterator mPathListIterator;
+ TQString mAnnotation;
+ TQMap<TQString, TQString> mAnnotations;
};
/// for multiSetAnnotation
@@ -178,7 +178,7 @@ public:
signals:
// Emitted when a given annotation was successfully changed
- void annotationChanged( const QString& entry, const QString& attribute, const QString& value );
+ void annotationChanged( const TQString& entry, const TQString& attribute, const TQString& value );
protected slots:
virtual void slotStart();
diff --git a/kmail/antispamconfig.cpp b/kmail/antispamconfig.cpp
index 448bd9ac..9a5b4a23 100644
--- a/kmail/antispamconfig.cpp
+++ b/kmail/antispamconfig.cpp
@@ -59,13 +59,13 @@ void AntiSpamConfig::readConfig()
KConfigGroup general( &config, "General" );
unsigned int totalTools = general.readUnsignedNumEntry( "tools", 0 );
for ( unsigned int i = 1; i <= totalTools; ++i ) {
- KConfigGroup tool( &config, QString("Spamtool #%1").arg( i ) );
+ KConfigGroup tool( &config, TQString("Spamtool #%1").arg( i ) );
if ( tool.hasKey( "ScoreHeader" ) ) {
- QString name = tool.readEntry( "ScoreName" );
- QCString header = tool.readEntry( "ScoreHeader" ).latin1();
- QCString type = tool.readEntry( "ScoreType" ).latin1();
- QString score = tool.readEntryUntranslated( "ScoreValueRegexp" );
- QString threshold = tool.readEntryUntranslated( "ScoreThresholdRegexp" );
+ TQString name = tool.readEntry( "ScoreName" );
+ TQCString header = tool.readEntry( "ScoreHeader" ).latin1();
+ TQCString type = tool.readEntry( "ScoreType" ).latin1();
+ TQString score = tool.readEntryUntranslated( "ScoreValueRegexp" );
+ TQString threshold = tool.readEntryUntranslated( "ScoreThresholdRegexp" );
SpamAgentTypes typeE = SpamAgentNone;
if ( kasciistricmp( type.data(), "bool" ) == 0 )
typeE = SpamAgentBool;
@@ -75,20 +75,20 @@ void AntiSpamConfig::readConfig()
typeE = SpamAgentFloatLarge;
else if ( kasciistricmp( type.data(), "adjusted" ) == 0 )
typeE = SpamAgentAdjustedFloat;
- mAgents.append( SpamAgent( name, typeE, header, QRegExp( score ),
- QRegExp( threshold ) ) );
+ mAgents.append( SpamAgent( name, typeE, header, TQRegExp( score ),
+ TQRegExp( threshold ) ) );
}
}
}
const SpamAgents AntiSpamConfig::uniqueAgents() const
{
- QStringList seenAgents;
+ TQStringList seenAgents;
SpamAgents agents;
SpamAgents::ConstIterator it( mAgents.begin() );
SpamAgents::ConstIterator end( mAgents.end() );
for ( ; it != end ; ++it ) {
- const QString agent( ( *it ).name() );
+ const TQString agent( ( *it ).name() );
if ( seenAgents.find( agent ) == seenAgents.end() ) {
agents.append( *it );
seenAgents.append( agent );
diff --git a/kmail/antispamconfig.h b/kmail/antispamconfig.h
index 64394fe9..b4e73041 100644
--- a/kmail/antispamconfig.h
+++ b/kmail/antispamconfig.h
@@ -34,8 +34,8 @@
#ifndef __KMAIL_ANTISPAMCONFIG_H__
#define __KMAIL_ANTISPAMCONFIG_H__
-#include <qvaluelist.h>
-#include <qregexp.h>
+#include <tqvaluelist.h>
+#include <tqregexp.h>
class QString;
class QCString;
@@ -54,26 +54,26 @@ namespace KMail {
class SpamAgent {
public:
SpamAgent() : mType( SpamAgentNone ) {}
- SpamAgent( const QString & name, SpamAgentTypes type, const QCString & field,
- const QRegExp & score, const QRegExp & threshold )
+ SpamAgent( const TQString & name, SpamAgentTypes type, const TQCString & field,
+ const TQRegExp & score, const TQRegExp & threshold )
: mName( name ), mType( type ), mField( field ),
mScore( score ), mThreshold( threshold ) {}
- QString name() const { return mName; }
+ TQString name() const { return mName; }
SpamAgentTypes scoreType() const { return mType; }
- QCString header() const { return mField; }
- QRegExp scorePattern() const { return mScore; }
- QRegExp thresholdPattern() const { return mThreshold; }
+ TQCString header() const { return mField; }
+ TQRegExp scorePattern() const { return mScore; }
+ TQRegExp thresholdPattern() const { return mThreshold; }
private:
- QString mName;
+ TQString mName;
SpamAgentTypes mType;
- QCString mField;
- QRegExp mScore;
- QRegExp mThreshold;
+ TQCString mField;
+ TQRegExp mScore;
+ TQRegExp mThreshold;
};
- typedef QValueList<SpamAgent> SpamAgents;
- typedef QValueListIterator<SpamAgent> SpamAgentsIterator;
+ typedef TQValueList<SpamAgent> SpamAgents;
+ typedef TQValueListIterator<SpamAgent> SpamAgentsIterator;
/**
@short Singleton to manage loading the kmail.antispamrc file.
diff --git a/kmail/antispamwizard.cpp b/kmail/antispamwizard.cpp
index bb8d74bb..e01093fd 100644
--- a/kmail/antispamwizard.cpp
+++ b/kmail/antispamwizard.cpp
@@ -49,16 +49,16 @@
#include <kmessagebox.h>
#include <kprocess.h>
-#include <qdom.h>
-#include <qlabel.h>
-#include <qlayout.h>
-#include <qtooltip.h>
-#include <qwhatsthis.h>
+#include <tqdom.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
+#include <tqtooltip.h>
+#include <tqwhatsthis.h>
using namespace KMail;
AntiSpamWizard::AntiSpamWizard( WizardMode mode,
- QWidget* parent, KMFolderTree * mainFolderTree )
+ TQWidget* parent, KMFolderTree * mainFolderTree )
: KWizard( parent ),
mInfoPage( 0 ),
mSpamRulesPage( 0 ),
@@ -77,7 +77,7 @@ AntiSpamWizard::AntiSpamWizard( WizardMode mode,
else
kdDebug(5006) << endl << "Considered anti-virus tools: " << endl;
#endif
- for ( QValueListIterator<SpamToolConfig> it = mToolList.begin();
+ for ( TQValueListIterator<SpamToolConfig> it = mToolList.begin();
it != mToolList.end(); ++it ) {
#ifndef NDEBUG
kdDebug(5006) << "Predefined tool: " << (*it).getId() << endl;
@@ -105,24 +105,24 @@ AntiSpamWizard::AntiSpamWizard( WizardMode mode,
( mMode == AntiSpam )
? i18n( "Welcome to the KMail Anti-Spam Wizard" )
: i18n( "Welcome to the KMail Anti-Virus Wizard" ) );
- connect( mInfoPage, SIGNAL( selectionChanged( void ) ),
- this, SLOT( checkProgramsSelections( void ) ) );
+ connect( mInfoPage, TQT_SIGNAL( selectionChanged( void ) ),
+ this, TQT_SLOT( checkProgramsSelections( void ) ) );
if ( mMode == AntiSpam ) {
mSpamRulesPage = new ASWizSpamRulesPage( 0, "", mainFolderTree );
addPage( mSpamRulesPage, i18n( "Options to fine-tune the handling of spam messages" ));
- connect( mSpamRulesPage, SIGNAL( selectionChanged( void ) ),
- this, SLOT( slotBuildSummary( void ) ) );
+ connect( mSpamRulesPage, TQT_SIGNAL( selectionChanged( void ) ),
+ this, TQT_SLOT( slotBuildSummary( void ) ) );
}
else {
mVirusRulesPage = new ASWizVirusRulesPage( 0, "", mainFolderTree );
addPage( mVirusRulesPage, i18n( "Options to fine-tune the handling of virus messages" ));
- connect( mVirusRulesPage, SIGNAL( selectionChanged( void ) ),
- this, SLOT( checkVirusRulesSelections( void ) ) );
+ connect( mVirusRulesPage, TQT_SIGNAL( selectionChanged( void ) ),
+ this, TQT_SLOT( checkVirusRulesSelections( void ) ) );
}
- connect( this, SIGNAL( helpClicked( void) ),
- this, SLOT( slotHelpClicked( void ) ) );
+ connect( this, TQT_SIGNAL( helpClicked( void) ),
+ this, TQT_SLOT( slotHelpClicked( void ) ) );
setNextEnabled( mInfoPage, false );
@@ -133,7 +133,7 @@ AntiSpamWizard::AntiSpamWizard( WizardMode mode,
setFinishEnabled( mSummaryPage, true );
}
- QTimer::singleShot( 0, this, SLOT( checkToolAvailability( void ) ) );
+ TQTimer::singleShot( 0, this, TQT_SLOT( checkToolAvailability( void ) ) );
}
@@ -150,13 +150,13 @@ void AntiSpamWizard::accept()
<< mVirusRulesPage->selectedFolderName() << endl;
KMFilterActionDict dict;
- QValueList<KMFilter*> filterList;
+ TQValueList<KMFilter*> filterList;
bool replaceExistingFilters = false;
// Let's start with virus detection and handling,
// so we can avoid spam checks for viral messages
if ( mMode == AntiVirus ) {
- for ( QValueListIterator<SpamToolConfig> it = mToolList.begin();
+ for ( TQValueListIterator<SpamToolConfig> it = mToolList.begin();
it != mToolList.end(); ++it ) {
if ( mInfoPage->isProgramSelected( (*it).getVisibleName() ) &&
( mVirusRulesPage->pipeRulesSelected() && (*it).isVirusTool() ) )
@@ -165,7 +165,7 @@ void AntiSpamWizard::accept()
// one single filter for each tool
// (could get combined but so it's easier to understand for the user)
KMFilter* pipeFilter = new KMFilter();
- QPtrList<KMFilterAction>* pipeFilterActions = pipeFilter->actions();
+ TQPtrList<KMFilterAction>* pipeFilterActions = pipeFilter->actions();
KMFilterAction* pipeFilterAction = dict["filter app"]->create();
pipeFilterAction->argsFromString( (*it).getDetectCmd() );
pipeFilterActions->append( pipeFilterAction );
@@ -187,7 +187,7 @@ void AntiSpamWizard::accept()
{
// Sort out viruses depending on header fields set by the tools
KMFilter* virusFilter = new KMFilter();
- QPtrList<KMFilterAction>* virusFilterActions = virusFilter->actions();
+ TQPtrList<KMFilterAction>* virusFilterActions = virusFilter->actions();
KMFilterAction* virusFilterAction1 = dict["transfer"]->create();
virusFilterAction1->argsFromString( mVirusRulesPage->selectedFolderName() );
virusFilterActions->append( virusFilterAction1 );
@@ -199,14 +199,14 @@ void AntiSpamWizard::accept()
KMSearchPattern* virusFilterPattern = virusFilter->pattern();
virusFilterPattern->setName( uniqueNameFor( i18n( "Virus handling" ) ) );
virusFilterPattern->setOp( KMSearchPattern::OpOr );
- for ( QValueListIterator<SpamToolConfig> it = mToolList.begin();
+ for ( TQValueListIterator<SpamToolConfig> it = mToolList.begin();
it != mToolList.end(); ++it ) {
if ( mInfoPage->isProgramSelected( (*it).getVisibleName() ))
{
if ( (*it).isVirusTool() )
{
- const QCString header = (*it).getDetectionHeader().ascii();
- const QString & pattern = (*it).getDetectionPattern();
+ const TQCString header = (*it).getDetectionHeader().ascii();
+ const TQString & pattern = (*it).getDetectionPattern();
if ( (*it).isUseRegExp() )
virusFilterPattern->append(
KMSearchRule::createInstance( header,
@@ -232,7 +232,7 @@ void AntiSpamWizard::accept()
// ATM and needs to be replaced with a value from a (still missing)
// checkbox in the GUI. At least, the replacement is announced in the GUI.
replaceExistingFilters = true;
- for ( QValueListIterator<SpamToolConfig> it = mToolList.begin();
+ for ( TQValueListIterator<SpamToolConfig> it = mToolList.begin();
it != mToolList.end(); ++it ) {
if ( mInfoPage->isProgramSelected( (*it).getVisibleName() ) &&
(*it).isSpamTool() && !(*it).isDetectionOnly() )
@@ -241,7 +241,7 @@ void AntiSpamWizard::accept()
// one single filter for each tool
// (could get combined but so it's easier to understand for the user)
KMFilter* pipeFilter = new KMFilter();
- QPtrList<KMFilterAction>* pipeFilterActions = pipeFilter->actions();
+ TQPtrList<KMFilterAction>* pipeFilterActions = pipeFilter->actions();
KMFilterAction* pipeFilterAction = dict["filter app"]->create();
pipeFilterAction->argsFromString( (*it).getDetectCmd() );
pipeFilterActions->append( pipeFilterAction );
@@ -264,7 +264,7 @@ void AntiSpamWizard::accept()
// Sort out spam depending on header fields set by the tools
KMFilter* spamFilter = new KMFilter();
- QPtrList<KMFilterAction>* spamFilterActions = spamFilter->actions();
+ TQPtrList<KMFilterAction>* spamFilterActions = spamFilter->actions();
if ( mSpamRulesPage->moveSpamSelected() )
{
KMFilterAction* spamFilterAction1 = dict["transfer"]->create();
@@ -285,14 +285,14 @@ void AntiSpamWizard::accept()
else
spamFilterPattern->setName( uniqueNameFor( i18n( "Spam handling" ) ) );
spamFilterPattern->setOp( KMSearchPattern::OpOr );
- for ( QValueListIterator<SpamToolConfig> it = mToolList.begin();
+ for ( TQValueListIterator<SpamToolConfig> it = mToolList.begin();
it != mToolList.end(); ++it ) {
if ( mInfoPage->isProgramSelected( (*it).getVisibleName() ) )
{
if ( (*it).isSpamTool() )
{
- const QCString header = (*it).getDetectionHeader().ascii();
- const QString & pattern = (*it).getDetectionPattern();
+ const TQCString header = (*it).getDetectionHeader().ascii();
+ const TQString & pattern = (*it).getDetectionPattern();
if ( (*it).isUseRegExp() )
spamFilterPattern->append(
KMSearchRule::createInstance( header,
@@ -316,7 +316,7 @@ void AntiSpamWizard::accept()
// Sort out messages classified as unsure
bool atLeastOneUnsurePattern = false;
KMFilter* unsureFilter = new KMFilter();
- QPtrList<KMFilterAction>* unsureFilterActions = unsureFilter->actions();
+ TQPtrList<KMFilterAction>* unsureFilterActions = unsureFilter->actions();
KMFilterAction* unsureFilterAction1 = dict["transfer"]->create();
unsureFilterAction1->argsFromString( mSpamRulesPage->selectedUnsureFolderName() );
unsureFilterActions->append( unsureFilterAction1 );
@@ -326,15 +326,15 @@ void AntiSpamWizard::accept()
else
unsureFilterPattern->setName( uniqueNameFor( i18n( "Semi spam (unsure) handling" ) ) );
unsureFilterPattern->setOp( KMSearchPattern::OpOr );
- for ( QValueListIterator<SpamToolConfig> it = mToolList.begin();
+ for ( TQValueListIterator<SpamToolConfig> it = mToolList.begin();
it != mToolList.end(); ++it ) {
if ( mInfoPage->isProgramSelected( (*it).getVisibleName() ) )
{
if ( (*it).isSpamTool() && (*it).hasTristateDetection())
{
atLeastOneUnsurePattern = true;
- const QCString header = (*it).getDetectionHeader().ascii();
- const QString & pattern = (*it).getDetectionPattern2();
+ const TQCString header = (*it).getDetectionHeader().ascii();
+ const TQString & pattern = (*it).getDetectionPattern2();
if ( (*it).isUseRegExp() )
unsureFilterPattern->append(
KMSearchRule::createInstance( header,
@@ -361,11 +361,11 @@ void AntiSpamWizard::accept()
// Classify messages manually as Spam
KMFilter* classSpamFilter = new KMFilter();
classSpamFilter->setIcon( "mail_spam" );
- QPtrList<KMFilterAction>* classSpamFilterActions = classSpamFilter->actions();
+ TQPtrList<KMFilterAction>* classSpamFilterActions = classSpamFilter->actions();
KMFilterAction* classSpamFilterActionFirst = dict["set status"]->create();
classSpamFilterActionFirst->argsFromString( "P" );
classSpamFilterActions->append( classSpamFilterActionFirst );
- for ( QValueListIterator<SpamToolConfig> it = mToolList.begin();
+ for ( TQValueListIterator<SpamToolConfig> it = mToolList.begin();
it != mToolList.end(); ++it ) {
if ( mInfoPage->isProgramSelected( (*it).getVisibleName() )
&& (*it).useBayesFilter() && !(*it).isDetectionOnly() )
@@ -400,11 +400,11 @@ void AntiSpamWizard::accept()
// Classify messages manually as not Spam / as Ham
KMFilter* classHamFilter = new KMFilter();
classHamFilter->setIcon( "mail_ham" );
- QPtrList<KMFilterAction>* classHamFilterActions = classHamFilter->actions();
+ TQPtrList<KMFilterAction>* classHamFilterActions = classHamFilter->actions();
KMFilterAction* classHamFilterActionFirst = dict["set status"]->create();
classHamFilterActionFirst->argsFromString( "H" );
classHamFilterActions->append( classHamFilterActionFirst );
- for ( QValueListIterator<SpamToolConfig> it = mToolList.begin();
+ for ( TQValueListIterator<SpamToolConfig> it = mToolList.begin();
it != mToolList.end(); ++it ) {
if ( mInfoPage->isProgramSelected( (*it).getVisibleName() )
&& (*it).useBayesFilter() && !(*it).isDetectionOnly() )
@@ -438,7 +438,7 @@ void AntiSpamWizard::accept()
KMKernel::self()->filterMgr()->appendFilters(
filterList, replaceExistingFilters );
- QDialog::accept();
+ TQDialog::accept();
}
@@ -449,7 +449,7 @@ void AntiSpamWizard::checkProgramsSelections()
mSpamToolsUsed = false;
mVirusToolsUsed = false;
- for ( QValueListIterator<SpamToolConfig> it = mToolList.begin();
+ for ( TQValueListIterator<SpamToolConfig> it = mToolList.begin();
it != mToolList.end(); ++it ) {
if ( mInfoPage->isProgramSelected( (*it).getVisibleName() ) )
{
@@ -488,13 +488,13 @@ void AntiSpamWizard::checkToolAvailability()
KCursorSaver busy( KBusyPtr::busy() );
bool found = false;
- for ( QValueListIterator<SpamToolConfig> it = mToolList.begin();
+ for ( TQValueListIterator<SpamToolConfig> it = mToolList.begin();
it != mToolList.end(); ++it ) {
- QString text( i18n("Scanning for %1...").arg( (*it).getId() ) );
+ TQString text( i18n("Scanning for %1...").arg( (*it).getId() ) );
mInfoPage->setScanProgressText( text );
if ( (*it).isSpamTool() && (*it).isServerBased() ) {
// check the configured account for pattern in <server>
- QString pattern = (*it).getServerPattern();
+ TQString pattern = (*it).getServerPattern();
kdDebug(5006) << "Testing for server pattern:" << pattern << endl;
AccountManager* mgr = kmkernel->acctMgr();
@@ -543,9 +543,9 @@ void AntiSpamWizard::slotHelpClicked()
void AntiSpamWizard::slotBuildSummary()
{
- QString text;
- QString newFilters;
- QString replaceFilters;
+ TQString text;
+ TQString newFilters;
+ TQString replaceFilters;
if ( mMode == AntiVirus ) {
text = ""; // TODO add summary for the virus part
@@ -562,7 +562,7 @@ void AntiSpamWizard::slotBuildSummary()
else
text += i18n( "<br>Spam messages are not moved into a certain folder.</p>" );
- for ( QValueListIterator<SpamToolConfig> it = mToolList.begin();
+ for ( TQValueListIterator<SpamToolConfig> it = mToolList.begin();
it != mToolList.end(); ++it ) {
if ( mInfoPage->isProgramSelected( (*it).getVisibleName() ) &&
(*it).isSpamTool() && !(*it).isDetectionOnly() ) {
@@ -574,7 +574,7 @@ void AntiSpamWizard::slotBuildSummary()
// The need for a andling of status "probably spam" depends on the tools chosen
if ( mSpamRulesPage->moveUnsureSelected() ) {
bool atLeastOneUnsurePattern = false;
- for ( QValueListIterator<SpamToolConfig> it = mToolList.begin();
+ for ( TQValueListIterator<SpamToolConfig> it = mToolList.begin();
it != mToolList.end(); ++it ) {
if ( mInfoPage->isProgramSelected( (*it).getVisibleName() ) ) {
if ( (*it).isSpamTool() && (*it).hasTristateDetection())
@@ -608,7 +608,7 @@ void AntiSpamWizard::slotBuildSummary()
}
-int AntiSpamWizard::checkForProgram( const QString &executable )
+int AntiSpamWizard::checkForProgram( const TQString &executable )
{
kdDebug(5006) << "Testing for executable:" << executable << endl;
KProcess process;
@@ -626,15 +626,15 @@ bool AntiSpamWizard::anyVirusOptionChecked()
}
-const QString AntiSpamWizard::uniqueNameFor( const QString & name )
+const TQString AntiSpamWizard::uniqueNameFor( const TQString & name )
{
return KMKernel::self()->filterMgr()->createUniqueName( name );
}
void AntiSpamWizard::sortFilterOnExistance(
- const QString & intendedFilterName,
- QString & newFilters, QString & replaceFilters )
+ const TQString & intendedFilterName,
+ TQString & newFilters, TQString & replaceFilters )
{
if ( uniqueNameFor( intendedFilterName ) == intendedFilterName )
newFilters += "<li>" + intendedFilterName + "</li>";
@@ -644,10 +644,10 @@ void AntiSpamWizard::sortFilterOnExistance(
//---------------------------------------------------------------------------
-AntiSpamWizard::SpamToolConfig::SpamToolConfig( QString toolId,
- int configVersion, int prio, QString name, QString exec,
- QString url, QString filter, QString detection, QString spam, QString ham,
- QString header, QString pattern, QString pattern2, QString serverPattern,
+AntiSpamWizard::SpamToolConfig::SpamToolConfig( TQString toolId,
+ int configVersion, int prio, TQString name, TQString exec,
+ TQString url, TQString filter, TQString detection, TQString spam, TQString ham,
+ TQString header, TQString pattern, TQString pattern2, TQString serverPattern,
bool detectionOnly, bool regExp, bool bayesFilter, bool tristateDetection,
WizardMode type )
: mId( toolId ), mVersion( configVersion ), mPrio( prio ),
@@ -670,7 +670,7 @@ bool AntiSpamWizard::SpamToolConfig::isServerBased() const
//---------------------------------------------------------------------------
AntiSpamWizard::ConfigReader::ConfigReader( WizardMode mode,
- QValueList<SpamToolConfig> & configList )
+ TQValueList<SpamToolConfig> & configList )
: mToolList( configList ),
mMode( mode )
{
@@ -688,9 +688,9 @@ AntiSpamWizard::ConfigReader::~ConfigReader( )
void AntiSpamWizard::ConfigReader::readAndMergeConfig()
{
- QString groupName = ( mMode == AntiSpam )
- ? QString("Spamtool #%1")
- : QString("Virustool #%1");
+ TQString groupName = ( mMode == AntiSpam )
+ ? TQString("Spamtool #%1")
+ : TQString("Virustool #%1");
// read the configuration from the global config file
mConfig->setReadDefaults( true );
KConfigGroup general( mConfig, "General" );
@@ -727,24 +727,24 @@ void AntiSpamWizard::ConfigReader::readAndMergeConfig()
AntiSpamWizard::SpamToolConfig
AntiSpamWizard::ConfigReader::readToolConfig( KConfigGroup & configGroup )
{
- QString id = configGroup.readEntry( "Ident" );
+ TQString id = configGroup.readEntry( "Ident" );
int version = configGroup.readNumEntry( "Version" );
#ifndef NDEBUG
kdDebug(5006) << "Found predefined tool: " << id << endl;
kdDebug(5006) << "With config version : " << version << endl;
#endif
int prio = configGroup.readNumEntry( "Priority", 1 );
- QString name = configGroup.readEntry( "VisibleName" );
- QString executable = configGroup.readEntry( "Executable" );
- QString url = configGroup.readEntry( "URL" );
- QString filterName = configGroup.readEntry( "PipeFilterName" );
- QString detectCmd = configGroup.readEntry( "PipeCmdDetect" );
- QString spamCmd = configGroup.readEntry( "ExecCmdSpam" );
- QString hamCmd = configGroup.readEntry( "ExecCmdHam" );
- QString header = configGroup.readEntry( "DetectionHeader" );
- QString pattern = configGroup.readEntry( "DetectionPattern" );
- QString pattern2 = configGroup.readEntry( "DetectionPattern2" );
- QString serverPattern = configGroup.readEntry( "ServerPattern" );
+ TQString name = configGroup.readEntry( "VisibleName" );
+ TQString executable = configGroup.readEntry( "Executable" );
+ TQString url = configGroup.readEntry( "URL" );
+ TQString filterName = configGroup.readEntry( "PipeFilterName" );
+ TQString detectCmd = configGroup.readEntry( "PipeCmdDetect" );
+ TQString spamCmd = configGroup.readEntry( "ExecCmdSpam" );
+ TQString hamCmd = configGroup.readEntry( "ExecCmdHam" );
+ TQString header = configGroup.readEntry( "DetectionHeader" );
+ TQString pattern = configGroup.readEntry( "DetectionPattern" );
+ TQString pattern2 = configGroup.readEntry( "DetectionPattern2" );
+ TQString serverPattern = configGroup.readEntry( "ServerPattern" );
bool detectionOnly = configGroup.readBoolEntry( "DetectionOnly", false );
bool useRegExp = configGroup.readBoolEntry( "UseRegExp" );
bool supportsBayes = configGroup.readBoolEntry( "SupportsBayes", false );
@@ -773,7 +773,7 @@ AntiSpamWizard::SpamToolConfig AntiSpamWizard::ConfigReader::createDummyConfig()
void AntiSpamWizard::ConfigReader::mergeToolConfig( AntiSpamWizard::SpamToolConfig config )
{
bool found = false;
- for ( QValueListIterator<SpamToolConfig> it = mToolList.begin();
+ for ( TQValueListIterator<SpamToolConfig> it = mToolList.begin();
it != mToolList.end(); ++it ) {
#ifndef NDEBUG
kdDebug(5006) << "Check against tool: " << (*it).getId() << endl;
@@ -800,13 +800,13 @@ void AntiSpamWizard::ConfigReader::mergeToolConfig( AntiSpamWizard::SpamToolConf
void AntiSpamWizard::ConfigReader::sortToolList()
{
- QValueList<SpamToolConfig> tmpList;
+ TQValueList<SpamToolConfig> tmpList;
SpamToolConfig config;
while ( !mToolList.isEmpty() ) {
- QValueListIterator<SpamToolConfig> highest;
+ TQValueListIterator<SpamToolConfig> highest;
int priority = 0; // ascending
- for ( QValueListIterator<SpamToolConfig> it = mToolList.begin();
+ for ( TQValueListIterator<SpamToolConfig> it = mToolList.begin();
it != mToolList.end(); ++it ) {
if ( (*it).getPrio() > priority ) {
priority = (*it).getPrio();
@@ -817,7 +817,7 @@ void AntiSpamWizard::ConfigReader::sortToolList()
tmpList.append( config );
mToolList.remove( highest );
}
- for ( QValueListIterator<SpamToolConfig> it = tmpList.begin();
+ for ( TQValueListIterator<SpamToolConfig> it = tmpList.begin();
it != tmpList.end(); ++it ) {
mToolList.append( (*it) );
}
@@ -825,35 +825,35 @@ void AntiSpamWizard::ConfigReader::sortToolList()
//---------------------------------------------------------------------------
-ASWizPage::ASWizPage( QWidget * parent, const char * name,
- const QString *bannerName )
- : QWidget( parent, name )
+ASWizPage::ASWizPage( TQWidget * parent, const char * name,
+ const TQString *bannerName )
+ : TQWidget( parent, name )
{
- QString banner = "kmwizard.png";
+ TQString banner = "kmwizard.png";
if ( bannerName && !bannerName->isEmpty() )
banner = *bannerName;
- mLayout = new QHBoxLayout( this, KDialog::marginHint(), KDialog::spacingHint() );
- mPixmap = new QPixmap( UserIcon(banner) );
- mBannerLabel = new QLabel( this );
+ mLayout = new TQHBoxLayout( this, KDialog::marginHint(), KDialog::spacingHint() );
+ mPixmap = new TQPixmap( UserIcon(banner) );
+ mBannerLabel = new TQLabel( this );
mBannerLabel->setPixmap( *mPixmap );
mBannerLabel->setScaledContents( false );
- mBannerLabel->setFrameShape( QFrame::StyledPanel );
- mBannerLabel->setFrameShadow( QFrame::Sunken );
+ mBannerLabel->setFrameShape( TQFrame::StyledPanel );
+ mBannerLabel->setFrameShadow( TQFrame::Sunken );
mLayout->addWidget( mBannerLabel );
- mLayout->addItem( new QSpacerItem( 5, 5, QSizePolicy::Minimum, QSizePolicy::Expanding ) );
+ mLayout->addItem( new TQSpacerItem( 5, 5, TQSizePolicy::Minimum, TQSizePolicy::Expanding ) );
}
//---------------------------------------------------------------------------
ASWizInfoPage::ASWizInfoPage( AntiSpamWizard::WizardMode mode,
- QWidget * parent, const char * name )
+ TQWidget * parent, const char * name )
: ASWizPage( parent, name )
{
- QBoxLayout * layout = new QVBoxLayout( mLayout );
+ TQBoxLayout * layout = new TQVBoxLayout( mLayout );
- mIntroText = new QLabel( this );
+ mIntroText = new TQLabel( this );
mIntroText->setText(
( mode == AntiSpamWizard::AntiSpam )
? i18n(
@@ -877,20 +877,20 @@ ASWizInfoPage::ASWizInfoPage( AntiSpamWizard::WizardMode mode,
) );
layout->addWidget( mIntroText );
- mScanProgressText = new QLabel( this );
+ mScanProgressText = new TQLabel( this );
mScanProgressText->setText( "" ) ;
layout->addWidget( mScanProgressText );
mToolsList = new KListBox( this );
mToolsList->hide();
- mToolsList->setSelectionMode( QListBox::Multi );
- mToolsList->setRowMode( QListBox::FixedNumber );
+ mToolsList->setSelectionMode( TQListBox::Multi );
+ mToolsList->setRowMode( TQListBox::FixedNumber );
mToolsList->setRowMode( 10 );
layout->addWidget( mToolsList );
- connect( mToolsList, SIGNAL(selectionChanged()),
- this, SLOT(processSelectionChange(void)) );
+ connect( mToolsList, TQT_SIGNAL(selectionChanged()),
+ this, TQT_SLOT(processSelectionChange(void)) );
- mSelectionHint = new QLabel( this );
+ mSelectionHint = new TQLabel( this );
mSelectionHint->setText( "" );
layout->addWidget( mSelectionHint );
@@ -898,15 +898,15 @@ ASWizInfoPage::ASWizInfoPage( AntiSpamWizard::WizardMode mode,
}
-void ASWizInfoPage::setScanProgressText( const QString &toolName )
+void ASWizInfoPage::setScanProgressText( const TQString &toolName )
{
mScanProgressText->setText( toolName );
}
-void ASWizInfoPage::addAvailableTool( const QString &visibleName )
+void ASWizInfoPage::addAvailableTool( const TQString &visibleName )
{
- QString listName = visibleName;
+ TQString listName = visibleName;
mToolsList->insertItem( listName );
if ( !mToolsList->isVisible() )
{
@@ -918,9 +918,9 @@ void ASWizInfoPage::addAvailableTool( const QString &visibleName )
}
}
-bool ASWizInfoPage::isProgramSelected( const QString &visibleName )
+bool ASWizInfoPage::isProgramSelected( const TQString &visibleName )
{
- QString listName = visibleName;
+ TQString listName = visibleName;
return mToolsList->isSelected( mToolsList->findItem( listName ) );
}
@@ -932,19 +932,19 @@ void ASWizInfoPage::processSelectionChange()
//---------------------------------------------------------------------------
-ASWizSpamRulesPage::ASWizSpamRulesPage( QWidget * parent, const char * name,
+ASWizSpamRulesPage::ASWizSpamRulesPage( TQWidget * parent, const char * name,
KMFolderTree * mainFolderTree )
: ASWizPage( parent, name )
{
- QVBoxLayout *layout = new QVBoxLayout( mLayout );
+ TQVBoxLayout *layout = new TQVBoxLayout( mLayout );
- mMarkRules = new QCheckBox( i18n("&Mark detected spam messages as read"), this );
- QWhatsThis::add( mMarkRules,
+ mMarkRules = new TQCheckBox( i18n("&Mark detected spam messages as read"), this );
+ TQWhatsThis::add( mMarkRules,
i18n( "Mark messages which have been classified as spam as read.") );
layout->addWidget( mMarkRules);
- mMoveSpamRules = new QCheckBox( i18n("Move &known spam to:"), this );
- QWhatsThis::add( mMoveSpamRules,
+ mMoveSpamRules = new TQCheckBox( i18n("Move &known spam to:"), this );
+ TQWhatsThis::add( mMoveSpamRules,
i18n( "The default folder for spam messages is the trash folder, "
"but you may change that in the folder view below.") );
layout->addWidget( mMoveSpamRules );
@@ -955,12 +955,12 @@ ASWizSpamRulesPage::ASWizSpamRulesPage( QWidget * parent, const char * name,
mFolderReqForSpamFolder->setShowOutbox( false );
mFolderReqForSpamFolder->setShowImapFolders( false );
- QHBoxLayout *hLayout1 = new QHBoxLayout( layout );
+ TQHBoxLayout *hLayout1 = new TQHBoxLayout( layout );
hLayout1->addSpacing( KDialog::spacingHint() * 3 );
hLayout1->addWidget( mFolderReqForSpamFolder );
- mMoveUnsureRules = new QCheckBox( i18n("Move &probable spam to:"), this );
- QWhatsThis::add( mMoveUnsureRules,
+ mMoveUnsureRules = new TQCheckBox( i18n("Move &probable spam to:"), this );
+ TQWhatsThis::add( mMoveUnsureRules,
i18n( "The default folder is the inbox folder, but you may change that "
"in the folder view below.<p>"
"Not all tools support a classification as unsure. If you haven't "
@@ -973,22 +973,22 @@ ASWizSpamRulesPage::ASWizSpamRulesPage( QWidget * parent, const char * name,
mFolderReqForUnsureFolder->setShowOutbox( false );
mFolderReqForUnsureFolder->setShowImapFolders( false );
- QHBoxLayout *hLayout2 = new QHBoxLayout( layout );
+ TQHBoxLayout *hLayout2 = new TQHBoxLayout( layout );
hLayout2->addSpacing( KDialog::spacingHint() * 3 );
hLayout2->addWidget( mFolderReqForUnsureFolder );
layout->addStretch();
- connect( mMarkRules, SIGNAL(clicked()),
- this, SLOT(processSelectionChange(void)) );
- connect( mMoveSpamRules, SIGNAL(clicked()),
- this, SLOT(processSelectionChange(void)) );
- connect( mMoveUnsureRules, SIGNAL(clicked()),
- this, SLOT(processSelectionChange(void)) );
- connect( mFolderReqForSpamFolder, SIGNAL(folderChanged(KMFolder*)),
- this, SLOT(processSelectionChange(KMFolder*)) );
- connect( mFolderReqForUnsureFolder, SIGNAL(folderChanged(KMFolder*)),
- this, SLOT(processSelectionChange(KMFolder*)) );
+ connect( mMarkRules, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(processSelectionChange(void)) );
+ connect( mMoveSpamRules, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(processSelectionChange(void)) );
+ connect( mMoveUnsureRules, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(processSelectionChange(void)) );
+ connect( mFolderReqForSpamFolder, TQT_SIGNAL(folderChanged(KMFolder*)),
+ this, TQT_SLOT(processSelectionChange(KMFolder*)) );
+ connect( mFolderReqForUnsureFolder, TQT_SIGNAL(folderChanged(KMFolder*)),
+ this, TQT_SLOT(processSelectionChange(KMFolder*)) );
mMarkRules->setChecked( true );
mMoveSpamRules->setChecked( true );
@@ -1013,18 +1013,18 @@ bool ASWizSpamRulesPage::moveUnsureSelected() const
}
-QString ASWizSpamRulesPage::selectedSpamFolderName() const
+TQString ASWizSpamRulesPage::selectedSpamFolderName() const
{
- QString name = "trash";
+ TQString name = "trash";
if ( mFolderReqForSpamFolder->folder() )
name = mFolderReqForSpamFolder->folder()->idString();
return name;
}
-QString ASWizSpamRulesPage::selectedUnsureFolderName() const
+TQString ASWizSpamRulesPage::selectedUnsureFolderName() const
{
- QString name = "inbox";
+ TQString name = "inbox";
if ( mFolderReqForUnsureFolder->folder() )
name = mFolderReqForUnsureFolder->folder()->idString();
return name;
@@ -1055,48 +1055,48 @@ void ASWizSpamRulesPage::allowUnsureFolderSelection( bool enabled )
//---------------------------------------------------------------------------
-ASWizVirusRulesPage::ASWizVirusRulesPage( QWidget * parent, const char * name,
+ASWizVirusRulesPage::ASWizVirusRulesPage( TQWidget * parent, const char * name,
KMFolderTree * mainFolderTree )
: ASWizPage( parent, name )
{
- QGridLayout *grid = new QGridLayout( mLayout, 5, 1, KDialog::spacingHint() );
+ TQGridLayout *grid = new TQGridLayout( mLayout, 5, 1, KDialog::spacingHint() );
- mPipeRules = new QCheckBox( i18n("Check messages using the anti-virus tools"), this );
- QWhatsThis::add( mPipeRules,
+ mPipeRules = new TQCheckBox( i18n("Check messages using the anti-virus tools"), this );
+ TQWhatsThis::add( mPipeRules,
i18n( "Let the anti-virus tools check your messages. The wizard "
"will create appropriate filters. The messages are usually "
"marked by the tools so that following filters can react "
"on this and, for example, move virus messages to a special folder.") );
grid->addWidget( mPipeRules, 0, 0 );
- mMoveRules = new QCheckBox( i18n("Move detected viral messages to the selected folder"), this );
- QWhatsThis::add( mMoveRules,
+ mMoveRules = new TQCheckBox( i18n("Move detected viral messages to the selected folder"), this );
+ TQWhatsThis::add( mMoveRules,
i18n( "A filter to detect messages classified as virus-infected and to move "
"those messages into a predefined folder is created. The "
"default folder is the trash folder, but you may change that "
"in the folder view.") );
grid->addWidget( mMoveRules, 1, 0 );
- mMarkRules = new QCheckBox( i18n("Additionally, mark detected viral messages as read"), this );
+ mMarkRules = new TQCheckBox( i18n("Additionally, mark detected viral messages as read"), this );
mMarkRules->setEnabled( false );
- QWhatsThis::add( mMarkRules,
+ TQWhatsThis::add( mMarkRules,
i18n( "Mark messages which have been classified as "
"virus-infected as read, as well as moving them "
"to the selected folder.") );
grid->addWidget( mMarkRules, 2, 0 );
- QString s = "trash";
+ TQString s = "trash";
mFolderTree = new SimpleFolderTree( this, mainFolderTree, s, true );
grid->addWidget( mFolderTree, 3, 0 );
- connect( mPipeRules, SIGNAL(clicked()),
- this, SLOT(processSelectionChange(void)) );
- connect( mMoveRules, SIGNAL(clicked()),
- this, SLOT(processSelectionChange(void)) );
- connect( mMarkRules, SIGNAL(clicked()),
- this, SLOT(processSelectionChange(void)) );
- connect( mMoveRules, SIGNAL( toggled( bool ) ),
- mMarkRules, SLOT( setEnabled( bool ) ) );
+ connect( mPipeRules, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(processSelectionChange(void)) );
+ connect( mMoveRules, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(processSelectionChange(void)) );
+ connect( mMarkRules, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(processSelectionChange(void)) );
+ connect( mMoveRules, TQT_SIGNAL( toggled( bool ) ),
+ mMarkRules, TQT_SLOT( setEnabled( bool ) ) );
}
bool ASWizVirusRulesPage::pipeRulesSelected() const
@@ -1116,9 +1116,9 @@ bool ASWizVirusRulesPage::markReadRulesSelected() const
}
-QString ASWizVirusRulesPage::selectedFolderName() const
+TQString ASWizVirusRulesPage::selectedFolderName() const
{
- QString name = "trash";
+ TQString name = "trash";
if ( mFolderTree->folder() )
name = mFolderTree->folder()->idString();
return name;
@@ -1131,18 +1131,18 @@ void ASWizVirusRulesPage::processSelectionChange()
//---------------------------------------------------------------------------
-ASWizSummaryPage::ASWizSummaryPage( QWidget * parent, const char * name )
+ASWizSummaryPage::ASWizSummaryPage( TQWidget * parent, const char * name )
: ASWizPage( parent, name )
{
- QBoxLayout * layout = new QVBoxLayout( mLayout );
+ TQBoxLayout * layout = new TQVBoxLayout( mLayout );
- mSummaryText = new QLabel( this );
+ mSummaryText = new TQLabel( this );
layout->addWidget( mSummaryText );
layout->addStretch();
}
-void ASWizSummaryPage::setSummaryText( const QString & text )
+void ASWizSummaryPage::setSummaryText( const TQString & text )
{
mSummaryText->setText( text );
}
diff --git a/kmail/antispamwizard.h b/kmail/antispamwizard.h
index 745edae6..be2e67e8 100644
--- a/kmail/antispamwizard.h
+++ b/kmail/antispamwizard.h
@@ -33,9 +33,9 @@
#include <klistbox.h>
#include <kwizard.h>
-#include <qcheckbox.h>
-#include <qdict.h>
-#include <qlayout.h>
+#include <tqcheckbox.h>
+#include <tqdict.h>
+#include <tqlayout.h>
class KActionCollection;
class KMFolder;
@@ -119,7 +119,7 @@ namespace KMail {
within one of the wizard pages.
*/
AntiSpamWizard( WizardMode mode,
- QWidget * parent, KMFolderTree * mainFolderTree );
+ TQWidget * parent, KMFolderTree * mainFolderTree );
protected:
/**
@@ -131,28 +131,28 @@ namespace KMail {
{
public:
SpamToolConfig() {}
- SpamToolConfig( QString toolId, int configVersion, int prio,
- QString name, QString exec, QString url, QString filter,
- QString detection, QString spam, QString ham,
- QString header, QString pattern, QString pattern2,
- QString serverPattern,
+ SpamToolConfig( TQString toolId, int configVersion, int prio,
+ TQString name, TQString exec, TQString url, TQString filter,
+ TQString detection, TQString spam, TQString ham,
+ TQString header, TQString pattern, TQString pattern2,
+ TQString serverPattern,
bool detectionOnly, bool regExp, bool bayesFilter,
bool tristateDetection, WizardMode type );
int getVersion() const { return mVersion; }
int getPrio() const { return mPrio; }
- QString getId() const { return mId; }
- QString getVisibleName() const { return mVisibleName; }
- QString getExecutable() const { return mExecutable; }
- QString getWhatsThisText() const { return mWhatsThisText; }
- QString getFilterName() const { return mFilterName; }
- QString getDetectCmd() const { return mDetectCmd; }
- QString getSpamCmd() const { return mSpamCmd; }
- QString getHamCmd() const { return mHamCmd; }
- QString getDetectionHeader() const { return mDetectionHeader; }
- QString getDetectionPattern() const { return mDetectionPattern; }
- QString getDetectionPattern2() const { return mDetectionPattern2; }
- QString getServerPattern() const { return mServerPattern; }
+ TQString getId() const { return mId; }
+ TQString getVisibleName() const { return mVisibleName; }
+ TQString getExecutable() const { return mExecutable; }
+ TQString getWhatsThisText() const { return mWhatsThisText; }
+ TQString getFilterName() const { return mFilterName; }
+ TQString getDetectCmd() const { return mDetectCmd; }
+ TQString getSpamCmd() const { return mSpamCmd; }
+ TQString getHamCmd() const { return mHamCmd; }
+ TQString getDetectionHeader() const { return mDetectionHeader; }
+ TQString getDetectionPattern() const { return mDetectionPattern; }
+ TQString getDetectionPattern2() const { return mDetectionPattern2; }
+ TQString getServerPattern() const { return mServerPattern; }
bool isServerBased() const;
bool isDetectionOnly() const { return mDetectionOnly; }
bool isUseRegExp() const { return mUseRegExp; }
@@ -165,34 +165,34 @@ namespace KMail {
private:
// used to identifiy configs for the same tool
- QString mId;
+ TQString mId;
// The version of the config data, used for merging and
// detecting newer configs
int mVersion;
// the priority of the tool in the list presented to the user
int mPrio;
// the name as shown by the checkbox in the dialog page
- QString mVisibleName;
+ TQString mVisibleName;
// the command to check the existance of the tool
- QString mExecutable;
+ TQString mExecutable;
// the What's This help text (e.g. url for the tool)
- QString mWhatsThisText;
+ TQString mWhatsThisText;
// name for the created filter in the filter list
- QString mFilterName;
+ TQString mFilterName;
// pipe through cmd used to detect spam messages
- QString mDetectCmd;
+ TQString mDetectCmd;
// pipe through cmd to let the tool learn a spam message
- QString mSpamCmd;
+ TQString mSpamCmd;
// pipe through cmd to let the tool learn a ham message
- QString mHamCmd;
+ TQString mHamCmd;
// by which header are messages marked as spam
- QString mDetectionHeader;
+ TQString mDetectionHeader;
// what header pattern is used to mark spam messages
- QString mDetectionPattern;
+ TQString mDetectionPattern;
// what header pattern is used to mark unsure messages
- QString mDetectionPattern2;
+ TQString mDetectionPattern2;
// what header pattern is used in the account to check for a certain server
- QString mServerPattern;
+ TQString mServerPattern;
// filter cannot search actively but relies on pattern by regExp or contain rule
bool mDetectionOnly;
// filter searches for the pattern by regExp or contain rule
@@ -214,15 +214,15 @@ namespace KMail {
{
public:
ConfigReader( WizardMode mode,
- QValueList<SpamToolConfig> & configList );
+ TQValueList<SpamToolConfig> & configList );
~ConfigReader( );
- QValueList<SpamToolConfig> & getToolList() { return mToolList; }
+ TQValueList<SpamToolConfig> & getToolList() { return mToolList; }
void readAndMergeConfig();
private:
- QValueList<SpamToolConfig> & mToolList;
+ TQValueList<SpamToolConfig> & mToolList;
KConfig *mConfig;
WizardMode mMode;
@@ -250,15 +250,15 @@ namespace KMail {
private:
/* Check for the availability of an executible along the PATH */
- int checkForProgram( const QString &executable );
+ int checkForProgram( const TQString &executable );
/* generic checks if any option in a page is checked */
bool anyVirusOptionChecked();
/* convenience method calling the appropriate filter manager method */
- const QString uniqueNameFor( const QString & name );
+ const TQString uniqueNameFor( const TQString & name );
/* convenience method to sort out new and existing filters */
- void sortFilterOnExistance( const QString & intendedFilterName,
- QString & newFilters,
- QString & replaceFilters );
+ void sortFilterOnExistance( const TQString & intendedFilterName,
+ TQString & newFilters,
+ TQString & replaceFilters );
/* The pages in the wizard */
ASWizInfoPage * mInfoPage;
@@ -267,7 +267,7 @@ namespace KMail {
ASWizSummaryPage * mSummaryPage;
/* The configured tools and it's settings to be used in the wizard. */
- QValueList<SpamToolConfig> mToolList;
+ TQValueList<SpamToolConfig> mToolList;
/* Are any spam tools selected? */
bool mSpamToolsUsed;
@@ -282,15 +282,15 @@ namespace KMail {
class ASWizPage : public QWidget
{
public:
- ASWizPage( QWidget *parent, const char *name,
- const QString *bannerName = 0);
+ ASWizPage( TQWidget *parent, const char *name,
+ const TQString *bannerName = 0);
protected:
- QBoxLayout *mLayout;
+ TQBoxLayout *mLayout;
private:
- QPixmap *mPixmap;
- QLabel *mBannerLabel;
+ TQPixmap *mPixmap;
+ TQLabel *mBannerLabel;
};
@@ -301,11 +301,11 @@ namespace KMail {
public:
ASWizInfoPage( AntiSpamWizard::WizardMode mode,
- QWidget *parent, const char *name );
+ TQWidget *parent, const char *name );
- void setScanProgressText( const QString &toolName );
- void addAvailableTool( const QString &visibleName );
- bool isProgramSelected( const QString &visibleName );
+ void setScanProgressText( const TQString &toolName );
+ void addAvailableTool( const TQString &visibleName );
+ bool isProgramSelected( const TQString &visibleName );
private slots:
void processSelectionChange();
@@ -314,9 +314,9 @@ namespace KMail {
void selectionChanged();
private:
- QLabel *mIntroText;
- QLabel *mScanProgressText;
- QLabel *mSelectionHint;
+ TQLabel *mIntroText;
+ TQLabel *mScanProgressText;
+ TQLabel *mSelectionHint;
KListBox *mToolsList;
};
@@ -326,14 +326,14 @@ namespace KMail {
Q_OBJECT
public:
- ASWizSpamRulesPage( QWidget * parent, const char * name, KMFolderTree * mainFolderTree );
+ ASWizSpamRulesPage( TQWidget * parent, const char * name, KMFolderTree * mainFolderTree );
bool markAsReadSelected() const;
bool moveSpamSelected() const;
bool moveUnsureSelected() const;
- QString selectedSpamFolderName() const;
- QString selectedUnsureFolderName() const;
+ TQString selectedSpamFolderName() const;
+ TQString selectedUnsureFolderName() const;
void allowUnsureFolderSelection( bool enabled );
@@ -345,9 +345,9 @@ namespace KMail {
void selectionChanged();
private:
- QCheckBox * mMarkRules;
- QCheckBox * mMoveSpamRules;
- QCheckBox * mMoveUnsureRules;
+ TQCheckBox * mMarkRules;
+ TQCheckBox * mMoveSpamRules;
+ TQCheckBox * mMoveUnsureRules;
FolderRequester *mFolderReqForSpamFolder;
FolderRequester *mFolderReqForUnsureFolder;
};
@@ -358,13 +358,13 @@ namespace KMail {
Q_OBJECT
public:
- ASWizVirusRulesPage( QWidget * parent, const char * name, KMFolderTree * mainFolderTree );
+ ASWizVirusRulesPage( TQWidget * parent, const char * name, KMFolderTree * mainFolderTree );
bool pipeRulesSelected() const;
bool moveRulesSelected() const;
bool markReadRulesSelected() const;
- QString selectedFolderName() const;
+ TQString selectedFolderName() const;
private slots:
void processSelectionChange();
@@ -372,10 +372,10 @@ namespace KMail {
void selectionChanged();
private:
- QCheckBox * mPipeRules;
- QCheckBox * mMoveRules;
+ TQCheckBox * mPipeRules;
+ TQCheckBox * mMoveRules;
SimpleFolderTree *mFolderTree;
- QCheckBox * mMarkRules;
+ TQCheckBox * mMarkRules;
};
//---------------------------------------------------------------------------
@@ -384,12 +384,12 @@ namespace KMail {
Q_OBJECT
public:
- ASWizSummaryPage( QWidget * parent, const char * name );
+ ASWizSummaryPage( TQWidget * parent, const char * name );
- void setSummaryText( const QString & text );
+ void setSummaryText( const TQString & text );
private:
- QLabel * mSummaryText;
+ TQLabel * mSummaryText;
};
diff --git a/kmail/attachmentlistview.cpp b/kmail/attachmentlistview.cpp
index b7c8bdd2..11c53f12 100644
--- a/kmail/attachmentlistview.cpp
+++ b/kmail/attachmentlistview.cpp
@@ -34,12 +34,12 @@ using KPIM::MailListDrag;
#include <kurldrag.h>
// other Qt headers
-#include <qevent.h>
-#include <qcstring.h>
-#include <qbuffer.h>
-#include <qptrlist.h>
-#include <qdatastream.h>
-#include <qstring.h>
+#include <tqevent.h>
+#include <tqcstring.h>
+#include <tqbuffer.h>
+#include <tqptrlist.h>
+#include <tqdatastream.h>
+#include <tqstring.h>
// other headers (none)
@@ -47,7 +47,7 @@ using KPIM::MailListDrag;
namespace KMail {
AttachmentListView::AttachmentListView( KMail::Composer * composer,
- QWidget* parent,
+ TQWidget* parent,
const char* name )
: KListView( parent, name ),
mComposer( composer )
@@ -64,7 +64,7 @@ AttachmentListView::~AttachmentListView()
//-----------------------------------------------------------------------------
-void AttachmentListView::contentsDragEnterEvent( QDragEnterEvent* e )
+void AttachmentListView::contentsDragEnterEvent( TQDragEnterEvent* e )
{
if( e->provides( MailListDrag::format() ) || KURLDrag::canDecode( e ) )
e->accept( true );
@@ -74,7 +74,7 @@ void AttachmentListView::contentsDragEnterEvent( QDragEnterEvent* e )
//-----------------------------------------------------------------------------
-void AttachmentListView::contentsDragMoveEvent( QDragMoveEvent* e )
+void AttachmentListView::contentsDragMoveEvent( TQDragMoveEvent* e )
{
if( e->provides( MailListDrag::format() ) || KURLDrag::canDecode( e ) )
e->accept( true );
@@ -84,19 +84,19 @@ void AttachmentListView::contentsDragMoveEvent( QDragMoveEvent* e )
//-----------------------------------------------------------------------------
-void AttachmentListView::contentsDropEvent( QDropEvent* e )
+void AttachmentListView::contentsDropEvent( TQDropEvent* e )
{
if( e->provides( MailListDrag::format() ) ) {
// Decode the list of serial numbers stored as the drag data
- QByteArray serNums;
+ TQByteArray serNums;
MailListDrag::decode( e, serNums );
- QBuffer serNumBuffer( serNums );
+ TQBuffer serNumBuffer( serNums );
serNumBuffer.open( IO_ReadOnly );
- QDataStream serNumStream( &serNumBuffer );
+ TQDataStream serNumStream( &serNumBuffer );
Q_UINT32 serNum;
KMFolder *folder = 0;
int idx;
- QPtrList<KMMsgBase> messageList;
+ TQPtrList<KMMsgBase> messageList;
while( !serNumStream.atEnd() ) {
KMMsgBase *msgBase = 0;
serNumStream >> serNum;
@@ -128,7 +128,7 @@ void AttachmentListView::contentsDropEvent( QDropEvent* e )
//-----------------------------------------------------------------------------
-void AttachmentListView::keyPressEvent( QKeyEvent * e )
+void AttachmentListView::keyPressEvent( TQKeyEvent * e )
{
if ( e->key() == Key_Delete ) {
emit attachmentDeleted();
diff --git a/kmail/attachmentlistview.h b/kmail/attachmentlistview.h
index 23ee6713..cd9a6e56 100644
--- a/kmail/attachmentlistview.h
+++ b/kmail/attachmentlistview.h
@@ -31,17 +31,17 @@ class AttachmentListView : public KListView
{
Q_OBJECT
public:
- AttachmentListView( KMail::Composer * composer = 0, QWidget* parent = 0,
+ AttachmentListView( KMail::Composer * composer = 0, TQWidget* parent = 0,
const char* name = 0 );
virtual ~AttachmentListView();
/** Drag and drop methods */
- void contentsDragEnterEvent( QDragEnterEvent* );
- void contentsDragMoveEvent( QDragMoveEvent* );
- void contentsDropEvent( QDropEvent* );
+ void contentsDragEnterEvent( TQDragEnterEvent* );
+ void contentsDragMoveEvent( TQDragMoveEvent* );
+ void contentsDropEvent( TQDropEvent* );
protected:
- virtual void keyPressEvent( QKeyEvent * e );
+ virtual void keyPressEvent( TQKeyEvent * e );
virtual void startDrag();
private:
diff --git a/kmail/attachmentstrategy.cpp b/kmail/attachmentstrategy.cpp
index 37584d84..8d1e59a9 100644
--- a/kmail/attachmentstrategy.cpp
+++ b/kmail/attachmentstrategy.cpp
@@ -38,7 +38,7 @@
#include "partNode.h"
#include "kmmsgpart.h"
-#include <qstring.h>
+#include <tqstring.h>
#include <kdebug.h>
@@ -166,8 +166,8 @@ namespace KMail {
return 0; // make compiler happy
}
- const AttachmentStrategy * AttachmentStrategy::create( const QString & type ) {
- QString lowerType = type.lower();
+ const AttachmentStrategy * AttachmentStrategy::create( const TQString & type ) {
+ TQString lowerType = type.lower();
if ( lowerType == "iconic" ) return iconic();
//if ( lowerType == "smart" ) return smart(); // not needed, see below
if ( lowerType == "inlined" ) return inlined();
diff --git a/kmail/attachmentstrategy.h b/kmail/attachmentstrategy.h
index bcd29cfd..7d052b69 100644
--- a/kmail/attachmentstrategy.h
+++ b/kmail/attachmentstrategy.h
@@ -49,7 +49,7 @@ namespace KMail {
enum Type { Iconic, Smart, Inlined, Hidden };
static const AttachmentStrategy * create( Type type );
- static const AttachmentStrategy * create( const QString & type );
+ static const AttachmentStrategy * create( const TQString & type );
static const AttachmentStrategy * iconic();
static const AttachmentStrategy * smart();
diff --git a/kmail/bodypartformatterfactory.cpp b/kmail/bodypartformatterfactory.cpp
index 24ee2fba..680d0c48 100644
--- a/kmail/bodypartformatterfactory.cpp
+++ b/kmail/bodypartformatterfactory.cpp
@@ -45,9 +45,9 @@ using namespace KMail::BodyPartFormatterFactoryPrivate;
#include <kdebug.h>
// Qt
-#include <qstring.h>
-#include <qcstring.h>
-#include <qstringlist.h>
+#include <tqstring.h>
+#include <tqcstring.h>
+#include <tqstringlist.h>
#include <assert.h>
@@ -108,9 +108,9 @@ static void loadPlugins() {
kdWarning( 5006 ) << "BodyPartFormatterFactory: cannot instantiate plugin loader!" << endl;
return;
}
- const QStringList types = pl->types();
+ const TQStringList types = pl->types();
kdDebug( 5006 ) << "BodyPartFormatterFactory: found " << types.size() << " plugins." << endl;
- for ( QStringList::const_iterator it = types.begin() ; it != types.end() ; ++it ) {
+ for ( TQStringList::const_iterator it = types.begin() ; it != types.end() ; ++it ) {
const KMail::Interface::BodyPartFormatterPlugin * plugin = pl->createForName( *it );
if ( !plugin ) {
kdWarning( 5006 ) << "BodyPartFormatterFactory: plugin \"" << *it << "\" is not valid!" << endl;
@@ -182,10 +182,10 @@ const KMail::Interface::BodyPartFormatter * KMail::BodyPartFormatterFactory::cre
return (*subtype_it).second;
}
-const KMail::Interface::BodyPartFormatter * KMail::BodyPartFormatterFactory::createFor( const QString & type, const QString & subtype ) const {
+const KMail::Interface::BodyPartFormatter * KMail::BodyPartFormatterFactory::createFor( const TQString & type, const TQString & subtype ) const {
return createFor( type.latin1(), subtype.latin1() );
}
-const KMail::Interface::BodyPartFormatter * KMail::BodyPartFormatterFactory::createFor( const QCString & type, const QCString & subtype ) const {
+const KMail::Interface::BodyPartFormatter * KMail::BodyPartFormatterFactory::createFor( const TQCString & type, const TQCString & subtype ) const {
return createFor( type.data(), subtype.data() );
}
diff --git a/kmail/bodypartformatterfactory.h b/kmail/bodypartformatterfactory.h
index 63f43bd7..4763a7d8 100644
--- a/kmail/bodypartformatterfactory.h
+++ b/kmail/bodypartformatterfactory.h
@@ -52,8 +52,8 @@ namespace KMail {
static const BodyPartFormatterFactory * instance();
const Interface::BodyPartFormatter * createFor( const char * type, const char * subtype ) const;
- const Interface::BodyPartFormatter * createFor( const QString & type, const QString & subtype ) const;
- const Interface::BodyPartFormatter * createFor( const QCString & type, const QCString & subtype ) const;
+ const Interface::BodyPartFormatter * createFor( const TQString & type, const TQString & subtype ) const;
+ const Interface::BodyPartFormatter * createFor( const TQCString & type, const TQCString & subtype ) const;
//
// Only boring stuff below:
diff --git a/kmail/bodypartformatterfactory_p.h b/kmail/bodypartformatterfactory_p.h
index 7171ba29..7ca101ab 100644
--- a/kmail/bodypartformatterfactory_p.h
+++ b/kmail/bodypartformatterfactory_p.h
@@ -34,7 +34,7 @@
#ifndef __KMAIL_BODYPARTFORMATTERFACTORY_P_H__
#define __KMAIL_BODYPARTFORMATTERFACTORY_P_H__
-#include <qcstring.h>
+#include <tqcstring.h>
#include <map>
diff --git a/kmail/bodyvisitor.cpp b/kmail/bodyvisitor.cpp
index 99af6619..04b7a98b 100644
--- a/kmail/bodyvisitor.cpp
+++ b/kmail/bodyvisitor.cpp
@@ -61,16 +61,16 @@ namespace KMail {
}
//-----------------------------------------------------------------------------
- void BodyVisitor::visit( QPtrList<KMMessagePart> & list )
+ void BodyVisitor::visit( TQPtrList<KMMessagePart> & list )
{
mParts = list;
}
//-----------------------------------------------------------------------------
- QPtrList<KMMessagePart> BodyVisitor::partsToLoad()
+ TQPtrList<KMMessagePart> BodyVisitor::partsToLoad()
{
- QPtrListIterator<KMMessagePart> it( mParts );
- QPtrList<KMMessagePart> selected;
+ TQPtrListIterator<KMMessagePart> it( mParts );
+ TQPtrList<KMMessagePart> selected;
KMMessagePart *part = 0;
bool headerCheck = false;
while ( (part = it.current()) != 0 )
@@ -100,7 +100,7 @@ namespace KMail {
// from imap. As we probably need to load the header (e.g. in smart or inline mode)
// we add a fake part that is not included in the message itself
KMMessagePart *fake = new KMMessagePart();
- QString partId = part->partSpecifier().section( '.', 0, -2 )+".HEADER";
+ TQString partId = part->partSpecifier().section( '.', 0, -2 )+".HEADER";
fake->setPartSpecifier( partId );
fake->setOriginalContentTypeStr("");
fake->setLoadPart( true );
diff --git a/kmail/bodyvisitor.h b/kmail/bodyvisitor.h
index fa5d2fb5..519dd86c 100644
--- a/kmail/bodyvisitor.h
+++ b/kmail/bodyvisitor.h
@@ -31,8 +31,8 @@
#ifndef bodyiterator_h
#define bodyiterator_h
-#include <qptrlist.h>
-#include <qstringlist.h>
+#include <tqptrlist.h>
+#include <tqstringlist.h>
class KMMessagePart;
@@ -49,10 +49,10 @@ namespace KMail {
/** Register the parts that should be visited */
void visit( KMMessagePart * part );
- void visit( QPtrList<KMMessagePart> & list );
+ void visit( TQPtrList<KMMessagePart> & list );
/** Returns a list of parts that should be loaded */
- QPtrList<KMMessagePart> partsToLoad();
+ TQPtrList<KMMessagePart> partsToLoad();
/** Decides whether a part should be loaded.
This needs to be implemented by a subclass */
@@ -66,8 +66,8 @@ namespace KMail {
static bool parentNeedsLoading( KMMessagePart * part );
protected:
- QPtrList<KMMessagePart> mParts;
- QStringList mBasicList;
+ TQPtrList<KMMessagePart> mParts;
+ TQStringList mBasicList;
};
// Factory to create a visitor according to the Attachment Strategy
diff --git a/kmail/cachedimapjob.cpp b/kmail/cachedimapjob.cpp
index 8c633961..3b8ff411 100644
--- a/kmail/cachedimapjob.cpp
+++ b/kmail/cachedimapjob.cpp
@@ -57,35 +57,35 @@
namespace KMail {
// Get messages
-CachedImapJob::CachedImapJob( const QValueList<MsgForDownload>& msgs,
+CachedImapJob::CachedImapJob( const TQValueList<MsgForDownload>& msgs,
JobType type, KMFolderCachedImap* folder )
: FolderJob( type ), mFolder( folder ), mMsgsForDownload( msgs ),
mTotalBytes(0), mMsg(0), mParentFolder( 0 )
{
- QValueList<MsgForDownload>::ConstIterator it = msgs.begin();
+ TQValueList<MsgForDownload>::ConstIterator it = msgs.begin();
for ( ; it != msgs.end() ; ++it )
mTotalBytes += (*it).size;
}
// Put messages
-CachedImapJob::CachedImapJob( const QPtrList<KMMessage>& msgs, JobType type,
+CachedImapJob::CachedImapJob( const TQPtrList<KMMessage>& msgs, JobType type,
KMFolderCachedImap* folder )
- : FolderJob( msgs, QString::null, type, folder?folder->folder():0 ), mFolder( folder ),
+ : FolderJob( msgs, TQString::null, type, folder?folder->folder():0 ), mFolder( folder ),
mTotalBytes( msgs.count() ), // we abuse it as "total number of messages"
mMsg( 0 ), mParentFolder( 0 )
{
}
-CachedImapJob::CachedImapJob( const QValueList<unsigned long>& msgs,
+CachedImapJob::CachedImapJob( const TQValueList<unsigned long>& msgs,
JobType type, KMFolderCachedImap* folder )
- : FolderJob( QPtrList<KMMessage>(), QString::null, type, folder?folder->folder():0 ),
+ : FolderJob( TQPtrList<KMMessage>(), TQString::null, type, folder?folder->folder():0 ),
mFolder( folder ), mSerNumMsgList( msgs ), mTotalBytes( msgs.count() ), mMsg( 0 ),
mParentFolder ( 0 )
{
}
// Add sub folders
-CachedImapJob::CachedImapJob( const QValueList<KMFolderCachedImap*>& fList,
+CachedImapJob::CachedImapJob( const TQValueList<KMFolderCachedImap*>& fList,
JobType type, KMFolderCachedImap* folder )
: FolderJob( type ), mFolder( folder ), mFolderList( fList ), mMsg( 0 ),
mParentFolder ( 0 )
@@ -93,7 +93,7 @@ CachedImapJob::CachedImapJob( const QValueList<KMFolderCachedImap*>& fList,
}
// Rename folder
-CachedImapJob::CachedImapJob( const QString& string1, JobType type,
+CachedImapJob::CachedImapJob( const TQString& string1, JobType type,
KMFolderCachedImap* folder )
: FolderJob( type ), mFolder(folder), mMsg( 0 ), mString( string1 ),
mParentFolder ( 0 )
@@ -103,7 +103,7 @@ CachedImapJob::CachedImapJob( const QString& string1, JobType type,
}
// Delete folders or messages
-CachedImapJob::CachedImapJob( const QStringList& foldersOrMsgs, JobType type,
+CachedImapJob::CachedImapJob( const TQStringList& foldersOrMsgs, JobType type,
KMFolderCachedImap* folder )
: FolderJob( type ), mFolder( folder ), mFoldersOrMessages( foldersOrMsgs ),
mMsg( 0 ), mParentFolder( 0 )
@@ -155,11 +155,11 @@ void CachedImapJob::execute()
*/
if ( mAccount->groupwareType() == KMAcctCachedImap::GroupwareScalix ) {
if ( !mAccount->sentCustomLoginCommand() ) {
- QByteArray packedArgs;
- QDataStream stream( packedArgs, IO_WriteOnly );
+ TQByteArray packedArgs;
+ TQDataStream stream( packedArgs, IO_WriteOnly );
- const QString command = QString( "X-SCALIX-ID " );
- const QString argument = QString( "(\"name\" \"Evolution\" \"version\" \"2.10.0\")" );
+ const TQString command = TQString( "X-SCALIX-ID " );
+ const TQString argument = TQString( "(\"name\" \"Evolution\" \"version\" \"2.10.0\")" );
stream << (int) 'X' << 'N' << command << argument;
@@ -200,11 +200,11 @@ void CachedImapJob::listMessages()
ImapAccountBase::jobData jd( url.url(), mFolder->folder() );
jd.cancellable = true;
mAccount->insertJob( job, jd );
- connect( job, SIGNAL( result(KIO::Job *) ),
- this, SLOT( slotListMessagesResult( KIO::Job* ) ) );
+ connect( job, TQT_SIGNAL( result(KIO::Job *) ),
+ this, TQT_SLOT( slotListMessagesResult( KIO::Job* ) ) );
// send the data directly for KMFolderCachedImap
- connect( job, SIGNAL( data( KIO::Job*, const QByteArray& ) ),
- mFolder, SLOT( slotGetMessagesData( KIO::Job* , const QByteArray& ) ) );
+ connect( job, TQT_SIGNAL( data( KIO::Job*, const TQByteArray& ) ),
+ mFolder, TQT_SLOT( slotGetMessagesData( KIO::Job* , const TQByteArray& ) ) );
}
void CachedImapJob::slotDeleteNextMessages( KIO::Job* job )
@@ -230,32 +230,32 @@ void CachedImapJob::slotDeleteNextMessages( KIO::Job* job )
return;
}
- QString uids = mFoldersOrMessages.front(); mFoldersOrMessages.pop_front();
+ TQString uids = mFoldersOrMessages.front(); mFoldersOrMessages.pop_front();
KURL url = mAccount->getUrl();
url.setPath( mFolder->imapPath() +
- QString::fromLatin1(";UID=%1").arg(uids) );
+ TQString::fromLatin1(";UID=%1").arg(uids) );
KIO::SimpleJob *simpleJob = KIO::file_delete( url, false );
KIO::Scheduler::assignJobToSlave( mAccount->slave(), simpleJob );
ImapAccountBase::jobData jd( url.url(), mFolder->folder() );
mAccount->insertJob( simpleJob, jd );
- connect( simpleJob, SIGNAL( result(KIO::Job *) ),
- this, SLOT( slotDeleteNextMessages(KIO::Job *) ) );
+ connect( simpleJob, TQT_SIGNAL( result(KIO::Job *) ),
+ this, TQT_SLOT( slotDeleteNextMessages(KIO::Job *) ) );
}
void CachedImapJob::expungeFolder()
{
KURL url = mAccount->getUrl();
// Special URL that means EXPUNGE
- url.setPath( mFolder->imapPath() + QString::fromLatin1(";UID=*") );
+ url.setPath( mFolder->imapPath() + TQString::fromLatin1(";UID=*") );
KIO::SimpleJob *job = KIO::file_delete( url, false );
KIO::Scheduler::assignJobToSlave( mAccount->slave(), job );
ImapAccountBase::jobData jd( url.url(), mFolder->folder() );
mAccount->insertJob( job, jd );
- connect( job, SIGNAL( result(KIO::Job *) ),
- this, SLOT( slotExpungeResult(KIO::Job *) ) );
+ connect( job, TQT_SIGNAL( result(KIO::Job *) ),
+ this, TQT_SLOT( slotExpungeResult(KIO::Job *) ) );
}
void CachedImapJob::slotExpungeResult( KIO::Job * job )
@@ -341,7 +341,7 @@ void CachedImapJob::slotGetNextMessage(KIO::Job * job)
if( mfd.flags > 0 )
KMFolderImap::flagsToStatus(mMsg, mfd.flags, true, GlobalSettings::allowLocalFlags() ? mFolder->permanentFlags() : INT_MAX);
KURL url = mAccount->getUrl();
- url.setPath(mFolder->imapPath() + QString(";UID=%1;SECTION=BODY.PEEK[]").arg(mfd.uid));
+ url.setPath(mFolder->imapPath() + TQString(";UID=%1;SECTION=BODY.PEEK[]").arg(mfd.uid));
ImapAccountBase::jobData jd( url.url(), mFolder->folder() );
jd.cancellable = true;
@@ -349,12 +349,12 @@ void CachedImapJob::slotGetNextMessage(KIO::Job * job)
KIO::SimpleJob *simpleJob = KIO::get(url, false, false);
KIO::Scheduler::assignJobToSlave(mAccount->slave(), simpleJob);
mAccount->insertJob(simpleJob, jd);
- connect(simpleJob, SIGNAL(processedSize(KIO::Job *, KIO::filesize_t)),
- this, SLOT(slotProcessedSize(KIO::Job *, KIO::filesize_t)));
- connect(simpleJob, SIGNAL(result(KIO::Job *)),
- this, SLOT(slotGetNextMessage(KIO::Job *)));
- connect(simpleJob, SIGNAL(data(KIO::Job *, const QByteArray &)),
- mFolder, SLOT(slotSimpleData(KIO::Job *, const QByteArray &)));
+ connect(simpleJob, TQT_SIGNAL(processedSize(KIO::Job *, KIO::filesize_t)),
+ this, TQT_SLOT(slotProcessedSize(KIO::Job *, KIO::filesize_t)));
+ connect(simpleJob, TQT_SIGNAL(result(KIO::Job *)),
+ this, TQT_SLOT(slotGetNextMessage(KIO::Job *)));
+ connect(simpleJob, TQT_SIGNAL(data(KIO::Job *, const TQByteArray &)),
+ mFolder, TQT_SLOT(slotSimpleData(KIO::Job *, const TQByteArray &)));
}
void CachedImapJob::slotProcessedSize(KIO::Job *, KIO::filesize_t processed)
@@ -394,17 +394,17 @@ void CachedImapJob::slotPutNextMessage()
}
KURL url = mAccount->getUrl();
- QString flags = KMFolderImap::statusToFlags( mMsg->status(), mFolder->permanentFlags() );
+ TQString flags = KMFolderImap::statusToFlags( mMsg->status(), mFolder->permanentFlags() );
url.setPath( mFolder->imapPath() + ";SECTION=" + flags );
ImapAccountBase::jobData jd( url.url(), mFolder->folder() );
mMsg->setUID( 0 ); // for the index
- QCString cstr(mMsg->asString());
+ TQCString cstr(mMsg->asString());
int a = cstr.find("\nX-UID: ");
int b = cstr.find('\n', a);
if (a != -1 && b != -1 && cstr.find("\n\n") > a) cstr.remove(a, b-a);
- QCString mData(cstr.length() + cstr.contains('\n'));
+ TQCString mData(cstr.length() + cstr.contains('\n'));
unsigned int i = 0;
for( char *ch = cstr.data(); *ch; ch++ ) {
if ( *ch == '\n' ) {
@@ -420,20 +420,20 @@ void CachedImapJob::slotPutNextMessage()
KIO::SimpleJob *simpleJob = KIO::put(url, 0, false, false, false);
KIO::Scheduler::assignJobToSlave(mAccount->slave(), simpleJob);
mAccount->insertJob(simpleJob, jd);
- connect( simpleJob, SIGNAL( result(KIO::Job *) ),
- SLOT( slotPutMessageResult(KIO::Job *) ) );
- connect( simpleJob, SIGNAL( dataReq(KIO::Job *, QByteArray &) ),
- SLOT( slotPutMessageDataReq(KIO::Job *, QByteArray &) ) );
- connect( simpleJob, SIGNAL( data(KIO::Job *, const QByteArray &) ),
- mFolder, SLOT( slotSimpleData(KIO::Job *, const QByteArray &) ) );
- connect( simpleJob, SIGNAL(infoMessage(KIO::Job *, const QString &)),
- SLOT(slotPutMessageInfoData(KIO::Job *, const QString &)) );
+ connect( simpleJob, TQT_SIGNAL( result(KIO::Job *) ),
+ TQT_SLOT( slotPutMessageResult(KIO::Job *) ) );
+ connect( simpleJob, TQT_SIGNAL( dataReq(KIO::Job *, TQByteArray &) ),
+ TQT_SLOT( slotPutMessageDataReq(KIO::Job *, TQByteArray &) ) );
+ connect( simpleJob, TQT_SIGNAL( data(KIO::Job *, const TQByteArray &) ),
+ mFolder, TQT_SLOT( slotSimpleData(KIO::Job *, const TQByteArray &) ) );
+ connect( simpleJob, TQT_SIGNAL(infoMessage(KIO::Job *, const TQString &)),
+ TQT_SLOT(slotPutMessageInfoData(KIO::Job *, const TQString &)) );
}
//-----------------------------------------------------------------------------
// TODO: port to KIO::StoredTransferJob once it's ok to require kdelibs-3.3
-void CachedImapJob::slotPutMessageDataReq(KIO::Job *job, QByteArray &data)
+void CachedImapJob::slotPutMessageDataReq(KIO::Job *job, TQByteArray &data)
{
KMAcctCachedImap::JobIterator it = mAccount->findJob(job);
if ( it == mAccount->jobsEnd() ) { // Shouldn't happen
@@ -452,7 +452,7 @@ void CachedImapJob::slotPutMessageDataReq(KIO::Job *job, QByteArray &data)
}
//----------------------------------------------------------------------------
-void CachedImapJob::slotPutMessageInfoData(KIO::Job *job, const QString &data)
+void CachedImapJob::slotPutMessageInfoData(KIO::Job *job, const TQString &data)
{
KMFolderCachedImap * imapFolder = static_cast<KMFolderCachedImap*>(mDestFolder->storage());
KMAcctCachedImap *account = imapFolder->account();
@@ -535,7 +535,7 @@ void CachedImapJob::slotAddNextSubfolder( KIO::Job * job )
static_cast<KMFolderCachedImap*>((*it).parent->storage())->setSilentUpload( false );
if ( job->error() && !silentUpload ) {
- QString myError = "<p><b>" + i18n("Error while uploading folder")
+ TQString myError = "<p><b>" + i18n("Error while uploading folder")
+ "</b></p><p>" + i18n("Could not make the folder <b>%1</b> on the server.").arg((*it).items[0])
+ "</p><p>" + i18n("This could be because you do not have permission to do this, or because the folder is already present on the server; the error message from the server communication is here:") + "</p>";
mAccount->handleJobError( job, myError );
@@ -550,7 +550,7 @@ void CachedImapJob::slotAddNextSubfolder( KIO::Job * job )
Q_ASSERT( storage );
Q_ASSERT( parentStorage );
if ( storage->imapPath().isEmpty() ) {
- QString path = mAccount->createImapPath( parentStorage->imapPath(), storage->folder()->name() );
+ TQString path = mAccount->createImapPath( parentStorage->imapPath(), storage->folder()->name() );
if ( !storage->imapPathForCreation().isEmpty() )
path = storage->imapPathForCreation();
storage->setImapPath( path );
@@ -569,7 +569,7 @@ void CachedImapJob::slotAddNextSubfolder( KIO::Job * job )
KMFolderCachedImap *folder = mFolderList.front();
mFolderList.pop_front();
KURL url = mAccount->getUrl();
- QString path = mAccount->createImapPath( mFolder->imapPath(),
+ TQString path = mAccount->createImapPath( mFolder->imapPath(),
folder->folder()->name() );
if ( !folder->imapPathForCreation().isEmpty() ) {
// the folder knows it's namespace
@@ -587,14 +587,14 @@ void CachedImapJob::slotAddNextSubfolder( KIO::Job * job )
KIO::SimpleJob *simpleJob = KIO::mkdir(url);
KIO::Scheduler::assignJobToSlave(mAccount->slave(), simpleJob);
mAccount->insertJob(simpleJob, jd);
- connect( simpleJob, SIGNAL(result(KIO::Job *)),
- this, SLOT(slotAddNextSubfolder(KIO::Job *)) );
+ connect( simpleJob, TQT_SIGNAL(result(KIO::Job *)),
+ this, TQT_SLOT(slotAddNextSubfolder(KIO::Job *)) );
} else {
- QByteArray packedArgs;
- QDataStream stream( packedArgs, IO_WriteOnly );
+ TQByteArray packedArgs;
+ TQDataStream stream( packedArgs, IO_WriteOnly );
- const QString command = QString( "X-CREATE-SPECIAL" );
- const QString argument = QString( "%1 %2" ).arg( Scalix::Utils::contentsTypeToScalixId( folder->contentsType() ) )
+ const TQString command = TQString( "X-CREATE-SPECIAL" );
+ const TQString argument = TQString( "%1 %2" ).arg( Scalix::Utils::contentsTypeToScalixId( folder->contentsType() ) )
.arg( path );
stream << (int) 'X' << 'N' << command << argument;
@@ -605,8 +605,8 @@ void CachedImapJob::slotAddNextSubfolder( KIO::Job * job )
KIO::SimpleJob *simpleJob = KIO::special( url.url(), packedArgs, false );
KIO::Scheduler::assignJobToSlave(mAccount->slave(), simpleJob);
mAccount->insertJob(simpleJob, jd);
- connect( simpleJob, SIGNAL(result(KIO::Job *)),
- this, SLOT(slotAddNextSubfolder(KIO::Job *)) );
+ connect( simpleJob, TQT_SIGNAL(result(KIO::Job *)),
+ this, TQT_SLOT(slotAddNextSubfolder(KIO::Job *)) );
}
}
@@ -636,7 +636,7 @@ void CachedImapJob::slotDeleteNextFolder( KIO::Job *job )
return;
}
- QString folderPath = mFoldersOrMessages.front();
+ TQString folderPath = mFoldersOrMessages.front();
mFoldersOrMessages.pop_front();
KURL url = mAccount->getUrl();
url.setPath(folderPath);
@@ -645,8 +645,8 @@ void CachedImapJob::slotDeleteNextFolder( KIO::Job *job )
KIO::SimpleJob *simpleJob = KIO::file_delete(url, false);
KIO::Scheduler::assignJobToSlave(mAccount->slave(), simpleJob);
mAccount->insertJob(simpleJob, jd);
- connect( simpleJob, SIGNAL( result(KIO::Job *) ),
- SLOT( slotDeleteNextFolder(KIO::Job *) ) );
+ connect( simpleJob, TQT_SIGNAL( result(KIO::Job *) ),
+ TQT_SLOT( slotDeleteNextFolder(KIO::Job *) ) );
}
void CachedImapJob::checkUidValidity()
@@ -660,10 +660,10 @@ void CachedImapJob::checkUidValidity()
KIO::SimpleJob *job = KIO::get( url, false, false );
KIO::Scheduler::assignJobToSlave( mAccount->slave(), job );
mAccount->insertJob( job, jd );
- connect( job, SIGNAL(result(KIO::Job *)),
- SLOT(slotCheckUidValidityResult(KIO::Job *)) );
- connect( job, SIGNAL(data(KIO::Job *, const QByteArray &)),
- mFolder, SLOT(slotSimpleData(KIO::Job *, const QByteArray &)));
+ connect( job, TQT_SIGNAL(result(KIO::Job *)),
+ TQT_SLOT(slotCheckUidValidityResult(KIO::Job *)) );
+ connect( job, TQT_SIGNAL(data(KIO::Job *, const TQByteArray &)),
+ mFolder, TQT_SLOT(slotSimpleData(KIO::Job *, const TQByteArray &)));
}
void CachedImapJob::slotCheckUidValidityResult(KIO::Job * job)
@@ -682,7 +682,7 @@ void CachedImapJob::slotCheckUidValidityResult(KIO::Job * job)
}
// Check the uidValidity
- QCString cstr((*it).data.data(), (*it).data.size() + 1);
+ TQCString cstr((*it).data.data(), (*it).data.size() + 1);
int a = cstr.find("X-uidValidity: ");
if (a < 0) {
// Something is seriously rotten here!
@@ -693,7 +693,7 @@ void CachedImapJob::slotCheckUidValidityResult(KIO::Job * job)
else {
int b = cstr.find("\r\n", a);
if ( (b - a - 15) >= 0 ) {
- QString uidv = cstr.mid(a + 15, b - a - 15);
+ TQString uidv = cstr.mid(a + 15, b - a - 15);
// kdDebug(5006) << "New uidv = " << uidv << ", old uidv = "
// << mFolder->uidValidity() << endl;
if( !mFolder->uidValidity().isEmpty() && mFolder->uidValidity() != uidv ) {
@@ -726,7 +726,7 @@ void CachedImapJob::slotCheckUidValidityResult(KIO::Job * job)
}
-void CachedImapJob::renameFolder( const QString &newName )
+void CachedImapJob::renameFolder( const TQString &newName )
{
// Set the source URL
KURL urlSrc = mAccount->getUrl();
@@ -734,7 +734,7 @@ void CachedImapJob::renameFolder( const QString &newName )
// Set the destination URL - this is a bit trickier
KURL urlDst = mAccount->getUrl();
- QString imapPath( mFolder->imapPath() );
+ TQString imapPath( mFolder->imapPath() );
// Destination url = old imappath - oldname + new name
imapPath.truncate( imapPath.length() - mFolder->folder()->name().length() - 1);
imapPath += newName + '/';
@@ -746,12 +746,12 @@ void CachedImapJob::renameFolder( const QString &newName )
KIO::SimpleJob *simpleJob = KIO::rename( urlSrc, urlDst, false );
KIO::Scheduler::assignJobToSlave( mAccount->slave(), simpleJob );
mAccount->insertJob( simpleJob, jd );
- connect( simpleJob, SIGNAL(result(KIO::Job *)),
- SLOT(slotRenameFolderResult(KIO::Job *)) );
+ connect( simpleJob, TQT_SIGNAL(result(KIO::Job *)),
+ TQT_SLOT(slotRenameFolderResult(KIO::Job *)) );
}
-static void renameChildFolders( KMFolderDir* dir, const QString& oldPath,
- const QString& newPath )
+static void renameChildFolders( KMFolderDir* dir, const TQString& oldPath,
+ const TQString& newPath )
{
if( dir ) {
KMFolderNode *node = dir->first();
@@ -762,7 +762,7 @@ static void renameChildFolders( KMFolderDir* dir, const QString& oldPath,
if ( !imapFolder->imapPath().isEmpty() )
// Only rename folders that have been accepted by the server
if( imapFolder->imapPath().find( oldPath ) == 0 ) {
- QString p = imapFolder->imapPath();
+ TQString p = imapFolder->imapPath();
p = p.mid( oldPath.length() );
p.prepend( newPath );
imapFolder->setImapPath( p );
@@ -785,7 +785,7 @@ void CachedImapJob::slotRenameFolderResult( KIO::Job *job )
if( job->error() ) {
// Error, revert label change
- QMap<QString, KMAcctCachedImap::RenamedFolder>::ConstIterator renit = mAccount->renamedFolders().find( mFolder->imapPath() );
+ TQMap<TQString, KMAcctCachedImap::RenamedFolder>::ConstIterator renit = mAccount->renamedFolders().find( mFolder->imapPath() );
Q_ASSERT( renit != mAccount->renamedFolders().end() );
if ( renit != mAccount->renamedFolders().end() ) {
mFolder->folder()->setLabel( (*renit).mOldLabel );
@@ -795,14 +795,14 @@ void CachedImapJob::slotRenameFolderResult( KIO::Job *job )
} else {
// Okay, the folder seems to be renamed on the server,
// now rename it on disk
- QString oldName = mFolder->name();
- QString oldPath = mFolder->imapPath();
+ TQString oldName = mFolder->name();
+ TQString oldPath = mFolder->imapPath();
mAccount->removeRenamedFolder( oldPath );
mFolder->setImapPath( (*it).path );
mFolder->FolderStorage::rename( (*it).url );
if( oldPath.endsWith( "/" ) ) oldPath.truncate( oldPath.length() -1 );
- QString newPath = mFolder->imapPath();
+ TQString newPath = mFolder->imapPath();
if( newPath.endsWith( "/" ) ) newPath.truncate( newPath.length() -1 );
renameChildFolders( mFolder->folder()->child(), oldPath, newPath );
kmkernel->dimapFolderMgr()->contentsChanged();
diff --git a/kmail/cachedimapjob.h b/kmail/cachedimapjob.h
index ad5579a0..6581ec74 100644
--- a/kmail/cachedimapjob.h
+++ b/kmail/cachedimapjob.h
@@ -48,9 +48,9 @@
#include <kio/job.h>
#include <kio/global.h>
-#include <qptrlist.h>
-#include <qvaluelist.h>
-#include <qcstring.h>
+#include <tqptrlist.h>
+#include <tqvaluelist.h>
+#include <tqcstring.h>
class KMFolderCachedImap;
class KMAcctCachedImap;
@@ -63,7 +63,7 @@ class CachedImapJob : public FolderJob {
public:
/** Information about a message to be downloaded (from the 'IMAP envelope') */
struct MsgForDownload {
- MsgForDownload() : uid(0),flags(0),size(0) {} // for QValueList only
+ MsgForDownload() : uid(0),flags(0),size(0) {} // for TQValueList only
MsgForDownload( ulong _uid, int _flags, ulong _size )
: uid(_uid), flags(_flags), size(_size) {}
ulong uid;
@@ -72,22 +72,22 @@ public:
};
// Get messages
- CachedImapJob( const QValueList<MsgForDownload>& msgs,
+ CachedImapJob( const TQValueList<MsgForDownload>& msgs,
JobType type = tGetMessage, KMFolderCachedImap* folder = 0 );
// Put messages
- CachedImapJob( const QPtrList<KMMessage>& msgs,
+ CachedImapJob( const TQPtrList<KMMessage>& msgs,
JobType type, KMFolderCachedImap* folder=0 );
- CachedImapJob( const QValueList<unsigned long>& msgs,
+ CachedImapJob( const TQValueList<unsigned long>& msgs,
JobType type, KMFolderCachedImap* folder=0 );
// Add sub folders
- CachedImapJob( const QValueList<KMFolderCachedImap*>& folders,
+ CachedImapJob( const TQValueList<KMFolderCachedImap*>& folders,
JobType type = tAddSubfolders,
KMFolderCachedImap* folder = 0 );
// Rename folder
- CachedImapJob( const QString& string1, JobType type,
+ CachedImapJob( const TQString& string1, JobType type,
KMFolderCachedImap* folder );
// Delete folders or messages
- CachedImapJob( const QStringList& foldersOrMsgs, JobType type,
+ CachedImapJob( const TQStringList& foldersOrMsgs, JobType type,
KMFolderCachedImap* folder );
// Other jobs (list messages,expunge folder, check uid validity)
CachedImapJob( JobType type, KMFolderCachedImap* folder );
@@ -104,16 +104,16 @@ protected:
virtual void execute();
void expungeFolder();
void checkUidValidity();
- void renameFolder( const QString &newName );
+ void renameFolder( const TQString &newName );
void listMessages();
protected slots:
virtual void slotGetNextMessage( KIO::Job *job = 0 );
virtual void slotAddNextSubfolder( KIO::Job *job = 0 );
virtual void slotPutNextMessage();
- virtual void slotPutMessageDataReq( KIO::Job *job, QByteArray &data );
+ virtual void slotPutMessageDataReq( KIO::Job *job, TQByteArray &data );
virtual void slotPutMessageResult( KIO::Job *job );
- virtual void slotPutMessageInfoData(KIO::Job *, const QString &data);
+ virtual void slotPutMessageInfoData(KIO::Job *, const TQString &data);
virtual void slotExpungeResult( KIO::Job *job );
virtual void slotDeleteNextFolder( KIO::Job *job = 0 );
virtual void slotCheckUidValidityResult( KIO::Job *job );
@@ -125,14 +125,14 @@ protected slots:
private:
KMFolderCachedImap *mFolder;
KMAcctCachedImap *mAccount;
- QValueList<KMFolderCachedImap*> mFolderList;
- QValueList<MsgForDownload> mMsgsForDownload;
- QValueList<unsigned long> mSerNumMsgList;
+ TQValueList<KMFolderCachedImap*> mFolderList;
+ TQValueList<MsgForDownload> mMsgsForDownload;
+ TQValueList<unsigned long> mSerNumMsgList;
ulong mSentBytes; // previous messages
ulong mTotalBytes;
- QStringList mFoldersOrMessages; // Folder deletion: path list. Message deletion: sets of uids
+ TQStringList mFoldersOrMessages; // Folder deletion: path list. Message deletion: sets of uids
KMMessage* mMsg;
- QString mString; // Used as uids and as rename target
+ TQString mString; // Used as uids and as rename target
KMFolderCachedImap *mParentFolder;
};
diff --git a/kmail/callback.cpp b/kmail/callback.cpp
index e124e0cc..0e25758c 100644
--- a/kmail/callback.cpp
+++ b/kmail/callback.cpp
@@ -56,8 +56,8 @@ Callback::Callback( KMMessage* msg, KMReaderWin* readerWin )
{
}
-bool Callback::mailICal( const QString& to, const QString &iCal,
- const QString& subject, const QString &status,
+bool Callback::mailICal( const TQString& to, const TQString &iCal,
+ const TQString& subject, const TQString &status,
bool delMessage ) const
{
kdDebug(5006) << "Mailing message:\n" << iCal << endl;
@@ -66,14 +66,14 @@ bool Callback::mailICal( const QString& to, const QString &iCal,
msg->initHeader();
msg->setSubject( subject );
if ( GlobalSettings::self()->exchangeCompatibleInvitations() ) {
- if ( status == QString("cancel") )
- msg->setSubject( QString("Declined: %1").arg(subject).replace("Answer: ","") );
- else if ( status == QString("tentative") )
- msg->setSubject(QString("Tentative: %1").arg(subject).replace("Answer: ","") );
- else if ( status == QString("accepted") )
- msg->setSubject( QString("Accepted: %1").arg(subject).replace("Answer: ","") );
- else if ( status == QString("delegated") )
- msg->setSubject( QString("Delegated: %1").arg(subject).replace("Answer: ","") );
+ if ( status == TQString("cancel") )
+ msg->setSubject( TQString("Declined: %1").arg(subject).replace("Answer: ","") );
+ else if ( status == TQString("tentative") )
+ msg->setSubject(TQString("Tentative: %1").arg(subject).replace("Answer: ","") );
+ else if ( status == TQString("accepted") )
+ msg->setSubject( TQString("Accepted: %1").arg(subject).replace("Answer: ","") );
+ else if ( status == TQString("delegated") )
+ msg->setSubject( TQString("Delegated: %1").arg(subject).replace("Answer: ","") );
}
msg->setTo( to );
msg->setFrom( receiver() );
@@ -99,7 +99,7 @@ bool Callback::mailICal( const QString& to, const QString &iCal,
if( identity != KPIM::Identity::null() ) {
// Identity found. Use this
msg->setFrom( identity.fullEmailAddr() );
- msg->setHeaderField("X-KMail-Identity", QString::number( identity.uoid() ));
+ msg->setHeaderField("X-KMail-Identity", TQString::number( identity.uoid() ));
}
// Remove BCC from identity on ical invitations (https://intevation.de/roundup/kolab/issue474)
msg->setBcc( "" );
@@ -136,7 +136,7 @@ bool Callback::mailICal( const QString& to, const QString &iCal,
return true;
}
-QString Callback::receiver() const
+TQString Callback::receiver() const
{
if ( mReceiverSet )
// Already figured this out
@@ -144,9 +144,9 @@ QString Callback::receiver() const
mReceiverSet = true;
- QStringList addrs = KPIM::splitEmailAddrList( mMsg->to() );
+ TQStringList addrs = KPIM::splitEmailAddrList( mMsg->to() );
int found = 0;
- for( QStringList::Iterator it = addrs.begin(); it != addrs.end(); ++it ) {
+ for( TQStringList::Iterator it = addrs.begin(); it != addrs.end(); ++it ) {
if( kmkernel->identityManager()->identityForAddress( *it ) !=
KPIM::Identity::null() ) {
// Ok, this could be us
@@ -154,8 +154,8 @@ QString Callback::receiver() const
mReceiver = *it;
}
}
- QStringList ccaddrs = KPIM::splitEmailAddrList( mMsg->cc() );
- for( QStringList::Iterator it = ccaddrs.begin(); it != ccaddrs.end(); ++it ) {
+ TQStringList ccaddrs = KPIM::splitEmailAddrList( mMsg->cc() );
+ for( TQStringList::Iterator it = ccaddrs.begin(); it != ccaddrs.end(); ++it ) {
if( kmkernel->identityManager()->identityForAddress( *it ) !=
KPIM::Identity::null() ) {
// Ok, this could be us
@@ -165,7 +165,7 @@ QString Callback::receiver() const
}
if( found != 1 ) {
bool ok;
- QString selectMessage;
+ TQString selectMessage;
if (found == 0) {
selectMessage = i18n("<qt>None of your identities match the "
"receiver of this message,<br>please "
@@ -184,7 +184,7 @@ QString Callback::receiver() const
selectMessage,
addrs+ccaddrs, 0, FALSE, &ok, kmkernel->mainWin() );
if( !ok )
- mReceiver = QString::null;
+ mReceiver = TQString::null;
}
return mReceiver;
@@ -213,7 +213,7 @@ bool Callback::deleteInvitationAfterReply() const
return GlobalSettings::self()->deleteInvitationEmailsAfterSendingReply();
}
-QString Callback::sender() const
+TQString Callback::sender() const
{
return mMsg->from();
}
diff --git a/kmail/callback.h b/kmail/callback.h
index b66903bf..9bd18889 100644
--- a/kmail/callback.h
+++ b/kmail/callback.h
@@ -33,7 +33,7 @@
#ifndef CALLBACK_H
#define CALLBACK_H
-#include <qstring.h>
+#include <tqstring.h>
class KMMessage;
class KMReaderWin;
@@ -62,15 +62,15 @@ public:
/** Mail a message
* @ param status can be accepted/cancel/tentative/delegated
*/
- bool mailICal( const QString &to, const QString &iCal,
- const QString &subject, const QString &status,
+ bool mailICal( const TQString &to, const TQString &iCal,
+ const TQString &subject, const TQString &status,
bool delMessage = true ) const;
/** Get the receiver of the mail */
- QString receiver() const;
+ TQString receiver() const;
/** Returns the sender of the mail. */
- QString sender() const;
+ TQString sender() const;
/** Close the main window showing this message, if it's a secondary window. */
void closeIfSecondaryWindow() const;
@@ -81,7 +81,7 @@ public:
private:
KMMessage* mMsg;
KMReaderWin* mReaderWin;
- mutable QString mReceiver;
+ mutable TQString mReceiver;
mutable bool mReceiverSet;
};
diff --git a/kmail/chiasmuskeyselector.cpp b/kmail/chiasmuskeyselector.cpp
index aac44362..6c82c379 100644
--- a/kmail/chiasmuskeyselector.cpp
+++ b/kmail/chiasmuskeyselector.cpp
@@ -4,19 +4,19 @@
#include <klistbox.h>
#include <klocale.h>
-#include <qlayout.h>
-#include <qlabel.h>
+#include <tqlayout.h>
+#include <tqlabel.h>
-ChiasmusKeySelector::ChiasmusKeySelector( QWidget* parent, const QString& caption,
- const QStringList& keys, const QString& currentKey,
- const QString& lastOptions )
+ChiasmusKeySelector::ChiasmusKeySelector( TQWidget* parent, const TQString& caption,
+ const TQStringList& keys, const TQString& currentKey,
+ const TQString& lastOptions )
: KDialogBase( parent, "chiasmusKeySelector", true, caption, Ok|Cancel, Ok, true )
{
- QWidget *page = makeMainWidget();
+ TQWidget *page = makeMainWidget();
- QVBoxLayout *layout = new QVBoxLayout(page, KDialog::spacingHint());
+ TQVBoxLayout *layout = new TQVBoxLayout(page, KDialog::spacingHint());
- mLabel = new QLabel( i18n( "Please select the Chiasmus key file to use:" ), page );
+ mLabel = new TQLabel( i18n( "Please select the Chiasmus key file to use:" ), page );
layout->addWidget( mLabel );
mListBox = new KListBox( page );
@@ -26,7 +26,7 @@ ChiasmusKeySelector::ChiasmusKeySelector( QWidget* parent, const QString& captio
mListBox->ensureCurrentVisible();
layout->addWidget( mListBox, 1 );
- QLabel* optionLabel = new QLabel( i18n( "Additional arguments for chiasmus:" ), page );
+ TQLabel* optionLabel = new TQLabel( i18n( "Additional arguments for chiasmus:" ), page );
layout->addWidget( optionLabel );
mOptions = new KLineEdit( lastOptions, page );
@@ -35,18 +35,18 @@ ChiasmusKeySelector::ChiasmusKeySelector( QWidget* parent, const QString& captio
layout->addStretch();
- connect( mListBox, SIGNAL( doubleClicked( QListBoxItem * ) ), this, SLOT( slotOk() ) );
- connect( mListBox, SIGNAL( returnPressed( QListBoxItem * ) ), this, SLOT( slotOk() ) );
+ connect( mListBox, TQT_SIGNAL( doubleClicked( TQListBoxItem * ) ), this, TQT_SLOT( slotOk() ) );
+ connect( mListBox, TQT_SIGNAL( returnPressed( TQListBoxItem * ) ), this, TQT_SLOT( slotOk() ) );
mListBox->setFocus();
}
-QString ChiasmusKeySelector::key() const
+TQString ChiasmusKeySelector::key() const
{
return mListBox->currentText();
}
-QString ChiasmusKeySelector::options() const
+TQString ChiasmusKeySelector::options() const
{
return mOptions->text();
}
diff --git a/kmail/chiasmuskeyselector.h b/kmail/chiasmuskeyselector.h
index 3af0ec45..0272016a 100644
--- a/kmail/chiasmuskeyselector.h
+++ b/kmail/chiasmuskeyselector.h
@@ -11,15 +11,15 @@ class ChiasmusKeySelector : public KDialogBase
Q_OBJECT
public:
- ChiasmusKeySelector( QWidget* parent, const QString& caption,
- const QStringList& keys, const QString& currentKey,
- const QString& lastOptions );
+ ChiasmusKeySelector( TQWidget* parent, const TQString& caption,
+ const TQStringList& keys, const TQString& currentKey,
+ const TQString& lastOptions );
- QString key() const;
- QString options() const;
+ TQString key() const;
+ TQString options() const;
private:
- QLabel* mLabel;
+ TQLabel* mLabel;
KListBox* mListBox;
KLineEdit* mOptions;
};
diff --git a/kmail/colorlistbox.cpp b/kmail/colorlistbox.cpp
index 2c6887b3..0e6b3a40 100644
--- a/kmail/colorlistbox.cpp
+++ b/kmail/colorlistbox.cpp
@@ -22,17 +22,17 @@
#include <config.h>
#endif
-#include <qpainter.h>
+#include <tqpainter.h>
#include <kcolordialog.h>
#include <kcolordrag.h>
#include "colorlistbox.h"
-ColorListBox::ColorListBox( QWidget *parent, const char *name, WFlags f )
+ColorListBox::ColorListBox( TQWidget *parent, const char *name, WFlags f )
:KListBox( parent, name, f ), mCurrentOnDragEnter(-1)
{
- connect( this, SIGNAL(selected(int)), this, SLOT(newColor(int)) );
+ connect( this, TQT_SIGNAL(selected(int)), this, TQT_SLOT(newColor(int)) );
setAcceptDrops( true);
}
@@ -44,7 +44,7 @@ void ColorListBox::setEnabled( bool state )
return;
}
- QListBox::setEnabled( state );
+ TQListBox::setEnabled( state );
for( uint i=0; i<count(); i++ )
{
updateItem( i );
@@ -52,7 +52,7 @@ void ColorListBox::setEnabled( bool state )
}
-void ColorListBox::setColor( uint index, const QColor &color )
+void ColorListBox::setColor( uint index, const TQColor &color )
{
if( index < count() )
{
@@ -64,7 +64,7 @@ void ColorListBox::setColor( uint index, const QColor &color )
}
-QColor ColorListBox::color( uint index ) const
+TQColor ColorListBox::color( uint index ) const
{
if( index < count() )
{
@@ -87,8 +87,8 @@ void ColorListBox::newColor( int index )
if( (uint)index < count() )
{
- QColor c = color( index );
- if( KColorDialog::getColor( c, this ) != QDialog::Rejected )
+ TQColor c = color( index );
+ if( KColorDialog::getColor( c, this ) != TQDialog::Rejected )
{
setColor( index, c );
}
@@ -96,7 +96,7 @@ void ColorListBox::newColor( int index )
}
-void ColorListBox::dragEnterEvent( QDragEnterEvent *e )
+void ColorListBox::dragEnterEvent( TQDragEnterEvent *e )
{
if( KColorDrag::canDecode(e) && isEnabled() )
{
@@ -111,7 +111,7 @@ void ColorListBox::dragEnterEvent( QDragEnterEvent *e )
}
-void ColorListBox::dragLeaveEvent( QDragLeaveEvent * )
+void ColorListBox::dragLeaveEvent( TQDragLeaveEvent * )
{
if( mCurrentOnDragEnter != -1 )
{
@@ -121,7 +121,7 @@ void ColorListBox::dragLeaveEvent( QDragLeaveEvent * )
}
-void ColorListBox::dragMoveEvent( QDragMoveEvent *e )
+void ColorListBox::dragMoveEvent( TQDragMoveEvent *e )
{
if( KColorDrag::canDecode(e) && isEnabled() )
{
@@ -134,9 +134,9 @@ void ColorListBox::dragMoveEvent( QDragMoveEvent *e )
}
-void ColorListBox::dropEvent( QDropEvent *e )
+void ColorListBox::dropEvent( TQDropEvent *e )
{
- QColor color;
+ TQColor color;
if( KColorDrag::decode( e, color ) )
{
int index = currentItem();
@@ -152,28 +152,28 @@ void ColorListBox::dropEvent( QDropEvent *e )
-ColorListItem::ColorListItem( const QString &text, const QColor &color )
- : QListBoxItem(), mColor( color ), mBoxWidth( 30 )
+ColorListItem::ColorListItem( const TQString &text, const TQColor &color )
+ : TQListBoxItem(), mColor( color ), mBoxWidth( 30 )
{
setText( text );
}
-const QColor &ColorListItem::color( void )
+const TQColor &ColorListItem::color( void )
{
return( mColor );
}
-void ColorListItem::setColor( const QColor &color )
+void ColorListItem::setColor( const TQColor &color )
{
mColor = color;
}
-void ColorListItem::paint( QPainter *p )
+void ColorListItem::paint( TQPainter *p )
{
- QFontMetrics fm = p->fontMetrics();
+ TQFontMetrics fm = p->fontMetrics();
int h = fm.height();
p->drawText( mBoxWidth+3*2, fm.ascent() + fm.leading()/2, text() );
@@ -184,13 +184,13 @@ void ColorListItem::paint( QPainter *p )
}
-int ColorListItem::height(const QListBox *lb ) const
+int ColorListItem::height(const TQListBox *lb ) const
{
return( lb->fontMetrics().lineSpacing()+1 );
}
-int ColorListItem::width(const QListBox *lb ) const
+int ColorListItem::width(const TQListBox *lb ) const
{
return( mBoxWidth + lb->fontMetrics().width( text() ) + 6 );
}
diff --git a/kmail/colorlistbox.h b/kmail/colorlistbox.h
index 1759bc83..13db01af 100644
--- a/kmail/colorlistbox.h
+++ b/kmail/colorlistbox.h
@@ -28,9 +28,9 @@ class ColorListBox : public KListBox
Q_OBJECT
public:
- ColorListBox( QWidget *parent=0, const char * name=0, WFlags f=0 );
- void setColor( uint index, const QColor &color );
- QColor color( uint index ) const;
+ ColorListBox( TQWidget *parent=0, const char * name=0, WFlags f=0 );
+ void setColor( uint index, const TQColor &color );
+ TQColor color( uint index ) const;
signals:
void changed();
@@ -38,10 +38,10 @@ signals:
virtual void setEnabled( bool state );
protected:
- void dragEnterEvent( QDragEnterEvent *e );
- void dragLeaveEvent( QDragLeaveEvent *e );
- void dragMoveEvent( QDragMoveEvent *e );
- void dropEvent( QDropEvent *e );
+ void dragEnterEvent( TQDragEnterEvent *e );
+ void dragLeaveEvent( TQDragLeaveEvent *e );
+ void dragMoveEvent( TQDragMoveEvent *e );
+ void dropEvent( TQDropEvent *e );
private slots:
void newColor( int index );
@@ -55,17 +55,17 @@ signals:
class ColorListItem : public QListBoxItem
{
public:
- ColorListItem( const QString &text, const QColor &color=Qt::black );
- const QColor &color( void );
- void setColor( const QColor &color );
+ ColorListItem( const TQString &text, const TQColor &color=Qt::black );
+ const TQColor &color( void );
+ void setColor( const TQColor &color );
protected:
- virtual void paint( QPainter * );
- virtual int height( const QListBox * ) const;
- virtual int width( const QListBox * ) const;
+ virtual void paint( TQPainter * );
+ virtual int height( const TQListBox * ) const;
+ virtual int width( const TQListBox * ) const;
private:
- QColor mColor;
+ TQColor mColor;
int mBoxWidth;
};
diff --git a/kmail/compactionjob.cpp b/kmail/compactionjob.cpp
index 1b9c143b..243a1753 100644
--- a/kmail/compactionjob.cpp
+++ b/kmail/compactionjob.cpp
@@ -35,9 +35,9 @@ using KPIM::BroadcastStatus;
#include <kdebug.h>
#include <klocale.h>
-#include <qfile.h>
-#include <qfileinfo.h>
-#include <qdir.h>
+#include <tqfile.h>
+#include <tqfileinfo.h>
+#include <tqdir.h>
#include <sys/types.h>
#include <sys/stat.h>
@@ -71,14 +71,14 @@ void MboxCompactionJob::kill()
fclose( mTmpFile );
mTmpFile = 0;
if ( !mTempName.isEmpty() )
- QFile::remove( mTempName );
+ TQFile::remove( mTempName );
FolderJob::kill();
}
-QString MboxCompactionJob::realLocation() const
+TQString MboxCompactionJob::realLocation() const
{
- QString location = mSrcFolder->location();
- QFileInfo inf( location );
+ TQString location = mSrcFolder->location();
+ TQFileInfo inf( location );
if (inf.isSymLink()) {
KURL u; u.setPath( location );
// follow (and resolve) symlinks so that the final ::rename() always works
@@ -96,7 +96,7 @@ int MboxCompactionJob::executeNow( bool silent )
if (!storage->compactable()) {
kdDebug(5006) << storage->location() << " compaction skipped." << endl;
if ( !mSilent ) {
- QString str = i18n( "For safety reasons, compaction has been disabled for %1" ).arg( mbox->label() );
+ TQString str = i18n( "For safety reasons, compaction has been disabled for %1" ).arg( mbox->label() );
BroadcastStatus::instance()->setStatusMsg( str );
}
return 0;
@@ -109,13 +109,13 @@ int MboxCompactionJob::executeNow( bool silent )
// exit(1); backed out due to broken nfs
}
- const QFileInfo pathInfo( realLocation() );
+ const TQFileInfo pathInfo( realLocation() );
// Use /dir/.mailboxname.compacted so that it's hidden, and doesn't show up after restarting kmail
// (e.g. due to an unfortunate crash while compaction is happening)
mTempName = pathInfo.dirPath() + "/." + pathInfo.fileName() + ".compacted";
mode_t old_umask = umask(077);
- mTmpFile = fopen(QFile::encodeName(mTempName), "w");
+ mTmpFile = fopen(TQFile::encodeName(mTempName), "w");
umask(old_umask);
if (!mTmpFile) {
kdWarning(5006) << "Couldn't start compacting " << mSrcFolder->label()
@@ -131,7 +131,7 @@ int MboxCompactionJob::executeNow( bool silent )
mCurrentIndex = 0;
kdDebug(5006) << "MboxCompactionJob: starting to compact folder " << mSrcFolder->location() << " into " << mTempName << endl;
- connect( &mTimer, SIGNAL( timeout() ), SLOT( slotDoWork() ) );
+ connect( &mTimer, TQT_SIGNAL( timeout() ), TQT_SLOT( slotDoWork() ) );
if ( !mImmediate )
mTimer.start( COMPACTIONJOB_TIMERINTERVAL );
slotDoWork();
@@ -162,11 +162,11 @@ void MboxCompactionJob::done( int rc )
if (!rc)
rc = fsync(fileno(mTmpFile));
rc |= fclose(mTmpFile);
- QString str;
+ TQString str;
if (!rc) {
bool autoCreate = mbox->autoCreateIndex();
- QString box( realLocation() );
- ::rename(QFile::encodeName(mTempName), QFile::encodeName(box));
+ TQString box( realLocation() );
+ ::rename(TQFile::encodeName(mTempName), TQFile::encodeName(box));
mbox->writeIndex();
mbox->writeConfig();
mbox->setAutoCreateIndex( false );
@@ -180,7 +180,7 @@ void MboxCompactionJob::done( int rc )
str = i18n( "Error occurred while compacting \"%1\". Compaction aborted." ).arg( mSrcFolder->label() );
kdDebug(5006) << "Error occurred while compacting " << mbox->location() << endl;
kdDebug(5006) << "Compaction aborted." << endl;
- QFile::remove( mTempName );
+ TQFile::remove( mTempName );
}
mErrorCode = rc;
@@ -223,13 +223,13 @@ int MaildirCompactionJob::executeNow( bool silent )
storage->open("maildircompact");
mOpeningFolder = false;
mFolderOpen = true;
- QString subdirNew(storage->location() + "/new/");
- QDir d(subdirNew);
+ TQString subdirNew(storage->location() + "/new/");
+ TQDir d(subdirNew);
mEntryList = d.entryList();
mCurrentIndex = 0;
kdDebug(5006) << "MaildirCompactionJob: starting to compact in folder " << mSrcFolder->location() << endl;
- connect( &mTimer, SIGNAL( timeout() ), SLOT( slotDoWork() ) );
+ connect( &mTimer, TQT_SIGNAL( timeout() ), TQT_SLOT( slotDoWork() ) );
if ( !mImmediate )
mTimer.start( COMPACTIONJOB_TIMERINTERVAL );
slotDoWork();
@@ -254,7 +254,7 @@ void MaildirCompactionJob::done( int rc )
KMFolderMaildir* storage = static_cast<KMFolderMaildir *>( mSrcFolder->storage() );
mTimer.stop();
mCancellable = false;
- QString str;
+ TQString str;
if ( !rc ) {
str = i18n( "Folder \"%1\" successfully compacted" ).arg( mSrcFolder->label() );
} else {
diff --git a/kmail/compactionjob.h b/kmail/compactionjob.h
index 055713f6..bb234a04 100644
--- a/kmail/compactionjob.h
+++ b/kmail/compactionjob.h
@@ -29,7 +29,7 @@
#define COMPACTIONJOB_H
#include "jobscheduler.h"
-#include <qstringlist.h>
+#include <tqstringlist.h>
namespace KMail {
@@ -53,12 +53,12 @@ private slots:
private:
// Real folder location, != location in case of symlinks
- QString realLocation() const;
+ TQString realLocation() const;
void done( int rc );
private:
- QTimer mTimer;
- QString mTempName;
+ TQTimer mTimer;
+ TQString mTempName;
FILE *mTmpFile;
off_t mOffset;
int mCurrentIndex;
@@ -88,8 +88,8 @@ private:
void done( int rc );
private:
- QTimer mTimer;
- QStringList mEntryList;
+ TQTimer mTimer;
+ TQStringList mEntryList;
int mCurrentIndex;
bool mFolderOpen;
bool mSilent;
diff --git a/kmail/composer.h b/kmail/composer.h
index 58d0860d..a4eb179d 100644
--- a/kmail/composer.h
+++ b/kmail/composer.h
@@ -10,8 +10,8 @@
#include <kurl.h>
#include <kglobalsettings.h>
-#include <qstring.h>
-#include <qcstring.h>
+#include <tqstring.h>
+#include <tqcstring.h>
class KMMessage;
class KMFolder;
@@ -42,18 +42,18 @@ namespace KMail {
* From MailComposerIface
*/
virtual void send( int how ) = 0;
- virtual void addAttachmentsAndSend(const KURL::List &urls, const QString &comment, int how) = 0;
- virtual void addAttachment( KURL url, QString comment ) = 0;
- virtual void addAttachment( const QString & name,
- const QCString & cte,
- const QByteArray & data,
- const QCString & type,
- const QCString & subType,
- const QCString & paramAttr,
- const QString & paramValue,
- const QCString & contDisp) = 0;
+ virtual void addAttachmentsAndSend(const KURL::List &urls, const TQString &comment, int how) = 0;
+ virtual void addAttachment( KURL url, TQString comment ) = 0;
+ virtual void addAttachment( const TQString & name,
+ const TQCString & cte,
+ const TQByteArray & data,
+ const TQCString & type,
+ const TQCString & subType,
+ const TQCString & paramAttr,
+ const TQString & paramValue,
+ const TQCString & contDisp) = 0;
public: // kmcommand
- virtual void setBody( QString body ) = 0;
+ virtual void setBody( TQString body ) = 0;
virtual const MailComposerIface * asMailComposerIFace() const = 0;
virtual MailComposerIface * asMailComposerIFace() = 0;
@@ -70,7 +70,7 @@ namespace KMail {
/**
* Set the filename which is used for autosaving.
*/
- virtual void setAutoSaveFilename( const QString & filename ) = 0;
+ virtual void setAutoSaveFilename( const TQString & filename ) = 0;
public: // kmkernel, callback
/**
@@ -96,7 +96,7 @@ namespace KMail {
/**
* Recode to the specified charset
*/
- virtual void setCharset( const QCString & aCharset, bool forceDefault=false ) = 0;
+ virtual void setCharset( const TQCString & aCharset, bool forceDefault=false ) = 0;
public: // kmcommand
/**
diff --git a/kmail/configuredialog.cpp b/kmail/configuredialog.cpp
index 321a374c..ea0536a9 100644
--- a/kmail/configuredialog.cpp
+++ b/kmail/configuredialog.cpp
@@ -101,21 +101,21 @@ using KMime::DateFormatter;
#include <kcmultidialog.h>
// Qt headers:
-#include <qvalidator.h>
-#include <qwhatsthis.h>
-#include <qvgroupbox.h>
-#include <qvbox.h>
-#include <qvbuttongroup.h>
-#include <qhbuttongroup.h>
-#include <qtooltip.h>
-#include <qlabel.h>
-#include <qtextcodec.h>
-#include <qheader.h>
-#include <qpopupmenu.h>
-#include <qradiobutton.h>
-#include <qlayout.h>
-#include <qcheckbox.h>
-#include <qwidgetstack.h>
+#include <tqvalidator.h>
+#include <tqwhatsthis.h>
+#include <tqvgroupbox.h>
+#include <tqvbox.h>
+#include <tqvbuttongroup.h>
+#include <tqhbuttongroup.h>
+#include <tqtooltip.h>
+#include <tqlabel.h>
+#include <tqtextcodec.h>
+#include <tqheader.h>
+#include <tqpopupmenu.h>
+#include <tqradiobutton.h>
+#include <tqlayout.h>
+#include <tqcheckbox.h>
+#include <tqwidgetstack.h>
// other headers:
#include <assert.h>
@@ -155,37 +155,37 @@ namespace {
I18N_NOOP("<qt><p>This setting has been fixed by your administrator.</p>"
"<p>If you think this is an error, please contact him.</p></qt>");
- void checkLockDown( QWidget * w, const KConfigBase & c, const char * key ) {
+ void checkLockDown( TQWidget * w, const KConfigBase & c, const char * key ) {
if ( c.entryIsImmutable( key ) ) {
w->setEnabled( false );
- QToolTip::add( w, i18n( lockedDownWarning ) );
+ TQToolTip::add( w, i18n( lockedDownWarning ) );
} else {
- QToolTip::remove( w );
+ TQToolTip::remove( w );
}
}
- void populateButtonGroup( QButtonGroup * g, const EnumConfigEntry & e ) {
+ void populateButtonGroup( TQButtonGroup * g, const EnumConfigEntry & e ) {
g->setTitle( i18n( e.desc ) );
g->layout()->setSpacing( KDialog::spacingHint() );
for ( int i = 0 ; i < e.numItems ; ++i )
- g->insert( new QRadioButton( i18n( e.items[i].desc ), g ), i );
+ g->insert( new TQRadioButton( i18n( e.items[i].desc ), g ), i );
}
- void populateCheckBox( QCheckBox * b, const BoolConfigEntry & e ) {
+ void populateCheckBox( TQCheckBox * b, const BoolConfigEntry & e ) {
b->setText( i18n( e.desc ) );
}
- void loadWidget( QCheckBox * b, const KConfigBase & c, const BoolConfigEntry & e ) {
+ void loadWidget( TQCheckBox * b, const KConfigBase & c, const BoolConfigEntry & e ) {
Q_ASSERT( c.group() == e.group );
checkLockDown( b, c, e.key );
b->setChecked( c.readBoolEntry( e.key, e.defaultValue ) );
}
- void loadWidget( QButtonGroup * g, const KConfigBase & c, const EnumConfigEntry & e ) {
+ void loadWidget( TQButtonGroup * g, const KConfigBase & c, const EnumConfigEntry & e ) {
Q_ASSERT( c.group() == e.group );
Q_ASSERT( g->count() == e.numItems );
checkLockDown( g, c, e.key );
- const QString s = c.readEntry( e.key, e.items[e.defaultItem].key );
+ const TQString s = c.readEntry( e.key, e.items[e.defaultItem].key );
for ( int i = 0 ; i < e.numItems ; ++i )
if ( s == e.items[i].key ) {
g->setButton( i );
@@ -194,12 +194,12 @@ namespace {
g->setButton( e.defaultItem );
}
- void saveCheckBox( QCheckBox * b, KConfigBase & c, const BoolConfigEntry & e ) {
+ void saveCheckBox( TQCheckBox * b, KConfigBase & c, const BoolConfigEntry & e ) {
Q_ASSERT( c.group() == e.group );
c.writeEntry( e.key, b->isChecked() );
}
- void saveButtonGroup( QButtonGroup * g, KConfigBase & c, const EnumConfigEntry & e ) {
+ void saveButtonGroup( TQButtonGroup * g, KConfigBase & c, const EnumConfigEntry & e ) {
Q_ASSERT( c.group() == e.group );
Q_ASSERT( g->count() == e.numItems );
c.writeEntry( e.key, e.items[ g->id( g->selected() ) ].key );
@@ -213,7 +213,7 @@ namespace {
}
-ConfigureDialog::ConfigureDialog( QWidget *parent, const char *name, bool modal )
+ConfigureDialog::ConfigureDialog( TQWidget *parent, const char *name, bool modal )
: KCMultiDialog( KDialogBase::IconList, KGuiItem( i18n( "&Load Profile..." ) ),
KGuiItem(), User2, i18n( "Configure" ), parent, name, modal )
, mProfileDialog( 0 )
@@ -241,7 +241,7 @@ ConfigureDialog::ConfigureDialog( QWidget *parent, const char *name, bool modal
}
-void ConfigureDialog::hideEvent( QHideEvent *ev ) {
+void ConfigureDialog::hideEvent( TQHideEvent *ev ) {
KConfigGroup geometry( KMKernel::config(), "Geometry" );
geometry.writeEntry( "ConfigureDialogWidth", width() );
geometry.writeEntry( "ConfigureDialogHeight",height() );
@@ -267,8 +267,8 @@ void ConfigureDialog::slotUser2() {
return;
}
mProfileDialog = new ProfileDialog( this, "mProfileDialog" );
- connect( mProfileDialog, SIGNAL(profileSelected(KConfig*)),
- this, SIGNAL(installProfile(KConfig*)) );
+ connect( mProfileDialog, TQT_SIGNAL(profileSelected(KConfig*)),
+ this, TQT_SIGNAL(installProfile(KConfig*)) );
mProfileDialog->show();
}
@@ -277,36 +277,36 @@ void ConfigureDialog::slotUser2() {
// * IdentityPage *
// * *
// *************************************************************
-QString IdentityPage::helpAnchor() const {
- return QString::fromLatin1("configure-identity");
+TQString IdentityPage::helpAnchor() const {
+ return TQString::fromLatin1("configure-identity");
}
-IdentityPage::IdentityPage( QWidget * parent, const char * name )
+IdentityPage::IdentityPage( TQWidget * parent, const char * name )
: ConfigModule( parent, name ),
mIdentityDialog( 0 )
{
- QHBoxLayout * hlay = new QHBoxLayout( this, 0, KDialog::spacingHint() );
+ TQHBoxLayout * hlay = new TQHBoxLayout( this, 0, KDialog::spacingHint() );
mIdentityList = new IdentityListView( this );
- connect( mIdentityList, SIGNAL(selectionChanged()),
- SLOT(slotIdentitySelectionChanged()) );
- connect( mIdentityList, SIGNAL(itemRenamed(QListViewItem*,const QString&,int)),
- SLOT(slotRenameIdentity(QListViewItem*,const QString&,int)) );
- connect( mIdentityList, SIGNAL(doubleClicked(QListViewItem*,const QPoint&,int)),
- SLOT(slotModifyIdentity()) );
- connect( mIdentityList, SIGNAL(contextMenu(KListView*,QListViewItem*,const QPoint&)),
- SLOT(slotContextMenu(KListView*,QListViewItem*,const QPoint&)) );
+ connect( mIdentityList, TQT_SIGNAL(selectionChanged()),
+ TQT_SLOT(slotIdentitySelectionChanged()) );
+ connect( mIdentityList, TQT_SIGNAL(itemRenamed(TQListViewItem*,const TQString&,int)),
+ TQT_SLOT(slotRenameIdentity(TQListViewItem*,const TQString&,int)) );
+ connect( mIdentityList, TQT_SIGNAL(doubleClicked(TQListViewItem*,const TQPoint&,int)),
+ TQT_SLOT(slotModifyIdentity()) );
+ connect( mIdentityList, TQT_SIGNAL(contextMenu(KListView*,TQListViewItem*,const TQPoint&)),
+ TQT_SLOT(slotContextMenu(KListView*,TQListViewItem*,const TQPoint&)) );
// ### connect dragged(...), ...
hlay->addWidget( mIdentityList, 1 );
- QVBoxLayout * vlay = new QVBoxLayout( hlay ); // inherits spacing
+ TQVBoxLayout * vlay = new TQVBoxLayout( hlay ); // inherits spacing
- QPushButton * button = new QPushButton( i18n("&Add..."), this );
- mModifyButton = new QPushButton( i18n("&Modify..."), this );
- mRenameButton = new QPushButton( i18n("&Rename"), this );
- mRemoveButton = new QPushButton( i18n("Remo&ve"), this );
- mSetAsDefaultButton = new QPushButton( i18n("Set as &Default"), this );
+ TQPushButton * button = new TQPushButton( i18n("&Add..."), this );
+ mModifyButton = new TQPushButton( i18n("&Modify..."), this );
+ mRenameButton = new TQPushButton( i18n("&Rename"), this );
+ mRemoveButton = new TQPushButton( i18n("Remo&ve"), this );
+ mSetAsDefaultButton = new TQPushButton( i18n("Set as &Default"), this );
button->setAutoDefault( false );
mModifyButton->setAutoDefault( false );
mModifyButton->setEnabled( false );
@@ -316,16 +316,16 @@ IdentityPage::IdentityPage( QWidget * parent, const char * name )
mRemoveButton->setEnabled( false );
mSetAsDefaultButton->setAutoDefault( false );
mSetAsDefaultButton->setEnabled( false );
- connect( button, SIGNAL(clicked()),
- this, SLOT(slotNewIdentity()) );
- connect( mModifyButton, SIGNAL(clicked()),
- this, SLOT(slotModifyIdentity()) );
- connect( mRenameButton, SIGNAL(clicked()),
- this, SLOT(slotRenameIdentity()) );
- connect( mRemoveButton, SIGNAL(clicked()),
- this, SLOT(slotRemoveIdentity()) );
- connect( mSetAsDefaultButton, SIGNAL(clicked()),
- this, SLOT(slotSetAsDefault()) );
+ connect( button, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(slotNewIdentity()) );
+ connect( mModifyButton, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(slotModifyIdentity()) );
+ connect( mRenameButton, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(slotRenameIdentity()) );
+ connect( mRemoveButton, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(slotRemoveIdentity()) );
+ connect( mSetAsDefaultButton, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(slotSetAsDefault()) );
vlay->addWidget( button );
vlay->addWidget( mModifyButton );
vlay->addWidget( mRenameButton );
@@ -341,7 +341,7 @@ void IdentityPage::load()
mOldNumberOfIdentities = im->shadowIdentities().count();
// Fill the list:
mIdentityList->clear();
- QListViewItem * item = 0;
+ TQListViewItem * item = 0;
for ( KPIM::IdentityManager::Iterator it = im->modifyBegin() ; it != im->modifyEnd() ; ++it )
item = new IdentityListViewItem( mIdentityList, item, *it );
mIdentityList->setSelected( mIdentityList->currentItem(), true );
@@ -378,8 +378,8 @@ void IdentityPage::slotNewIdentity()
KPIM::IdentityManager * im = kmkernel->identityManager();
NewIdentityDialog dialog( im->shadowIdentities(), this, "new", true );
- if( dialog.exec() == QDialog::Accepted ) {
- QString identityName = dialog.identityName().stripWhiteSpace();
+ if( dialog.exec() == TQDialog::Accepted ) {
+ TQString identityName = dialog.identityName().stripWhiteSpace();
assert( !identityName.isEmpty() );
//
@@ -404,7 +404,7 @@ void IdentityPage::slotNewIdentity()
// Insert into listview:
//
KPIM::Identity & newIdent = im->modifyIdentityForName( identityName );
- QListViewItem * item = mIdentityList->selectedItem();
+ TQListViewItem * item = mIdentityList->selectedItem();
if ( item )
item = item->itemAbove();
mIdentityList->setSelected( new IdentityListViewItem( mIdentityList,
@@ -425,7 +425,7 @@ void IdentityPage::slotModifyIdentity() {
mIdentityDialog->setIdentity( item->identity() );
// Hmm, an unmodal dialog would be nicer, but a modal one is easier ;-)
- if ( mIdentityDialog->exec() == QDialog::Accepted ) {
+ if ( mIdentityDialog->exec() == TQDialog::Accepted ) {
mIdentityDialog->updateIdentity( item->identity() );
item->redisplay();
emit changed(true);
@@ -447,7 +447,7 @@ void IdentityPage::slotRemoveIdentity()
dynamic_cast<IdentityListViewItem*>( mIdentityList->selectedItem() );
if ( !item ) return;
- QString msg = i18n("<qt>Do you really want to remove the identity named "
+ TQString msg = i18n("<qt>Do you really want to remove the identity named "
"<b>%1</b>?</qt>").arg( item->identity().identityName() );
if( KMessageBox::warningContinueCancel( this, msg, i18n("Remove Identity"),
KGuiItem(i18n("&Remove"),"editdelete") ) == KMessageBox::Continue )
@@ -461,21 +461,21 @@ void IdentityPage::slotRemoveIdentity()
void IdentityPage::slotRenameIdentity() {
assert( !mIdentityDialog );
- QListViewItem * item = mIdentityList->selectedItem();
+ TQListViewItem * item = mIdentityList->selectedItem();
if ( !item ) return;
mIdentityList->rename( item, 0 );
}
-void IdentityPage::slotRenameIdentity( QListViewItem * i,
- const QString & s, int col ) {
+void IdentityPage::slotRenameIdentity( TQListViewItem * i,
+ const TQString & s, int col ) {
assert( col == 0 );
Q_UNUSED( col );
IdentityListViewItem * item = dynamic_cast<IdentityListViewItem*>( i );
if ( !item ) return;
- QString newName = s.stripWhiteSpace();
+ TQString newName = s.stripWhiteSpace();
if ( !newName.isEmpty() &&
!kmkernel->identityManager()->shadowIdentities().contains( newName ) ) {
KPIM::Identity & ident = item->identity();
@@ -485,18 +485,18 @@ void IdentityPage::slotRenameIdentity( QListViewItem * i,
item->redisplay();
}
-void IdentityPage::slotContextMenu( KListView *, QListViewItem * i,
- const QPoint & pos ) {
+void IdentityPage::slotContextMenu( KListView *, TQListViewItem * i,
+ const TQPoint & pos ) {
IdentityListViewItem * item = dynamic_cast<IdentityListViewItem*>( i );
- QPopupMenu * menu = new QPopupMenu( this );
- menu->insertItem( i18n("Add..."), this, SLOT(slotNewIdentity()) );
+ TQPopupMenu * menu = new TQPopupMenu( this );
+ menu->insertItem( i18n("Add..."), this, TQT_SLOT(slotNewIdentity()) );
if ( item ) {
- menu->insertItem( i18n("Modify..."), this, SLOT(slotModifyIdentity()) );
+ menu->insertItem( i18n("Modify..."), this, TQT_SLOT(slotModifyIdentity()) );
if ( mIdentityList->childCount() > 1 )
- menu->insertItem( i18n("Remove"), this, SLOT(slotRemoveIdentity()) );
+ menu->insertItem( i18n("Remove"), this, TQT_SLOT(slotRemoveIdentity()) );
if ( !item->identity().isDefault() )
- menu->insertItem( i18n("Set as Default"), this, SLOT(slotSetAsDefault()) );
+ menu->insertItem( i18n("Set as Default"), this, TQT_SLOT(slotSetAsDefault()) );
}
menu->exec( pos );
delete menu;
@@ -516,7 +516,7 @@ void IdentityPage::slotSetAsDefault() {
}
void IdentityPage::refreshList() {
- for ( QListViewItemIterator it( mIdentityList ) ; it.current() ; ++it ) {
+ for ( TQListViewItemIterator it( mIdentityList ) ; it.current() ; ++it ) {
IdentityListViewItem * item =
dynamic_cast<IdentityListViewItem*>(it.current());
if ( item )
@@ -536,7 +536,7 @@ void IdentityPage::slotIdentitySelectionChanged()
mSetAsDefaultButton->setEnabled( item && !item->identity().isDefault() );
}
-void IdentityPage::slotUpdateTransportCombo( const QStringList & sl )
+void IdentityPage::slotUpdateTransportCombo( const TQStringList & sl )
{
if ( mIdentityDialog ) mIdentityDialog->slotUpdateTransportCombo( sl );
}
@@ -548,11 +548,11 @@ void IdentityPage::slotUpdateTransportCombo( const QStringList & sl )
// * AccountsPage *
// * *
// *************************************************************
-QString AccountsPage::helpAnchor() const {
- return QString::fromLatin1("configure-accounts");
+TQString AccountsPage::helpAnchor() const {
+ return TQString::fromLatin1("configure-accounts");
}
-AccountsPage::AccountsPage( QWidget * parent, const char * name )
+AccountsPage::AccountsPage( TQWidget * parent, const char * name )
: ConfigModuleWithTabs( parent, name )
{
//
@@ -560,42 +560,42 @@ AccountsPage::AccountsPage( QWidget * parent, const char * name )
//
mReceivingTab = new ReceivingTab();
addTab( mReceivingTab, i18n( "&Receiving" ) );
- connect( mReceivingTab, SIGNAL(accountListChanged(const QStringList &)),
- this, SIGNAL(accountListChanged(const QStringList &)) );
+ connect( mReceivingTab, TQT_SIGNAL(accountListChanged(const TQStringList &)),
+ this, TQT_SIGNAL(accountListChanged(const TQStringList &)) );
//
// "Sending" tab:
//
mSendingTab = new SendingTab();
addTab( mSendingTab, i18n( "&Sending" ) );
- connect( mSendingTab, SIGNAL(transportListChanged(const QStringList&)),
- this, SIGNAL(transportListChanged(const QStringList&)) );
+ connect( mSendingTab, TQT_SIGNAL(transportListChanged(const TQStringList&)),
+ this, TQT_SIGNAL(transportListChanged(const TQStringList&)) );
load();
}
-QString AccountsPage::SendingTab::helpAnchor() const {
- return QString::fromLatin1("configure-accounts-sending");
+TQString AccountsPage::SendingTab::helpAnchor() const {
+ return TQString::fromLatin1("configure-accounts-sending");
}
-AccountsPageSendingTab::AccountsPageSendingTab( QWidget * parent, const char * name )
+AccountsPageSendingTab::AccountsPageSendingTab( TQWidget * parent, const char * name )
: ConfigModuleTab( parent, name )
{
mTransportInfoList.setAutoDelete( true );
// temp. vars:
- QVBoxLayout *vlay;
- QVBoxLayout *btn_vlay;
- QHBoxLayout *hlay;
- QGridLayout *glay;
- QPushButton *button;
- QGroupBox *group;
-
- vlay = new QVBoxLayout( this, KDialog::marginHint(), KDialog::spacingHint() );
+ TQVBoxLayout *vlay;
+ TQVBoxLayout *btn_vlay;
+ TQHBoxLayout *hlay;
+ TQGridLayout *glay;
+ TQPushButton *button;
+ TQGroupBox *group;
+
+ vlay = new TQVBoxLayout( this, KDialog::marginHint(), KDialog::spacingHint() );
// label: zero stretch ### FIXME more
- vlay->addWidget( new QLabel( i18n("Outgoing accounts (add at least one):"), this ) );
+ vlay->addWidget( new TQLabel( i18n("Outgoing accounts (add at least one):"), this ) );
// hbox layout: stretch 10, spacing inherited from vlay
- hlay = new QHBoxLayout();
+ hlay = new TQHBoxLayout();
vlay->addLayout( hlay, 10 ); // high stretch b/c of the groupbox's sizeHint
// transport list: left widget in hlay; stretch 1
@@ -605,137 +605,137 @@ AccountsPageSendingTab::AccountsPageSendingTab( QWidget * parent, const char * n
mTransportList->addColumn( i18n("Type") );
mTransportList->setAllColumnsShowFocus( true );
mTransportList->setSorting( -1 );
- connect( mTransportList, SIGNAL(selectionChanged()),
- this, SLOT(slotTransportSelected()) );
- connect( mTransportList, SIGNAL(doubleClicked( QListViewItem *)),
- this, SLOT(slotModifySelectedTransport()) );
+ connect( mTransportList, TQT_SIGNAL(selectionChanged()),
+ this, TQT_SLOT(slotTransportSelected()) );
+ connect( mTransportList, TQT_SIGNAL(doubleClicked( TQListViewItem *)),
+ this, TQT_SLOT(slotModifySelectedTransport()) );
hlay->addWidget( mTransportList, 1 );
// a vbox layout for the buttons: zero stretch, spacing inherited from hlay
- btn_vlay = new QVBoxLayout( hlay );
+ btn_vlay = new TQVBoxLayout( hlay );
// "add..." button: stretch 0
- button = new QPushButton( i18n("A&dd..."), this );
+ button = new TQPushButton( i18n("A&dd..."), this );
button->setAutoDefault( false );
- connect( button, SIGNAL(clicked()),
- this, SLOT(slotAddTransport()) );
+ connect( button, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(slotAddTransport()) );
btn_vlay->addWidget( button );
// "modify..." button: stretch 0
- mModifyTransportButton = new QPushButton( i18n("&Modify..."), this );
+ mModifyTransportButton = new TQPushButton( i18n("&Modify..."), this );
mModifyTransportButton->setAutoDefault( false );
mModifyTransportButton->setEnabled( false ); // b/c no item is selected yet
- connect( mModifyTransportButton, SIGNAL(clicked()),
- this, SLOT(slotModifySelectedTransport()) );
+ connect( mModifyTransportButton, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(slotModifySelectedTransport()) );
btn_vlay->addWidget( mModifyTransportButton );
// "remove" button: stretch 0
- mRemoveTransportButton = new QPushButton( i18n("R&emove"), this );
+ mRemoveTransportButton = new TQPushButton( i18n("R&emove"), this );
mRemoveTransportButton->setAutoDefault( false );
mRemoveTransportButton->setEnabled( false ); // b/c no item is selected yet
- connect( mRemoveTransportButton, SIGNAL(clicked()),
- this, SLOT(slotRemoveSelectedTransport()) );
+ connect( mRemoveTransportButton, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(slotRemoveSelectedTransport()) );
btn_vlay->addWidget( mRemoveTransportButton );
- mSetDefaultTransportButton = new QPushButton( i18n("Set Default"), this );
+ mSetDefaultTransportButton = new TQPushButton( i18n("Set Default"), this );
mSetDefaultTransportButton->setAutoDefault( false );
mSetDefaultTransportButton->setEnabled( false );
- connect ( mSetDefaultTransportButton, SIGNAL(clicked()),
- this, SLOT(slotSetDefaultTransport()) );
+ connect ( mSetDefaultTransportButton, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(slotSetDefaultTransport()) );
btn_vlay->addWidget( mSetDefaultTransportButton );
btn_vlay->addStretch( 1 ); // spacer
// "Common options" groupbox:
- group = new QGroupBox( 0, Qt::Vertical,
+ group = new TQGroupBox( 0, Qt::Vertical,
i18n("Common Options"), this );
vlay->addWidget(group);
// a grid layout for the contents of the "common options" group box
- glay = new QGridLayout( group->layout(), 5, 3, KDialog::spacingHint() );
+ glay = new TQGridLayout( group->layout(), 5, 3, KDialog::spacingHint() );
glay->setColStretch( 2, 10 );
// "confirm before send" check box:
- mConfirmSendCheck = new QCheckBox( i18n("Confirm &before send"), group );
+ mConfirmSendCheck = new TQCheckBox( i18n("Confirm &before send"), group );
glay->addMultiCellWidget( mConfirmSendCheck, 0, 0, 0, 1 );
- connect( mConfirmSendCheck, SIGNAL( stateChanged( int ) ),
- this, SLOT( slotEmitChanged( void ) ) );
+ connect( mConfirmSendCheck, TQT_SIGNAL( stateChanged( int ) ),
+ this, TQT_SLOT( slotEmitChanged( void ) ) );
// "send on check" combo:
- mSendOnCheckCombo = new QComboBox( false, group );
- mSendOnCheckCombo->insertStringList( QStringList()
+ mSendOnCheckCombo = new TQComboBox( false, group );
+ mSendOnCheckCombo->insertStringList( TQStringList()
<< i18n("Never Automatically")
<< i18n("On Manual Mail Checks")
<< i18n("On All Mail Checks") );
glay->addWidget( mSendOnCheckCombo, 1, 1 );
- connect( mSendOnCheckCombo, SIGNAL( activated( int ) ),
- this, SLOT( slotEmitChanged( void ) ) );
+ connect( mSendOnCheckCombo, TQT_SIGNAL( activated( int ) ),
+ this, TQT_SLOT( slotEmitChanged( void ) ) );
// "default send method" combo:
- mSendMethodCombo = new QComboBox( false, group );
- mSendMethodCombo->insertStringList( QStringList()
+ mSendMethodCombo = new TQComboBox( false, group );
+ mSendMethodCombo->insertStringList( TQStringList()
<< i18n("Send Now")
<< i18n("Send Later") );
glay->addWidget( mSendMethodCombo, 2, 1 );
- connect( mSendMethodCombo, SIGNAL( activated( int ) ),
- this, SLOT( slotEmitChanged( void ) ) );
+ connect( mSendMethodCombo, TQT_SIGNAL( activated( int ) ),
+ this, TQT_SLOT( slotEmitChanged( void ) ) );
// "message property" combo:
// ### FIXME: remove completely?
- mMessagePropertyCombo = new QComboBox( false, group );
- mMessagePropertyCombo->insertStringList( QStringList()
+ mMessagePropertyCombo = new TQComboBox( false, group );
+ mMessagePropertyCombo->insertStringList( TQStringList()
<< i18n("Allow 8-bit")
<< i18n("MIME Compliant (Quoted Printable)") );
glay->addWidget( mMessagePropertyCombo, 3, 1 );
- connect( mMessagePropertyCombo, SIGNAL( activated( int ) ),
- this, SLOT( slotEmitChanged( void ) ) );
+ connect( mMessagePropertyCombo, TQT_SIGNAL( activated( int ) ),
+ this, TQT_SLOT( slotEmitChanged( void ) ) );
// "default domain" input field:
mDefaultDomainEdit = new KLineEdit( group );
glay->addMultiCellWidget( mDefaultDomainEdit, 4, 4, 1, 2 );
- connect( mDefaultDomainEdit, SIGNAL( textChanged( const QString& ) ),
- this, SLOT( slotEmitChanged( void ) ) );
+ connect( mDefaultDomainEdit, TQT_SIGNAL( textChanged( const TQString& ) ),
+ this, TQT_SLOT( slotEmitChanged( void ) ) );
// labels:
- QLabel *l = new QLabel( mSendOnCheckCombo, /*buddy*/
+ TQLabel *l = new TQLabel( mSendOnCheckCombo, /*buddy*/
i18n("Send &messages in outbox folder:"), group );
glay->addWidget( l, 1, 0 );
- QString msg = i18n( GlobalSettings::self()->sendOnCheckItem()->whatsThis().utf8() );
- QWhatsThis::add( l, msg );
- QWhatsThis::add( mSendOnCheckCombo, msg );
+ TQString msg = i18n( GlobalSettings::self()->sendOnCheckItem()->whatsThis().utf8() );
+ TQWhatsThis::add( l, msg );
+ TQWhatsThis::add( mSendOnCheckCombo, msg );
- glay->addWidget( new QLabel( mSendMethodCombo, /*buddy*/
+ glay->addWidget( new TQLabel( mSendMethodCombo, /*buddy*/
i18n("Defa&ult send method:"), group ), 2, 0 );
- glay->addWidget( new QLabel( mMessagePropertyCombo, /*buddy*/
+ glay->addWidget( new TQLabel( mMessagePropertyCombo, /*buddy*/
i18n("Message &property:"), group ), 3, 0 );
- l = new QLabel( mDefaultDomainEdit, /*buddy*/
+ l = new TQLabel( mDefaultDomainEdit, /*buddy*/
i18n("Defaul&t domain:"), group );
glay->addWidget( l, 4, 0 );
- // and now: add QWhatsThis:
+ // and now: add TQWhatsThis:
msg = i18n( "<qt><p>The default domain is used to complete email "
"addresses that only consist of the user's name."
"</p></qt>" );
- QWhatsThis::add( l, msg );
- QWhatsThis::add( mDefaultDomainEdit, msg );
+ TQWhatsThis::add( l, msg );
+ TQWhatsThis::add( mDefaultDomainEdit, msg );
}
void AccountsPage::SendingTab::slotTransportSelected()
{
- QListViewItem *cur = mTransportList->selectedItem();
+ TQListViewItem *cur = mTransportList->selectedItem();
mModifyTransportButton->setEnabled( cur );
mRemoveTransportButton->setEnabled( cur );
mSetDefaultTransportButton->setEnabled( cur );
}
// adds a number to @p name to make the name unique
-static inline QString uniqueName( const QStringList & list,
- const QString & name )
+static inline TQString uniqueName( const TQStringList & list,
+ const TQString & name )
{
int suffix = 1;
- QString result = name;
+ TQString result = name;
while ( list.find( result ) != list.end() ) {
result = i18n("%1: name; %2: number appended to it to make it unique "
"among a list of names", "%1 %2")
@@ -747,12 +747,12 @@ static inline QString uniqueName( const QStringList & list,
void AccountsPage::SendingTab::slotSetDefaultTransport()
{
- QListViewItem *item = mTransportList->selectedItem();
+ TQListViewItem *item = mTransportList->selectedItem();
if ( !item ) return;
KMTransportInfo ti;
- QListViewItemIterator it( mTransportList );
+ TQListViewItemIterator it( mTransportList );
for ( ; it.current(); ++it ) {
ti.readConfig( KMTransportInfo::findTransport( it.current()->text(0) ));
if ( ti.type != "sendmail" ) {
@@ -778,17 +778,17 @@ void AccountsPage::SendingTab::slotAddTransport()
{ // limit scope of selDialog
KMTransportSelDlg selDialog( this );
- if ( selDialog.exec() != QDialog::Accepted ) return;
+ if ( selDialog.exec() != TQDialog::Accepted ) return;
transportType = selDialog.selected();
}
KMTransportInfo *transportInfo = new KMTransportInfo();
switch ( transportType ) {
case 0: // smtp
- transportInfo->type = QString::fromLatin1("smtp");
+ transportInfo->type = TQString::fromLatin1("smtp");
break;
case 1: // sendmail
- transportInfo->type = QString::fromLatin1("sendmail");
+ transportInfo->type = TQString::fromLatin1("sendmail");
transportInfo->name = i18n("Sendmail");
transportInfo->host = _PATH_SENDMAIL; // ### FIXME: use const, not #define
break;
@@ -800,12 +800,12 @@ void AccountsPage::SendingTab::slotAddTransport()
// create list of names:
// ### move behind dialog.exec()?
- QStringList transportNames;
- QPtrListIterator<KMTransportInfo> it( mTransportInfoList );
+ TQStringList transportNames;
+ TQPtrListIterator<KMTransportInfo> it( mTransportInfoList );
for ( it.toFirst() ; it.current() ; ++it )
transportNames << (*it)->name;
- if( dialog.exec() != QDialog::Accepted ) {
+ if( dialog.exec() != TQDialog::Accepted ) {
delete transportInfo;
return;
}
@@ -819,8 +819,8 @@ void AccountsPage::SendingTab::slotAddTransport()
// append to listview:
// ### FIXME: insert before the selected item, append on empty selection
- QListViewItem *lastItem = mTransportList->firstChild();
- QString typeDisplayName;
+ TQListViewItem *lastItem = mTransportList->firstChild();
+ TQString typeDisplayName;
if ( lastItem ) {
typeDisplayName = transportInfo->type;
} else {
@@ -831,7 +831,7 @@ void AccountsPage::SendingTab::slotAddTransport()
.arg( transportInfo->type );
GlobalSettings::self()->setDefaultTransport( transportInfo->name );
}
- (void) new QListViewItem( mTransportList, lastItem, transportInfo->name,
+ (void) new TQListViewItem( mTransportList, lastItem, transportInfo->name,
typeDisplayName );
// notify anyone who cares:
@@ -841,24 +841,24 @@ void AccountsPage::SendingTab::slotAddTransport()
void AccountsPage::SendingTab::slotModifySelectedTransport()
{
- QListViewItem *item = mTransportList->selectedItem();
+ TQListViewItem *item = mTransportList->selectedItem();
if ( !item ) return;
- const QString& originalTransport = item->text(0);
+ const TQString& originalTransport = item->text(0);
- QPtrListIterator<KMTransportInfo> it( mTransportInfoList );
+ TQPtrListIterator<KMTransportInfo> it( mTransportInfoList );
for ( it.toFirst() ; it.current() ; ++it )
if ( (*it)->name == item->text(0) ) break;
if ( !it.current() ) return;
KMTransportDialog dialog( i18n("Modify Transport"), (*it), this );
- if ( dialog.exec() != QDialog::Accepted ) return;
+ if ( dialog.exec() != TQDialog::Accepted ) return;
// create the list of names of transports, but leave out the current
// item:
- QStringList transportNames;
- QPtrListIterator<KMTransportInfo> jt( mTransportInfoList );
+ TQStringList transportNames;
+ TQPtrListIterator<KMTransportInfo> jt( mTransportInfoList );
int entryLocation = -1;
for ( jt.toFirst() ; jt.current() ; ++jt )
if ( jt != it )
@@ -874,9 +874,9 @@ void AccountsPage::SendingTab::slotModifySelectedTransport()
// and insert the new name at the position of the old in the list of
// strings; then broadcast the new list:
transportNames.insert( transportNames.at( entryLocation ), (*it)->name );
- const QString& newTransportName = (*it)->name;
+ const TQString& newTransportName = (*it)->name;
- QStringList changedIdents;
+ TQStringList changedIdents;
KPIM::IdentityManager * im = kmkernel->identityManager();
for ( KPIM::IdentityManager::Iterator it = im->modifyBegin(); it != im->modifyEnd(); ++it ) {
if ( originalTransport == (*it).transport() ) {
@@ -886,7 +886,7 @@ void AccountsPage::SendingTab::slotModifySelectedTransport()
}
if ( !changedIdents.isEmpty() ) {
- QString information = i18n( "This identity has been changed to use the modified transport:",
+ TQString information = i18n( "This identity has been changed to use the modified transport:",
"These %n identities have been changed to use the modified transport:",
changedIdents.count() );
KMessageBox::informationList( this, information, changedIdents );
@@ -898,39 +898,39 @@ void AccountsPage::SendingTab::slotModifySelectedTransport()
void AccountsPage::SendingTab::slotRemoveSelectedTransport()
{
- QListViewItem *item = mTransportList->selectedItem();
+ TQListViewItem *item = mTransportList->selectedItem();
if ( !item ) return;
- QStringList changedIdents;
+ TQStringList changedIdents;
KPIM::IdentityManager * im = kmkernel->identityManager();
for ( KPIM::IdentityManager::Iterator it = im->modifyBegin(); it != im->modifyEnd(); ++it ) {
if ( item->text( 0 ) == (*it).transport() ) {
- (*it).setTransport( QString::null );
+ (*it).setTransport( TQString::null );
changedIdents += (*it).identityName();
}
}
// if the deleted transport is the currently used transport reset it to default
- const QString& currentTransport = GlobalSettings::self()->currentTransport();
+ const TQString& currentTransport = GlobalSettings::self()->currentTransport();
if ( item->text( 0 ) == currentTransport ) {
- GlobalSettings::self()->setCurrentTransport( QString::null );
+ GlobalSettings::self()->setCurrentTransport( TQString::null );
}
if ( !changedIdents.isEmpty() ) {
- QString information = i18n( "This identity has been changed to use the default transport:",
+ TQString information = i18n( "This identity has been changed to use the default transport:",
"These %n identities have been changed to use the default transport:",
changedIdents.count() );
KMessageBox::informationList( this, information, changedIdents );
}
- QPtrListIterator<KMTransportInfo> it( mTransportInfoList );
+ TQPtrListIterator<KMTransportInfo> it( mTransportInfoList );
for ( it.toFirst() ; it.current() ; ++it )
if ( (*it)->name == item->text(0) ) break;
if ( !it.current() ) return;
KMTransportInfo ti;
- QListViewItem *newCurrent = item->itemBelow();
+ TQListViewItem *newCurrent = item->itemBelow();
if ( !newCurrent ) newCurrent = item->itemAbove();
//mTransportList->removeItem( item );
if ( newCurrent ) {
@@ -946,13 +946,13 @@ void AccountsPage::SendingTab::slotRemoveSelectedTransport()
}
}
} else {
- GlobalSettings::self()->setDefaultTransport( QString::null );
+ GlobalSettings::self()->setDefaultTransport( TQString::null );
}
delete item;
mTransportInfoList.remove( it );
- QStringList transportNames;
+ TQStringList transportNames;
for ( it.toFirst() ; it.current() ; ++it )
transportNames << (*it)->name;
emit transportListChanged( transportNames );
@@ -969,22 +969,22 @@ void AccountsPage::SendingTab::doLoadOther() {
int numTransports = general.readNumEntry("transports", 0);
- QListViewItem *top = 0;
+ TQListViewItem *top = 0;
mTransportInfoList.clear();
mTransportList->clear();
- QStringList transportNames;
+ TQStringList transportNames;
for ( int i = 1 ; i <= numTransports ; i++ ) {
KMTransportInfo *ti = new KMTransportInfo();
ti->readConfig(i);
mTransportInfoList.append( ti );
transportNames << ti->name;
- top = new QListViewItem( mTransportList, top, ti->name, ti->type );
+ top = new TQListViewItem( mTransportList, top, ti->name, ti->type );
}
emit transportListChanged( transportNames );
- const QString &defaultTransport = GlobalSettings::self()->defaultTransport();
+ const TQString &defaultTransport = GlobalSettings::self()->defaultTransport();
- QListViewItemIterator it( mTransportList );
+ TQListViewItemIterator it( mTransportList );
for ( ; it.current(); ++it ) {
if ( it.current()->text(0) == defaultTransport ) {
if ( it.current()->text(1) != "sendmail" ) {
@@ -1008,7 +1008,7 @@ void AccountsPage::SendingTab::doLoadOther() {
mConfirmSendCheck->setChecked( composer.readBoolEntry( "confirm-before-send",
false ) );
- QString str = general.readEntry( "Default domain" );
+ TQString str = general.readEntry( "Default domain" );
if( str.isEmpty() )
{
//### FIXME: Use the global convenience function instead of the homebrewed
@@ -1020,7 +1020,7 @@ void AccountsPage::SendingTab::doLoadOther() {
buffer[255] = 0;
else
buffer[0] = 0;
- str = QString::fromLatin1( *buffer ? buffer : "localhost" );
+ str = TQString::fromLatin1( *buffer ? buffer : "localhost" );
}
mDefaultDomainEdit->setText( str );
}
@@ -1031,7 +1031,7 @@ void AccountsPage::SendingTab::save() {
// Save transports:
general.writeEntry( "transports", mTransportInfoList.count() );
- QPtrListIterator<KMTransportInfo> it( mTransportInfoList );
+ TQPtrListIterator<KMTransportInfo> it( mTransportInfoList );
for ( int i = 1 ; it.current() ; ++it, ++i )
(*it)->writeConfig(i);
@@ -1046,27 +1046,27 @@ void AccountsPage::SendingTab::save() {
general.writeEntry( "Default domain", mDefaultDomainEdit->text() );
}
-QString AccountsPage::ReceivingTab::helpAnchor() const {
- return QString::fromLatin1("configure-accounts-receiving");
+TQString AccountsPage::ReceivingTab::helpAnchor() const {
+ return TQString::fromLatin1("configure-accounts-receiving");
}
-AccountsPageReceivingTab::AccountsPageReceivingTab( QWidget * parent, const char * name )
+AccountsPageReceivingTab::AccountsPageReceivingTab( TQWidget * parent, const char * name )
: ConfigModuleTab ( parent, name )
{
// temp. vars:
- QVBoxLayout *vlay;
- QVBoxLayout *btn_vlay;
- QHBoxLayout *hlay;
- QPushButton *button;
- QGroupBox *group;
+ TQVBoxLayout *vlay;
+ TQVBoxLayout *btn_vlay;
+ TQHBoxLayout *hlay;
+ TQPushButton *button;
+ TQGroupBox *group;
- vlay = new QVBoxLayout( this, KDialog::marginHint(), KDialog::spacingHint() );
+ vlay = new TQVBoxLayout( this, KDialog::marginHint(), KDialog::spacingHint() );
// label: zero stretch
- vlay->addWidget( new QLabel( i18n("Incoming accounts (add at least one):"), this ) );
+ vlay->addWidget( new TQLabel( i18n("Incoming accounts (add at least one):"), this ) );
// hbox layout: stretch 10, spacing inherited from vlay
- hlay = new QHBoxLayout();
+ hlay = new TQHBoxLayout();
vlay->addLayout( hlay, 10 ); // high stretch to suppress groupbox's growing
// account list: left widget in hlay; stretch 1
@@ -1076,75 +1076,75 @@ AccountsPageReceivingTab::AccountsPageReceivingTab( QWidget * parent, const char
mAccountList->addColumn( i18n("Folder") );
mAccountList->setAllColumnsShowFocus( true );
mAccountList->setSorting( -1 );
- connect( mAccountList, SIGNAL(selectionChanged()),
- this, SLOT(slotAccountSelected()) );
- connect( mAccountList, SIGNAL(doubleClicked( QListViewItem *)),
- this, SLOT(slotModifySelectedAccount()) );
+ connect( mAccountList, TQT_SIGNAL(selectionChanged()),
+ this, TQT_SLOT(slotAccountSelected()) );
+ connect( mAccountList, TQT_SIGNAL(doubleClicked( TQListViewItem *)),
+ this, TQT_SLOT(slotModifySelectedAccount()) );
hlay->addWidget( mAccountList, 1 );
// a vbox layout for the buttons: zero stretch, spacing inherited from hlay
- btn_vlay = new QVBoxLayout( hlay );
+ btn_vlay = new TQVBoxLayout( hlay );
// "add..." button: stretch 0
- button = new QPushButton( i18n("A&dd..."), this );
+ button = new TQPushButton( i18n("A&dd..."), this );
button->setAutoDefault( false );
- connect( button, SIGNAL(clicked()),
- this, SLOT(slotAddAccount()) );
+ connect( button, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(slotAddAccount()) );
btn_vlay->addWidget( button );
// "modify..." button: stretch 0
- mModifyAccountButton = new QPushButton( i18n("&Modify..."), this );
+ mModifyAccountButton = new TQPushButton( i18n("&Modify..."), this );
mModifyAccountButton->setAutoDefault( false );
mModifyAccountButton->setEnabled( false ); // b/c no item is selected yet
- connect( mModifyAccountButton, SIGNAL(clicked()),
- this, SLOT(slotModifySelectedAccount()) );
+ connect( mModifyAccountButton, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(slotModifySelectedAccount()) );
btn_vlay->addWidget( mModifyAccountButton );
// "remove..." button: stretch 0
- mRemoveAccountButton = new QPushButton( i18n("R&emove"), this );
+ mRemoveAccountButton = new TQPushButton( i18n("R&emove"), this );
mRemoveAccountButton->setAutoDefault( false );
mRemoveAccountButton->setEnabled( false ); // b/c no item is selected yet
- connect( mRemoveAccountButton, SIGNAL(clicked()),
- this, SLOT(slotRemoveSelectedAccount()) );
+ connect( mRemoveAccountButton, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(slotRemoveSelectedAccount()) );
btn_vlay->addWidget( mRemoveAccountButton );
btn_vlay->addStretch( 1 ); // spacer
- mCheckmailStartupCheck = new QCheckBox( i18n("Chec&k mail on startup"), this );
+ mCheckmailStartupCheck = new TQCheckBox( i18n("Chec&k mail on startup"), this );
vlay->addWidget( mCheckmailStartupCheck );
- connect( mCheckmailStartupCheck, SIGNAL( stateChanged( int ) ),
- this, SLOT( slotEmitChanged( void ) ) );
+ connect( mCheckmailStartupCheck, TQT_SIGNAL( stateChanged( int ) ),
+ this, TQT_SLOT( slotEmitChanged( void ) ) );
// "New Mail Notification" group box: stretch 0
- group = new QVGroupBox( i18n("New Mail Notification"), this );
+ group = new TQVGroupBox( i18n("New Mail Notification"), this );
vlay->addWidget( group );
group->layout()->setSpacing( KDialog::spacingHint() );
// "beep on new mail" check box:
- mBeepNewMailCheck = new QCheckBox(i18n("&Beep"), group );
- mBeepNewMailCheck->setSizePolicy( QSizePolicy( QSizePolicy::MinimumExpanding,
- QSizePolicy::Fixed ) );
- connect( mBeepNewMailCheck, SIGNAL( stateChanged( int ) ),
- this, SLOT( slotEmitChanged( void ) ) );
+ mBeepNewMailCheck = new TQCheckBox(i18n("&Beep"), group );
+ mBeepNewMailCheck->setSizePolicy( TQSizePolicy( TQSizePolicy::MinimumExpanding,
+ TQSizePolicy::Fixed ) );
+ connect( mBeepNewMailCheck, TQT_SIGNAL( stateChanged( int ) ),
+ this, TQT_SLOT( slotEmitChanged( void ) ) );
// "Detailed new mail notification" check box
mVerboseNotificationCheck =
- new QCheckBox( i18n( "Deta&iled new mail notification" ), group );
- mVerboseNotificationCheck->setSizePolicy( QSizePolicy( QSizePolicy::MinimumExpanding,
- QSizePolicy::Fixed ) );
- QToolTip::add( mVerboseNotificationCheck,
+ new TQCheckBox( i18n( "Deta&iled new mail notification" ), group );
+ mVerboseNotificationCheck->setSizePolicy( TQSizePolicy( TQSizePolicy::MinimumExpanding,
+ TQSizePolicy::Fixed ) );
+ TQToolTip::add( mVerboseNotificationCheck,
i18n( "Show for each folder the number of newly arrived "
"messages" ) );
- QWhatsThis::add( mVerboseNotificationCheck,
+ TQWhatsThis::add( mVerboseNotificationCheck,
GlobalSettings::self()->verboseNewMailNotificationItem()->whatsThis() );
- connect( mVerboseNotificationCheck, SIGNAL( stateChanged( int ) ),
- this, SLOT( slotEmitChanged() ) );
+ connect( mVerboseNotificationCheck, TQT_SIGNAL( stateChanged( int ) ),
+ this, TQT_SLOT( slotEmitChanged() ) );
// "Other Actions" button:
- mOtherNewMailActionsButton = new QPushButton( i18n("Other Actio&ns"), group );
- mOtherNewMailActionsButton->setSizePolicy( QSizePolicy( QSizePolicy::Fixed,
- QSizePolicy::Fixed ) );
- connect( mOtherNewMailActionsButton, SIGNAL(clicked()),
- this, SLOT(slotEditNotifications()) );
+ mOtherNewMailActionsButton = new TQPushButton( i18n("Other Actio&ns"), group );
+ mOtherNewMailActionsButton->setSizePolicy( TQSizePolicy( TQSizePolicy::Fixed,
+ TQSizePolicy::Fixed ) );
+ connect( mOtherNewMailActionsButton, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(slotEditNotifications()) );
}
AccountsPageReceivingTab::~AccountsPageReceivingTab()
@@ -1153,14 +1153,14 @@ AccountsPageReceivingTab::~AccountsPageReceivingTab()
// we have a number of things to clean up:
// The newly created accounts
- QValueList< QGuardedPtr<KMAccount> >::Iterator it;
+ TQValueList< TQGuardedPtr<KMAccount> >::Iterator it;
for (it = mNewAccounts.begin(); it != mNewAccounts.end(); ++it ) {
delete (*it);
}
mNewAccounts.clear();
// The modified accounts
- QValueList<ModifiedAccountsType*>::Iterator j;
+ TQValueList<ModifiedAccountsType*>::Iterator j;
for ( j = mModifiedAccounts.begin() ; j != mModifiedAccounts.end() ; ++j ) {
delete (*j)->newAccount;
delete (*j);
@@ -1172,31 +1172,31 @@ AccountsPageReceivingTab::~AccountsPageReceivingTab()
void AccountsPage::ReceivingTab::slotAccountSelected()
{
- QListViewItem * item = mAccountList->selectedItem();
+ TQListViewItem * item = mAccountList->selectedItem();
mModifyAccountButton->setEnabled( item );
mRemoveAccountButton->setEnabled( item );
}
-QStringList AccountsPage::ReceivingTab::occupiedNames()
+TQStringList AccountsPage::ReceivingTab::occupiedNames()
{
- QStringList accountNames = kmkernel->acctMgr()->getAccounts();
+ TQStringList accountNames = kmkernel->acctMgr()->getAccounts();
- QValueList<ModifiedAccountsType*>::Iterator k;
+ TQValueList<ModifiedAccountsType*>::Iterator k;
for (k = mModifiedAccounts.begin(); k != mModifiedAccounts.end(); ++k )
if ((*k)->oldAccount)
accountNames.remove( (*k)->oldAccount->name() );
- QValueList< QGuardedPtr<KMAccount> >::Iterator l;
+ TQValueList< TQGuardedPtr<KMAccount> >::Iterator l;
for (l = mAccountsToDelete.begin(); l != mAccountsToDelete.end(); ++l )
if (*l)
accountNames.remove( (*l)->name() );
- QValueList< QGuardedPtr<KMAccount> >::Iterator it;
+ TQValueList< TQGuardedPtr<KMAccount> >::Iterator it;
for (it = mNewAccounts.begin(); it != mNewAccounts.end(); ++it )
if (*it)
accountNames += (*it)->name();
- QValueList<ModifiedAccountsType*>::Iterator j;
+ TQValueList<ModifiedAccountsType*>::Iterator j;
for (j = mModifiedAccounts.begin(); j != mModifiedAccounts.end(); ++j )
accountNames += (*j)->newAccount->name();
@@ -1205,7 +1205,7 @@ QStringList AccountsPage::ReceivingTab::occupiedNames()
void AccountsPage::ReceivingTab::slotAddAccount() {
KMAcctSelDlg accountSelectorDialog( this );
- if( accountSelectorDialog.exec() != QDialog::Accepted ) return;
+ if( accountSelectorDialog.exec() != TQDialog::Accepted ) return;
const char *accountType = 0;
switch ( accountSelectorDialog.selected() ) {
@@ -1223,7 +1223,7 @@ void AccountsPage::ReceivingTab::slotAddAccount() {
}
KMAccount *account
- = kmkernel->acctMgr()->create( QString::fromLatin1( accountType ) );
+ = kmkernel->acctMgr()->create( TQString::fromLatin1( accountType ) );
if ( !account ) {
// ### FIXME: Give the user more information. Is this error
// recoverable?
@@ -1235,9 +1235,9 @@ void AccountsPage::ReceivingTab::slotAddAccount() {
AccountDialog dialog( i18n("Add Account"), account, this );
- QStringList accountNames = occupiedNames();
+ TQStringList accountNames = occupiedNames();
- if( dialog.exec() != QDialog::Accepted ) {
+ if( dialog.exec() != TQDialog::Accepted ) {
delete account;
return;
}
@@ -1245,12 +1245,12 @@ void AccountsPage::ReceivingTab::slotAddAccount() {
account->deinstallTimer();
account->setName( uniqueName( accountNames, account->name() ) );
- QListViewItem *after = mAccountList->firstChild();
+ TQListViewItem *after = mAccountList->firstChild();
while ( after && after->nextSibling() )
after = after->nextSibling();
- QListViewItem *listItem =
- new QListViewItem( mAccountList, after, account->name(), account->type() );
+ TQListViewItem *listItem =
+ new TQListViewItem( mAccountList, after, account->name(), account->type() );
if( account->folder() )
listItem->setText( 2, account->folder()->label() );
@@ -1262,11 +1262,11 @@ void AccountsPage::ReceivingTab::slotAddAccount() {
void AccountsPage::ReceivingTab::slotModifySelectedAccount()
{
- QListViewItem *listItem = mAccountList->selectedItem();
+ TQListViewItem *listItem = mAccountList->selectedItem();
if( !listItem ) return;
KMAccount *account = 0;
- QValueList<ModifiedAccountsType*>::Iterator j;
+ TQValueList<ModifiedAccountsType*>::Iterator j;
for (j = mModifiedAccounts.begin(); j != mModifiedAccounts.end(); ++j )
if ( (*j)->newAccount->name() == listItem->text(0) ) {
account = (*j)->newAccount;
@@ -1274,7 +1274,7 @@ void AccountsPage::ReceivingTab::slotModifySelectedAccount()
}
if ( !account ) {
- QValueList< QGuardedPtr<KMAccount> >::Iterator it;
+ TQValueList< TQGuardedPtr<KMAccount> >::Iterator it;
for ( it = mNewAccounts.begin() ; it != mNewAccounts.end() ; ++it )
if ( (*it)->name() == listItem->text(0) ) {
account = *it;
@@ -1309,12 +1309,12 @@ void AccountsPage::ReceivingTab::slotModifySelectedAccount()
}
}
- QStringList accountNames = occupiedNames();
+ TQStringList accountNames = occupiedNames();
accountNames.remove( account->name() );
AccountDialog dialog( i18n("Modify Account"), account, this );
- if( dialog.exec() != QDialog::Accepted ) return;
+ if( dialog.exec() != TQDialog::Accepted ) return;
account->setName( uniqueName( accountNames, account->name() ) );
@@ -1329,11 +1329,11 @@ void AccountsPage::ReceivingTab::slotModifySelectedAccount()
void AccountsPage::ReceivingTab::slotRemoveSelectedAccount() {
- QListViewItem *listItem = mAccountList->selectedItem();
+ TQListViewItem *listItem = mAccountList->selectedItem();
if( !listItem ) return;
KMAccount *acct = 0;
- QValueList<ModifiedAccountsType*>::Iterator j;
+ TQValueList<ModifiedAccountsType*>::Iterator j;
for ( j = mModifiedAccounts.begin() ; j != mModifiedAccounts.end() ; ++j )
if ( (*j)->newAccount->name() == listItem->text(0) ) {
acct = (*j)->oldAccount;
@@ -1342,7 +1342,7 @@ void AccountsPage::ReceivingTab::slotRemoveSelectedAccount() {
break;
}
if ( !acct ) {
- QValueList< QGuardedPtr<KMAccount> >::Iterator it;
+ TQValueList< TQGuardedPtr<KMAccount> >::Iterator it;
for ( it = mNewAccounts.begin() ; it != mNewAccounts.end() ; ++it )
if ( (*it)->name() == listItem->text(0) ) {
acct = *it;
@@ -1362,7 +1362,7 @@ void AccountsPage::ReceivingTab::slotRemoveSelectedAccount() {
return;
}
- QListViewItem * item = listItem->itemBelow();
+ TQListViewItem * item = listItem->itemBelow();
if ( !item ) item = listItem->itemAbove();
delete listItem;
@@ -1388,17 +1388,17 @@ void AccountsPage::ReceivingTab::doLoadOther() {
KConfigGroup general( KMKernel::config(), "General" );
mAccountList->clear();
- QListViewItem *top = 0;
+ TQListViewItem *top = 0;
for( KMAccount *a = kmkernel->acctMgr()->first(); a!=0;
a = kmkernel->acctMgr()->next() ) {
- QListViewItem *listItem =
- new QListViewItem( mAccountList, top, a->name(), a->type() );
+ TQListViewItem *listItem =
+ new TQListViewItem( mAccountList, top, a->name(), a->type() );
if( a->folder() )
listItem->setText( 2, a->folder()->label() );
top = listItem;
}
- QListViewItem *listItem = mAccountList->firstChild();
+ TQListViewItem *listItem = mAccountList->firstChild();
if ( listItem ) {
mAccountList->setCurrentItem( listItem );
mAccountList->setSelected( listItem, true );
@@ -1406,7 +1406,7 @@ void AccountsPage::ReceivingTab::doLoadOther() {
mBeepNewMailCheck->setChecked( general.readBoolEntry("beep-on-mail", false ) );
mCheckmailStartupCheck->setChecked( general.readBoolEntry("checkmail-startup", false) );
- QTimer::singleShot( 0, this, SLOT( slotTweakAccountList() ) );
+ TQTimer::singleShot( 0, this, TQT_SLOT( slotTweakAccountList() ) );
}
void AccountsPage::ReceivingTab::slotTweakAccountList()
@@ -1418,13 +1418,13 @@ void AccountsPage::ReceivingTab::slotTweakAccountList()
void AccountsPage::ReceivingTab::save() {
// Add accounts marked as new
- QValueList< QGuardedPtr<KMAccount> >::Iterator it;
+ TQValueList< TQGuardedPtr<KMAccount> >::Iterator it;
for (it = mNewAccounts.begin(); it != mNewAccounts.end(); ++it ) {
kmkernel->acctMgr()->add( *it ); // calls installTimer too
}
// Update accounts that have been modified
- QValueList<ModifiedAccountsType*>::Iterator j;
+ TQValueList<ModifiedAccountsType*>::Iterator j;
for ( j = mModifiedAccounts.begin() ; j != mModifiedAccounts.end() ; ++j ) {
(*j)->oldAccount->pseudoAssign( (*j)->newAccount );
delete (*j)->newAccount;
@@ -1471,11 +1471,11 @@ void AccountsPage::ReceivingTab::save() {
// * AppearancePage *
// * *
// *************************************************************
-QString AppearancePage::helpAnchor() const {
- return QString::fromLatin1("configure-appearance");
+TQString AppearancePage::helpAnchor() const {
+ return TQString::fromLatin1("configure-appearance");
}
-AppearancePage::AppearancePage( QWidget * parent, const char * name )
+AppearancePage::AppearancePage( TQWidget * parent, const char * name )
: ConfigModuleWithTabs( parent, name )
{
//
@@ -1518,8 +1518,8 @@ AppearancePage::AppearancePage( QWidget * parent, const char * name )
}
-QString AppearancePage::FontsTab::helpAnchor() const {
- return QString::fromLatin1("configure-appearance-fonts");
+TQString AppearancePage::FontsTab::helpAnchor() const {
+ return TQString::fromLatin1("configure-appearance-fonts");
}
static const struct {
@@ -1545,58 +1545,58 @@ static const struct {
};
static const int numFontNames = sizeof fontNames / sizeof *fontNames;
-AppearancePageFontsTab::AppearancePageFontsTab( QWidget * parent, const char * name )
+AppearancePageFontsTab::AppearancePageFontsTab( TQWidget * parent, const char * name )
: ConfigModuleTab( parent, name ), mActiveFontIndex( -1 )
{
assert( numFontNames == sizeof mFont / sizeof *mFont );
// tmp. vars:
- QVBoxLayout *vlay;
- QHBoxLayout *hlay;
- QLabel *label;
+ TQVBoxLayout *vlay;
+ TQHBoxLayout *hlay;
+ TQLabel *label;
// "Use custom fonts" checkbox, followed by <hr>
- vlay = new QVBoxLayout( this, KDialog::marginHint(), KDialog::spacingHint() );
- mCustomFontCheck = new QCheckBox( i18n("&Use custom fonts"), this );
+ vlay = new TQVBoxLayout( this, KDialog::marginHint(), KDialog::spacingHint() );
+ mCustomFontCheck = new TQCheckBox( i18n("&Use custom fonts"), this );
vlay->addWidget( mCustomFontCheck );
vlay->addWidget( new KSeparator( KSeparator::HLine, this ) );
- connect ( mCustomFontCheck, SIGNAL( stateChanged( int ) ),
- this, SLOT( slotEmitChanged( void ) ) );
+ connect ( mCustomFontCheck, TQT_SIGNAL( stateChanged( int ) ),
+ this, TQT_SLOT( slotEmitChanged( void ) ) );
// "font location" combo box and label:
- hlay = new QHBoxLayout( vlay ); // inherites spacing
- mFontLocationCombo = new QComboBox( false, this );
+ hlay = new TQHBoxLayout( vlay ); // inherites spacing
+ mFontLocationCombo = new TQComboBox( false, this );
mFontLocationCombo->setEnabled( false ); // !mCustomFontCheck->isChecked()
- QStringList fontDescriptions;
+ TQStringList fontDescriptions;
for ( int i = 0 ; i < numFontNames ; i++ )
fontDescriptions << i18n( fontNames[i].displayName );
mFontLocationCombo->insertStringList( fontDescriptions );
- label = new QLabel( mFontLocationCombo, i18n("Apply &to:"), this );
+ label = new TQLabel( mFontLocationCombo, i18n("Apply &to:"), this );
label->setEnabled( false ); // since !mCustomFontCheck->isChecked()
hlay->addWidget( label );
hlay->addWidget( mFontLocationCombo );
hlay->addStretch( 10 );
vlay->addSpacing( KDialog::spacingHint() );
- mFontChooser = new KFontChooser( this, "font", false, QStringList(),
+ mFontChooser = new KFontChooser( this, "font", false, TQStringList(),
false, 4 );
mFontChooser->setEnabled( false ); // since !mCustomFontCheck->isChecked()
vlay->addWidget( mFontChooser );
- connect ( mFontChooser, SIGNAL( fontSelected( const QFont& ) ),
- this, SLOT( slotEmitChanged( void ) ) );
+ connect ( mFontChooser, TQT_SIGNAL( fontSelected( const TQFont& ) ),
+ this, TQT_SLOT( slotEmitChanged( void ) ) );
// {en,dis}able widgets depending on the state of mCustomFontCheck:
- connect( mCustomFontCheck, SIGNAL(toggled(bool)),
- label, SLOT(setEnabled(bool)) );
- connect( mCustomFontCheck, SIGNAL(toggled(bool)),
- mFontLocationCombo, SLOT(setEnabled(bool)) );
- connect( mCustomFontCheck, SIGNAL(toggled(bool)),
- mFontChooser, SLOT(setEnabled(bool)) );
+ connect( mCustomFontCheck, TQT_SIGNAL(toggled(bool)),
+ label, TQT_SLOT(setEnabled(bool)) );
+ connect( mCustomFontCheck, TQT_SIGNAL(toggled(bool)),
+ mFontLocationCombo, TQT_SLOT(setEnabled(bool)) );
+ connect( mCustomFontCheck, TQT_SIGNAL(toggled(bool)),
+ mFontChooser, TQT_SLOT(setEnabled(bool)) );
// load the right font settings into mFontChooser:
- connect( mFontLocationCombo, SIGNAL(activated(int) ),
- this, SLOT(slotFontSelectorChanged(int)) );
+ connect( mFontLocationCombo, TQT_SIGNAL(activated(int) ),
+ this, TQT_SLOT(slotFontSelectorChanged(int)) );
}
@@ -1623,14 +1623,14 @@ void AppearancePage::FontsTab::slotFontSelectorChanged( int index )
mActiveFontIndex = index;
// Disonnect so the "Apply" button is not activated by the change
- disconnect ( mFontChooser, SIGNAL( fontSelected( const QFont& ) ),
- this, SLOT( slotEmitChanged( void ) ) );
+ disconnect ( mFontChooser, TQT_SIGNAL( fontSelected( const TQFont& ) ),
+ this, TQT_SLOT( slotEmitChanged( void ) ) );
// Display the new setting:
mFontChooser->setFont( mFont[index], fontNames[index].onlyFixed );
- connect ( mFontChooser, SIGNAL( fontSelected( const QFont& ) ),
- this, SLOT( slotEmitChanged( void ) ) );
+ connect ( mFontChooser, TQT_SIGNAL( fontSelected( const TQFont& ) ),
+ this, TQT_SLOT( slotEmitChanged( void ) ) );
// Disable Family and Size list if we have selected a quote font:
mFontChooser->enableColumn( KFontChooser::FamilyList|KFontChooser::SizeList,
@@ -1641,7 +1641,7 @@ void AppearancePage::FontsTab::doLoadOther() {
KConfigGroup fonts( KMKernel::config(), "Fonts" );
mFont[0] = KGlobalSettings::generalFont();
- QFont fixedFont = KGlobalSettings::fixedFont();
+ TQFont fixedFont = KGlobalSettings::fixedFont();
for ( int i = 0 ; i < numFontNames ; i++ )
mFont[i] = fonts.readFontEntry( fontNames[i].configName,
(fontNames[i].onlyFixed) ? &fixedFont : &mFont[0] );
@@ -1687,8 +1687,8 @@ void AppearancePage::FontsTab::save() {
fonts.writeEntry( fontNames[i].configName, mFont[i] );
}
-QString AppearancePage::ColorsTab::helpAnchor() const {
- return QString::fromLatin1("configure-appearance-colors");
+TQString AppearancePage::ColorsTab::helpAnchor() const {
+ return TQString::fromLatin1("configure-appearance-colors");
}
@@ -1723,57 +1723,57 @@ static const struct {
};
static const int numColorNames = sizeof colorNames / sizeof *colorNames;
-AppearancePageColorsTab::AppearancePageColorsTab( QWidget * parent, const char * name )
+AppearancePageColorsTab::AppearancePageColorsTab( TQWidget * parent, const char * name )
: ConfigModuleTab( parent, name )
{
// tmp. vars:
- QVBoxLayout *vlay;
+ TQVBoxLayout *vlay;
// "use custom colors" check box
- vlay = new QVBoxLayout( this, KDialog::marginHint(), KDialog::spacingHint() );
- mCustomColorCheck = new QCheckBox( i18n("&Use custom colors"), this );
+ vlay = new TQVBoxLayout( this, KDialog::marginHint(), KDialog::spacingHint() );
+ mCustomColorCheck = new TQCheckBox( i18n("&Use custom colors"), this );
vlay->addWidget( mCustomColorCheck );
- connect( mCustomColorCheck, SIGNAL( stateChanged( int ) ),
- this, SLOT( slotEmitChanged( void ) ) );
+ connect( mCustomColorCheck, TQT_SIGNAL( stateChanged( int ) ),
+ this, TQT_SLOT( slotEmitChanged( void ) ) );
// color list box:
mColorList = new ColorListBox( this );
mColorList->setEnabled( false ); // since !mCustomColorCheck->isChecked()
- QStringList modeList;
+ TQStringList modeList;
for ( int i = 0 ; i < numColorNames ; i++ )
mColorList->insertItem( new ColorListItem( i18n( colorNames[i].displayName ) ) );
vlay->addWidget( mColorList, 1 );
// "recycle colors" check box:
mRecycleColorCheck =
- new QCheckBox( i18n("Recycle colors on deep &quoting"), this );
+ new TQCheckBox( i18n("Recycle colors on deep &quoting"), this );
mRecycleColorCheck->setEnabled( false );
vlay->addWidget( mRecycleColorCheck );
- connect( mRecycleColorCheck, SIGNAL( stateChanged( int ) ),
- this, SLOT( slotEmitChanged( void ) ) );
+ connect( mRecycleColorCheck, TQT_SIGNAL( stateChanged( int ) ),
+ this, TQT_SLOT( slotEmitChanged( void ) ) );
// close to quota threshold
- QHBoxLayout *hbox = new QHBoxLayout(vlay);
- QLabel *l = new QLabel( i18n("Close to quota threshold"), this );
+ TQHBoxLayout *hbox = new TQHBoxLayout(vlay);
+ TQLabel *l = new TQLabel( i18n("Close to quota threshold"), this );
hbox->addWidget( l );
l->setEnabled( false );
- mCloseToQuotaThreshold = new QSpinBox( 0, 100, 1, this );
- connect( mCloseToQuotaThreshold, SIGNAL( valueChanged( int ) ),
- this, SLOT( slotEmitChanged( void ) ) );
+ mCloseToQuotaThreshold = new TQSpinBox( 0, 100, 1, this );
+ connect( mCloseToQuotaThreshold, TQT_SIGNAL( valueChanged( int ) ),
+ this, TQT_SLOT( slotEmitChanged( void ) ) );
mCloseToQuotaThreshold->setSuffix( i18n("%"));
hbox->addWidget( mCloseToQuotaThreshold );
- hbox->addWidget( new QWidget(this), 2 );
+ hbox->addWidget( new TQWidget(this), 2 );
// {en,dir}able widgets depending on the state of mCustomColorCheck:
- connect( mCustomColorCheck, SIGNAL(toggled(bool)),
- mColorList, SLOT(setEnabled(bool)) );
- connect( mCustomColorCheck, SIGNAL(toggled(bool)),
- mRecycleColorCheck, SLOT(setEnabled(bool)) );
- connect( mCustomColorCheck, SIGNAL(toggled(bool)),
- l, SLOT(setEnabled(bool)) );
+ connect( mCustomColorCheck, TQT_SIGNAL(toggled(bool)),
+ mColorList, TQT_SLOT(setEnabled(bool)) );
+ connect( mCustomColorCheck, TQT_SIGNAL(toggled(bool)),
+ mRecycleColorCheck, TQT_SLOT(setEnabled(bool)) );
+ connect( mCustomColorCheck, TQT_SIGNAL(toggled(bool)),
+ l, TQT_SLOT(setEnabled(bool)) );
- connect( mCustomColorCheck, SIGNAL( stateChanged( int ) ),
- this, SLOT( slotEmitChanged( void ) ) );
+ connect( mCustomColorCheck, TQT_SIGNAL( stateChanged( int ) ),
+ this, TQT_SLOT( slotEmitChanged( void ) ) );
}
void AppearancePage::ColorsTab::doLoadOther() {
@@ -1783,26 +1783,26 @@ void AppearancePage::ColorsTab::doLoadOther() {
mRecycleColorCheck->setChecked( reader.readBoolEntry( "RecycleQuoteColors", false ) );
mCloseToQuotaThreshold->setValue( GlobalSettings::closeToQuotaThreshold() );
- static const QColor defaultColor[ numColorNames ] = {
+ static const TQColor defaultColor[ numColorNames ] = {
kapp->palette().active().base(), // bg
KGlobalSettings::alternateBackgroundColor(), // alt bg
kapp->palette().active().text(), // fg
- QColor( 0x00, 0x80, 0x00 ), // quoted l1
- QColor( 0x00, 0x70, 0x00 ), // quoted l2
- QColor( 0x00, 0x60, 0x00 ), // quoted l3
+ TQColor( 0x00, 0x80, 0x00 ), // quoted l1
+ TQColor( 0x00, 0x70, 0x00 ), // quoted l2
+ TQColor( 0x00, 0x60, 0x00 ), // quoted l3
KGlobalSettings::linkColor(), // link
KGlobalSettings::visitedLinkColor(), // visited link
Qt::red, // misspelled words
Qt::red, // new msg
Qt::blue, // unread mgs
- QColor( 0x00, 0x7F, 0x00 ), // important msg
+ TQColor( 0x00, 0x7F, 0x00 ), // important msg
Qt::blue, // todo mgs
- QColor( 0x00, 0x80, 0xFF ), // light blue // pgp encrypted
- QColor( 0x40, 0xFF, 0x40 ), // light green // pgp ok, trusted key
- QColor( 0xFF, 0xFF, 0x40 ), // light yellow // pgp ok, untrusted key
- QColor( 0xFF, 0xFF, 0x40 ), // light yellow // pgp unchk
+ TQColor( 0x00, 0x80, 0xFF ), // light blue // pgp encrypted
+ TQColor( 0x40, 0xFF, 0x40 ), // light green // pgp ok, trusted key
+ TQColor( 0xFF, 0xFF, 0x40 ), // light yellow // pgp ok, untrusted key
+ TQColor( 0xFF, 0xFF, 0x40 ), // light yellow // pgp unchk
Qt::red, // pgp bad
- QColor( 0xFF, 0x40, 0x40 ), // warning text color: light red
+ TQColor( 0xFF, 0x40, 0x40 ), // warning text color: light red
Qt::red, // close to quota
Qt::lightGray, // colorbar plain bg
Qt::black, // colorbar plain fg
@@ -1814,8 +1814,8 @@ void AppearancePage::ColorsTab::doLoadOther() {
mColorList->setColor( i,
reader.readColorEntry( colorNames[i].configName, &defaultColor[i] ) );
}
- connect( mColorList, SIGNAL( changed( ) ),
- this, SLOT( slotEmitChanged( void ) ) );
+ connect( mColorList, TQT_SIGNAL( changed( ) ),
+ this, TQT_SLOT( slotEmitChanged( void ) ) );
}
void AppearancePage::ColorsTab::installProfile( KConfig * profile ) {
@@ -1847,8 +1847,8 @@ void AppearancePage::ColorsTab::save() {
GlobalSettings::setCloseToQuotaThreshold( mCloseToQuotaThreshold->value() );
}
-QString AppearancePage::LayoutTab::helpAnchor() const {
- return QString::fromLatin1("configure-appearance-layout");
+TQString AppearancePage::LayoutTab::helpAnchor() const {
+ return TQString::fromLatin1("configure-appearance-layout");
}
static const EnumConfigEntryItem folderListModes[] = {
@@ -1891,45 +1891,45 @@ static const EnumConfigEntry readerWindowMode = {
readerWindowModes, DIM(readerWindowModes), 1
};
-AppearancePageLayoutTab::AppearancePageLayoutTab( QWidget * parent, const char * name )
+AppearancePageLayoutTab::AppearancePageLayoutTab( TQWidget * parent, const char * name )
: ConfigModuleTab( parent, name )
{
// tmp. vars:
- QVBoxLayout * vlay;
+ TQVBoxLayout * vlay;
- vlay = new QVBoxLayout( this, KDialog::marginHint(), KDialog::spacingHint() );
+ vlay = new TQVBoxLayout( this, KDialog::marginHint(), KDialog::spacingHint() );
// "folder list" radio buttons:
- populateButtonGroup( mFolderListGroup = new QHButtonGroup( this ), folderListMode );
+ populateButtonGroup( mFolderListGroup = new TQHButtonGroup( this ), folderListMode );
vlay->addWidget( mFolderListGroup );
- connect( mFolderListGroup, SIGNAL ( clicked( int ) ),
- this, SLOT( slotEmitChanged() ) );
+ connect( mFolderListGroup, TQT_SIGNAL ( clicked( int ) ),
+ this, TQT_SLOT( slotEmitChanged() ) );
- mFavoriteFolderViewCB = new QCheckBox( i18n("Show favorite folder view"), this );
- connect( mFavoriteFolderViewCB, SIGNAL(toggled(bool)), SLOT(slotEmitChanged()) );
+ mFavoriteFolderViewCB = new TQCheckBox( i18n("Show favorite folder view"), this );
+ connect( mFavoriteFolderViewCB, TQT_SIGNAL(toggled(bool)), TQT_SLOT(slotEmitChanged()) );
vlay->addWidget( mFavoriteFolderViewCB );
- mFolderQuickSearchCB = new QCheckBox( i18n("Show folder quick search field"), this );
- connect( mFolderQuickSearchCB, SIGNAL(toggled(bool)), SLOT(slotEmitChanged()) );
+ mFolderQuickSearchCB = new TQCheckBox( i18n("Show folder quick search field"), this );
+ connect( mFolderQuickSearchCB, TQT_SIGNAL(toggled(bool)), TQT_SLOT(slotEmitChanged()) );
vlay->addWidget( mFolderQuickSearchCB );
// "show reader window" radio buttons:
- populateButtonGroup( mReaderWindowModeGroup = new QVButtonGroup( this ), readerWindowMode );
+ populateButtonGroup( mReaderWindowModeGroup = new TQVButtonGroup( this ), readerWindowMode );
vlay->addWidget( mReaderWindowModeGroup );
- connect( mReaderWindowModeGroup, SIGNAL ( clicked( int ) ),
- this, SLOT( slotEmitChanged() ) );
+ connect( mReaderWindowModeGroup, TQT_SIGNAL ( clicked( int ) ),
+ this, TQT_SLOT( slotEmitChanged() ) );
// "Show MIME Tree" radio buttons:
- populateButtonGroup( mMIMETreeModeGroup = new QVButtonGroup( this ), mimeTreeMode );
+ populateButtonGroup( mMIMETreeModeGroup = new TQVButtonGroup( this ), mimeTreeMode );
vlay->addWidget( mMIMETreeModeGroup );
- connect( mMIMETreeModeGroup, SIGNAL ( clicked( int ) ),
- this, SLOT( slotEmitChanged() ) );
+ connect( mMIMETreeModeGroup, TQT_SIGNAL ( clicked( int ) ),
+ this, TQT_SLOT( slotEmitChanged() ) );
// "MIME Tree Location" radio buttons:
- populateButtonGroup( mMIMETreeLocationGroup = new QHButtonGroup( this ), mimeTreeLocation );
+ populateButtonGroup( mMIMETreeLocationGroup = new TQHButtonGroup( this ), mimeTreeLocation );
vlay->addWidget( mMIMETreeLocationGroup );
- connect( mMIMETreeLocationGroup, SIGNAL ( clicked( int ) ),
- this, SLOT( slotEmitChanged() ) );
+ connect( mMIMETreeLocationGroup, TQT_SIGNAL ( clicked( int ) ),
+ this, TQT_SLOT( slotEmitChanged() ) );
vlay->addStretch( 10 ); // spacer
}
@@ -1972,8 +1972,8 @@ void AppearancePage::LayoutTab::save() {
// Appearance Message List
//
-QString AppearancePage::HeadersTab::helpAnchor() const {
- return QString::fromLatin1("configure-appearance-headers");
+TQString AppearancePage::HeadersTab::helpAnchor() const {
+ return TQString::fromLatin1("configure-appearance-headers");
}
static const struct {
@@ -1989,87 +1989,87 @@ static const struct {
static const int numDateDisplayConfig =
sizeof dateDisplayConfig / sizeof *dateDisplayConfig;
-AppearancePageHeadersTab::AppearancePageHeadersTab( QWidget * parent, const char * name )
+AppearancePageHeadersTab::AppearancePageHeadersTab( TQWidget * parent, const char * name )
: ConfigModuleTab( parent, name ),
mCustomDateFormatEdit( 0 )
{
// tmp. vars:
- QButtonGroup * group;
- QRadioButton * radio;
+ TQButtonGroup * group;
+ TQRadioButton * radio;
- QVBoxLayout * vlay = new QVBoxLayout( this, KDialog::marginHint(), KDialog::spacingHint() );
+ TQVBoxLayout * vlay = new TQVBoxLayout( this, KDialog::marginHint(), KDialog::spacingHint() );
// "General Options" group:
- group = new QVButtonGroup( i18n( "General Options" ), this );
+ group = new TQVButtonGroup( i18n( "General Options" ), this );
group->layout()->setSpacing( KDialog::spacingHint() );
- mShowQuickSearch = new QCheckBox( i18n("Show Quick Search"), group );
+ mShowQuickSearch = new TQCheckBox( i18n("Show Quick Search"), group );
- mMessageSizeCheck = new QCheckBox( i18n("Display messa&ge sizes"), group );
+ mMessageSizeCheck = new TQCheckBox( i18n("Display messa&ge sizes"), group );
- mCryptoIconsCheck = new QCheckBox( i18n( "Show crypto &icons" ), group );
+ mCryptoIconsCheck = new TQCheckBox( i18n( "Show crypto &icons" ), group );
- mAttachmentCheck = new QCheckBox( i18n("Show attachment icon"), group );
+ mAttachmentCheck = new TQCheckBox( i18n("Show attachment icon"), group );
mNestedMessagesCheck =
- new QCheckBox( i18n("&Threaded message list"), group );
+ new TQCheckBox( i18n("&Threaded message list"), group );
- connect( mShowQuickSearch, SIGNAL( stateChanged( int ) ),
- this, SLOT( slotEmitChanged( void ) ) );
- connect( mMessageSizeCheck, SIGNAL( stateChanged( int ) ),
- this, SLOT( slotEmitChanged( void ) ) );
- connect( mAttachmentCheck, SIGNAL( stateChanged( int ) ),
- this, SLOT( slotEmitChanged( void ) ) );
- connect( mCryptoIconsCheck, SIGNAL( stateChanged( int ) ),
- this, SLOT( slotEmitChanged( void ) ) );
- connect( mNestedMessagesCheck, SIGNAL( stateChanged( int ) ),
- this, SLOT( slotEmitChanged( void ) ) );
+ connect( mShowQuickSearch, TQT_SIGNAL( stateChanged( int ) ),
+ this, TQT_SLOT( slotEmitChanged( void ) ) );
+ connect( mMessageSizeCheck, TQT_SIGNAL( stateChanged( int ) ),
+ this, TQT_SLOT( slotEmitChanged( void ) ) );
+ connect( mAttachmentCheck, TQT_SIGNAL( stateChanged( int ) ),
+ this, TQT_SLOT( slotEmitChanged( void ) ) );
+ connect( mCryptoIconsCheck, TQT_SIGNAL( stateChanged( int ) ),
+ this, TQT_SLOT( slotEmitChanged( void ) ) );
+ connect( mNestedMessagesCheck, TQT_SIGNAL( stateChanged( int ) ),
+ this, TQT_SLOT( slotEmitChanged( void ) ) );
vlay->addWidget( group );
// "Message Header Threading Options" group:
mNestingPolicy =
- new QVButtonGroup( i18n("Threaded Message List Options"), this );
+ new TQVButtonGroup( i18n("Threaded Message List Options"), this );
mNestingPolicy->layout()->setSpacing( KDialog::spacingHint() );
mNestingPolicy->insert(
- new QRadioButton( i18n("Always &keep threads open"),
+ new TQRadioButton( i18n("Always &keep threads open"),
mNestingPolicy ), 0 );
mNestingPolicy->insert(
- new QRadioButton( i18n("Threads default to o&pen"),
+ new TQRadioButton( i18n("Threads default to o&pen"),
mNestingPolicy ), 1 );
mNestingPolicy->insert(
- new QRadioButton( i18n("Threads default to closed"),
+ new TQRadioButton( i18n("Threads default to closed"),
mNestingPolicy ), 2 );
mNestingPolicy->insert(
- new QRadioButton( i18n("Open threads that contain ne&w, unread "
+ new TQRadioButton( i18n("Open threads that contain ne&w, unread "
"or important messages and open watched threads."),
mNestingPolicy ), 3 );
vlay->addWidget( mNestingPolicy );
- connect( mNestingPolicy, SIGNAL( clicked( int ) ),
- this, SLOT( slotEmitChanged( void ) ) );
+ connect( mNestingPolicy, TQT_SIGNAL( clicked( int ) ),
+ this, TQT_SLOT( slotEmitChanged( void ) ) );
// "Date Display" group:
- mDateDisplay = new QVButtonGroup( i18n("Date Display"), this );
+ mDateDisplay = new TQVButtonGroup( i18n("Date Display"), this );
mDateDisplay->layout()->setSpacing( KDialog::spacingHint() );
for ( int i = 0 ; i < numDateDisplayConfig ; i++ ) {
- QString buttonLabel = i18n(dateDisplayConfig[i].displayName);
+ TQString buttonLabel = i18n(dateDisplayConfig[i].displayName);
if ( buttonLabel.contains("%1") )
buttonLabel = buttonLabel.arg( DateFormatter::formatCurrentDate( dateDisplayConfig[i].dateDisplay ) );
- radio = new QRadioButton( buttonLabel, mDateDisplay );
+ radio = new TQRadioButton( buttonLabel, mDateDisplay );
mDateDisplay->insert( radio, i );
if ( dateDisplayConfig[i].dateDisplay == DateFormatter::Custom ) {
mCustomDateFormatEdit = new KLineEdit( mDateDisplay );
mCustomDateFormatEdit->setEnabled( false );
- connect( radio, SIGNAL(toggled(bool)),
- mCustomDateFormatEdit, SLOT(setEnabled(bool)) );
- connect( mCustomDateFormatEdit, SIGNAL(textChanged(const QString&)),
- this, SLOT(slotEmitChanged(void)) );
- QString customDateWhatsThis =
+ connect( radio, TQT_SIGNAL(toggled(bool)),
+ mCustomDateFormatEdit, TQT_SLOT(setEnabled(bool)) );
+ connect( mCustomDateFormatEdit, TQT_SIGNAL(textChanged(const TQString&)),
+ this, TQT_SLOT(slotEmitChanged(void)) );
+ TQString customDateWhatsThis =
i18n("<qt><p><strong>These expressions may be used for the date:"
"</strong></p>"
"<ul>"
@@ -2101,14 +2101,14 @@ AppearancePageHeadersTab::AppearancePageHeadersTab( QWidget * parent, const char
"</ul>"
"<p><strong>All other input characters will be ignored."
"</strong></p></qt>");
- QWhatsThis::add( mCustomDateFormatEdit, customDateWhatsThis );
- QWhatsThis::add( radio, customDateWhatsThis );
+ TQWhatsThis::add( mCustomDateFormatEdit, customDateWhatsThis );
+ TQWhatsThis::add( radio, customDateWhatsThis );
}
} // end for loop populating mDateDisplay
vlay->addWidget( mDateDisplay );
- connect( mDateDisplay, SIGNAL( clicked( int ) ),
- this, SLOT( slotEmitChanged( void ) ) );
+ connect( mDateDisplay, TQT_SIGNAL( clicked( int ) ),
+ this, TQT_SLOT( slotEmitChanged( void ) ) );
vlay->addStretch( 10 ); // spacer
@@ -2135,7 +2135,7 @@ void AppearancePage::HeadersTab::doLoadOther() {
general.readEntry( "customDateFormat" ) );
}
-void AppearancePage::HeadersTab::setDateDisplay( int num, const QString & format ) {
+void AppearancePage::HeadersTab::setDateDisplay( int num, const TQString & format ) {
DateFormatter::FormatType dateDisplay =
static_cast<DateFormatter::FormatType>( num );
@@ -2186,13 +2186,13 @@ void AppearancePage::HeadersTab::save() {
int result = KMessageBox::warningContinueCancel( this,
i18n("Changing the global threading setting will override "
"all folder specific values."),
- QString::null, KStdGuiItem::cont(), "threadOverride" );
+ TQString::null, KStdGuiItem::cont(), "threadOverride" );
if ( result == KMessageBox::Continue ) {
geometry.writeEntry( "nestedMessages", mNestedMessagesCheck->isChecked() );
// remove all threadMessagesOverride keys from all [Folder-*] groups:
- QStringList groups = KMKernel::config()->groupList().grep( QRegExp("^Folder-") );
+ TQStringList groups = KMKernel::config()->groupList().grep( TQRegExp("^Folder-") );
kdDebug(5006) << "groups.count() == " << groups.count() << endl;
- for ( QStringList::const_iterator it = groups.begin() ; it != groups.end() ; ++it ) {
+ for ( TQStringList::const_iterator it = groups.begin() ; it != groups.end() ; ++it ) {
KConfigGroup group( KMKernel::config(), *it );
group.deleteEntry( "threadMessagesOverride" );
}
@@ -2241,99 +2241,99 @@ static const BoolConfigEntry showExpandQuotesMark= {
};
-QString AppearancePage::ReaderTab::helpAnchor() const {
- return QString::fromLatin1("configure-appearance-reader");
+TQString AppearancePage::ReaderTab::helpAnchor() const {
+ return TQString::fromLatin1("configure-appearance-reader");
}
-AppearancePageReaderTab::AppearancePageReaderTab( QWidget * parent,
+AppearancePageReaderTab::AppearancePageReaderTab( TQWidget * parent,
const char * name )
: ConfigModuleTab( parent, name )
{
- QVBoxLayout *vlay = new QVBoxLayout( this, KDialog::marginHint(), KDialog::spacingHint() );
+ TQVBoxLayout *vlay = new TQVBoxLayout( this, KDialog::marginHint(), KDialog::spacingHint() );
// "show colorbar" check box:
- populateCheckBox( mShowColorbarCheck = new QCheckBox( this ), showColorbarMode );
+ populateCheckBox( mShowColorbarCheck = new TQCheckBox( this ), showColorbarMode );
vlay->addWidget( mShowColorbarCheck );
- connect( mShowColorbarCheck, SIGNAL ( stateChanged( int ) ),
- this, SLOT( slotEmitChanged() ) );
+ connect( mShowColorbarCheck, TQT_SIGNAL ( stateChanged( int ) ),
+ this, TQT_SLOT( slotEmitChanged() ) );
// "show spam status" check box;
- populateCheckBox( mShowSpamStatusCheck = new QCheckBox( this ), showSpamStatusMode );
+ populateCheckBox( mShowSpamStatusCheck = new TQCheckBox( this ), showSpamStatusMode );
vlay->addWidget( mShowSpamStatusCheck );
- connect( mShowSpamStatusCheck, SIGNAL ( stateChanged( int ) ),
- this, SLOT( slotEmitChanged() ) );
+ connect( mShowSpamStatusCheck, TQT_SIGNAL ( stateChanged( int ) ),
+ this, TQT_SLOT( slotEmitChanged() ) );
// "replace smileys by emoticons" check box;
- populateCheckBox( mShowEmoticonsCheck = new QCheckBox( this ), showEmoticons );
+ populateCheckBox( mShowEmoticonsCheck = new TQCheckBox( this ), showEmoticons );
vlay->addWidget( mShowEmoticonsCheck );
- connect( mShowEmoticonsCheck, SIGNAL ( stateChanged( int ) ),
- this, SLOT( slotEmitChanged() ) );
+ connect( mShowEmoticonsCheck, TQT_SIGNAL ( stateChanged( int ) ),
+ this, TQT_SLOT( slotEmitChanged() ) );
// "Use smaller font for quoted text" check box
- mShrinkQuotesCheck = new QCheckBox( i18n( shrinkQuotes.desc ), this,
+ mShrinkQuotesCheck = new TQCheckBox( i18n( shrinkQuotes.desc ), this,
"kcfg_ShrinkQuotes" );
vlay->addWidget( mShrinkQuotesCheck );
- connect( mShrinkQuotesCheck, SIGNAL( stateChanged( int ) ),
- this, SLOT( slotEmitChanged() ) );
+ connect( mShrinkQuotesCheck, TQT_SIGNAL( stateChanged( int ) ),
+ this, TQT_SLOT( slotEmitChanged() ) );
// "Show expand/collaps quote marks" check box;
- QHBoxLayout *hlay= new QHBoxLayout( vlay ); // inherits spacing
- populateCheckBox( mShowExpandQuotesMark= new QCheckBox( this ), showExpandQuotesMark);
+ TQHBoxLayout *hlay= new TQHBoxLayout( vlay ); // inherits spacing
+ populateCheckBox( mShowExpandQuotesMark= new TQCheckBox( this ), showExpandQuotesMark);
hlay->addWidget( mShowExpandQuotesMark);
- connect( mShowExpandQuotesMark, SIGNAL ( stateChanged( int ) ),
- this, SLOT( slotEmitChanged() ) );
+ connect( mShowExpandQuotesMark, TQT_SIGNAL ( stateChanged( int ) ),
+ this, TQT_SLOT( slotEmitChanged() ) );
hlay->addStretch( 1 );
mCollapseQuoteLevelSpin = new KIntSpinBox( 0/*min*/,10/*max*/,1/*step*/,
3/*init*/,10/*base*/,this );
- QLabel *label = new QLabel( mCollapseQuoteLevelSpin,
+ TQLabel *label = new TQLabel( mCollapseQuoteLevelSpin,
GlobalSettings::self()->collapseQuoteLevelSpinItem()->label(), this );
hlay->addWidget( label );
mCollapseQuoteLevelSpin->setEnabled( false ); //since !mShowExpandQuotesMark->isCheckec()
- connect( mCollapseQuoteLevelSpin, SIGNAL( valueChanged( int ) ),
- this, SLOT( slotEmitChanged( void ) ) );
+ connect( mCollapseQuoteLevelSpin, TQT_SIGNAL( valueChanged( int ) ),
+ this, TQT_SLOT( slotEmitChanged( void ) ) );
hlay->addWidget( mCollapseQuoteLevelSpin);
- connect( mShowExpandQuotesMark, SIGNAL( toggled( bool ) ),
- mCollapseQuoteLevelSpin, SLOT( setEnabled( bool ) ) );
+ connect( mShowExpandQuotesMark, TQT_SIGNAL( toggled( bool ) ),
+ mCollapseQuoteLevelSpin, TQT_SLOT( setEnabled( bool ) ) );
// Fallback Character Encoding
- hlay = new QHBoxLayout( vlay ); // inherits spacing
- mCharsetCombo = new QComboBox( this );
+ hlay = new TQHBoxLayout( vlay ); // inherits spacing
+ mCharsetCombo = new TQComboBox( this );
mCharsetCombo->insertStringList( KMMsgBase::supportedEncodings( false ) );
- connect( mCharsetCombo, SIGNAL( activated( int ) ),
- this, SLOT( slotEmitChanged( void ) ) );
+ connect( mCharsetCombo, TQT_SIGNAL( activated( int ) ),
+ this, TQT_SLOT( slotEmitChanged( void ) ) );
- QString fallbackCharsetWhatsThis =
+ TQString fallbackCharsetWhatsThis =
i18n( GlobalSettings::self()->fallbackCharacterEncodingItem()->whatsThis().utf8() );
- QWhatsThis::add( mCharsetCombo, fallbackCharsetWhatsThis );
+ TQWhatsThis::add( mCharsetCombo, fallbackCharsetWhatsThis );
- label = new QLabel( i18n("Fallback ch&aracter encoding:"), this );
+ label = new TQLabel( i18n("Fallback ch&aracter encoding:"), this );
label->setBuddy( mCharsetCombo );
hlay->addWidget( label );
hlay->addWidget( mCharsetCombo );
// Override Character Encoding
- QHBoxLayout *hlay2 = new QHBoxLayout( vlay ); // inherits spacing
- mOverrideCharsetCombo = new QComboBox( this );
- QStringList encodings = KMMsgBase::supportedEncodings( false );
+ TQHBoxLayout *hlay2 = new TQHBoxLayout( vlay ); // inherits spacing
+ mOverrideCharsetCombo = new TQComboBox( this );
+ TQStringList encodings = KMMsgBase::supportedEncodings( false );
encodings.prepend( i18n( "Auto" ) );
mOverrideCharsetCombo->insertStringList( encodings );
mOverrideCharsetCombo->setCurrentItem(0);
- connect( mOverrideCharsetCombo, SIGNAL( activated( int ) ),
- this, SLOT( slotEmitChanged( void ) ) );
+ connect( mOverrideCharsetCombo, TQT_SIGNAL( activated( int ) ),
+ this, TQT_SLOT( slotEmitChanged( void ) ) );
- QString overrideCharsetWhatsThis =
+ TQString overrideCharsetWhatsThis =
i18n( GlobalSettings::self()->overrideCharacterEncodingItem()->whatsThis().utf8() );
- QWhatsThis::add( mOverrideCharsetCombo, overrideCharsetWhatsThis );
+ TQWhatsThis::add( mOverrideCharsetCombo, overrideCharsetWhatsThis );
- label = new QLabel( i18n("&Override character encoding:"), this );
+ label = new TQLabel( i18n("&Override character encoding:"), this );
label->setBuddy( mOverrideCharsetCombo );
hlay2->addWidget( label );
@@ -2345,10 +2345,10 @@ AppearancePageReaderTab::AppearancePageReaderTab( QWidget * parent,
void AppearancePage::ReaderTab::readCurrentFallbackCodec()
{
- QStringList encodings = KMMsgBase::supportedEncodings( false );
- QStringList::ConstIterator it( encodings.begin() );
- QStringList::ConstIterator end( encodings.end() );
- QString currentEncoding = GlobalSettings::self()->fallbackCharacterEncoding();
+ TQStringList encodings = KMMsgBase::supportedEncodings( false );
+ TQStringList::ConstIterator it( encodings.begin() );
+ TQStringList::ConstIterator end( encodings.end() );
+ TQString currentEncoding = GlobalSettings::self()->fallbackCharacterEncoding();
currentEncoding = currentEncoding.replace( "iso ", "iso-", false );
///kdDebug(5006) << "Looking for encoding: " << currentEncoding << endl;
int i = 0;
@@ -2356,7 +2356,7 @@ void AppearancePage::ReaderTab::readCurrentFallbackCodec()
bool found = false;
for( ; it != end; ++it)
{
- const QString encoding = KGlobal::charsets()->encodingForName(*it);
+ const TQString encoding = KGlobal::charsets()->encodingForName(*it);
if ( encoding == "iso-8859-15" )
indexOfLatin9 = i;
if( encoding == currentEncoding )
@@ -2373,15 +2373,15 @@ void AppearancePage::ReaderTab::readCurrentFallbackCodec()
void AppearancePage::ReaderTab::readCurrentOverrideCodec()
{
- const QString &currentOverrideEncoding = GlobalSettings::self()->overrideCharacterEncoding();
+ const TQString &currentOverrideEncoding = GlobalSettings::self()->overrideCharacterEncoding();
if ( currentOverrideEncoding.isEmpty() ) {
mOverrideCharsetCombo->setCurrentItem( 0 );
return;
}
- QStringList encodings = KMMsgBase::supportedEncodings( false );
+ TQStringList encodings = KMMsgBase::supportedEncodings( false );
encodings.prepend( i18n( "Auto" ) );
- QStringList::Iterator it( encodings.begin() );
- QStringList::Iterator end( encodings.end() );
+ TQStringList::Iterator it( encodings.begin() );
+ TQStringList::Iterator end( encodings.end() );
uint i = 0;
for( ; it != end; ++it)
{
@@ -2397,7 +2397,7 @@ void AppearancePage::ReaderTab::readCurrentOverrideCodec()
kdWarning(5006) << "Unknown override character encoding \"" << currentOverrideEncoding
<< "\". Resetting to Auto." << endl;
mOverrideCharsetCombo->setCurrentItem( 0 );
- GlobalSettings::self()->setOverrideCharacterEncoding( QString::null );
+ GlobalSettings::self()->setOverrideCharacterEncoding( TQString::null );
}
}
@@ -2432,7 +2432,7 @@ void AppearancePage::ReaderTab::save() {
KGlobal::charsets()->encodingForName( mCharsetCombo->currentText() ) );
GlobalSettings::self()->setOverrideCharacterEncoding(
mOverrideCharsetCombo->currentItem() == 0 ?
- QString() :
+ TQString() :
KGlobal::charsets()->encodingForName( mOverrideCharsetCombo->currentText() ) );
}
@@ -2447,36 +2447,36 @@ void AppearancePage::ReaderTab::installProfile( KConfig * /* profile */ ) {
}
-QString AppearancePage::SystemTrayTab::helpAnchor() const {
- return QString::fromLatin1("configure-appearance-systemtray");
+TQString AppearancePage::SystemTrayTab::helpAnchor() const {
+ return TQString::fromLatin1("configure-appearance-systemtray");
}
-AppearancePageSystemTrayTab::AppearancePageSystemTrayTab( QWidget * parent,
+AppearancePageSystemTrayTab::AppearancePageSystemTrayTab( TQWidget * parent,
const char * name )
: ConfigModuleTab( parent, name )
{
- QVBoxLayout * vlay = new QVBoxLayout( this, KDialog::marginHint(),
+ TQVBoxLayout * vlay = new TQVBoxLayout( this, KDialog::marginHint(),
KDialog::spacingHint() );
// "Enable system tray applet" check box
- mSystemTrayCheck = new QCheckBox( i18n("Enable system tray icon"), this );
+ mSystemTrayCheck = new TQCheckBox( i18n("Enable system tray icon"), this );
vlay->addWidget( mSystemTrayCheck );
- connect( mSystemTrayCheck, SIGNAL( stateChanged( int ) ),
- this, SLOT( slotEmitChanged( void ) ) );
+ connect( mSystemTrayCheck, TQT_SIGNAL( stateChanged( int ) ),
+ this, TQT_SLOT( slotEmitChanged( void ) ) );
// System tray modes
- mSystemTrayGroup = new QVButtonGroup( i18n("System Tray Mode"), this );
+ mSystemTrayGroup = new TQVButtonGroup( i18n("System Tray Mode"), this );
mSystemTrayGroup->layout()->setSpacing( KDialog::spacingHint() );
vlay->addWidget( mSystemTrayGroup );
- connect( mSystemTrayGroup, SIGNAL( clicked( int ) ),
- this, SLOT( slotEmitChanged( void ) ) );
- connect( mSystemTrayCheck, SIGNAL( toggled( bool ) ),
- mSystemTrayGroup, SLOT( setEnabled( bool ) ) );
+ connect( mSystemTrayGroup, TQT_SIGNAL( clicked( int ) ),
+ this, TQT_SLOT( slotEmitChanged( void ) ) );
+ connect( mSystemTrayCheck, TQT_SIGNAL( toggled( bool ) ),
+ mSystemTrayGroup, TQT_SLOT( setEnabled( bool ) ) );
- mSystemTrayGroup->insert( new QRadioButton( i18n("Always show KMail in system tray"), mSystemTrayGroup ),
+ mSystemTrayGroup->insert( new TQRadioButton( i18n("Always show KMail in system tray"), mSystemTrayGroup ),
GlobalSettings::EnumSystemTrayPolicy::ShowAlways );
- mSystemTrayGroup->insert( new QRadioButton( i18n("Only show KMail in system tray if there are unread messages"), mSystemTrayGroup ),
+ mSystemTrayGroup->insert( new TQRadioButton( i18n("Only show KMail in system tray if there are unread messages"), mSystemTrayGroup ),
GlobalSettings::EnumSystemTrayPolicy::ShowOnUnread );
vlay->addStretch( 10 ); // spacer
@@ -2512,11 +2512,11 @@ void AppearancePage::SystemTrayTab::save() {
// * *
// *************************************************************
-QString ComposerPage::helpAnchor() const {
- return QString::fromLatin1("configure-composer");
+TQString ComposerPage::helpAnchor() const {
+ return TQString::fromLatin1("configure-composer");
}
-ComposerPage::ComposerPage( QWidget * parent, const char * name )
+ComposerPage::ComposerPage( TQWidget * parent, const char * name )
: ConfigModuleWithTabs( parent, name )
{
//
@@ -2571,125 +2571,125 @@ ComposerPage::ComposerPage( QWidget * parent, const char * name )
load();
}
-QString ComposerPage::GeneralTab::helpAnchor() const {
- return QString::fromLatin1("configure-composer-general");
+TQString ComposerPage::GeneralTab::helpAnchor() const {
+ return TQString::fromLatin1("configure-composer-general");
}
-ComposerPageGeneralTab::ComposerPageGeneralTab( QWidget * parent, const char * name )
+ComposerPageGeneralTab::ComposerPageGeneralTab( TQWidget * parent, const char * name )
: ConfigModuleTab( parent, name )
{
// tmp. vars:
- QVBoxLayout *vlay;
- QHBoxLayout *hlay;
- QGroupBox *group;
- QLabel *label;
- QHBox *hbox;
- QString msg;
+ TQVBoxLayout *vlay;
+ TQHBoxLayout *hlay;
+ TQGroupBox *group;
+ TQLabel *label;
+ TQHBox *hbox;
+ TQString msg;
- vlay = new QVBoxLayout( this, KDialog::marginHint(), KDialog::spacingHint() );
+ vlay = new TQVBoxLayout( this, KDialog::marginHint(), KDialog::spacingHint() );
// some check buttons...
- mAutoAppSignFileCheck = new QCheckBox(
+ mAutoAppSignFileCheck = new TQCheckBox(
GlobalSettings::self()->autoTextSignatureItem()->label(),
this );
vlay->addWidget( mAutoAppSignFileCheck );
- connect( mAutoAppSignFileCheck, SIGNAL( stateChanged(int) ),
- this, SLOT( slotEmitChanged( void ) ) );
+ connect( mAutoAppSignFileCheck, TQT_SIGNAL( stateChanged(int) ),
+ this, TQT_SLOT( slotEmitChanged( void ) ) );
mTopQuoteCheck =
- new QCheckBox( GlobalSettings::self()->prependSignatureItem()->label(), this );
+ new TQCheckBox( GlobalSettings::self()->prependSignatureItem()->label(), this );
vlay->addWidget( mTopQuoteCheck);
- connect( mTopQuoteCheck, SIGNAL( stateChanged(int) ),
- this, SLOT( slotEmitChanged( void ) ) );
+ connect( mTopQuoteCheck, TQT_SIGNAL( stateChanged(int) ),
+ this, TQT_SLOT( slotEmitChanged( void ) ) );
- mSmartQuoteCheck = new QCheckBox(
+ mSmartQuoteCheck = new TQCheckBox(
GlobalSettings::self()->smartQuoteItem()->label(),
this, "kcfg_SmartQuote" );
vlay->addWidget( mSmartQuoteCheck );
- connect( mSmartQuoteCheck, SIGNAL( stateChanged(int) ),
- this, SLOT( slotEmitChanged( void ) ) );
+ connect( mSmartQuoteCheck, TQT_SIGNAL( stateChanged(int) ),
+ this, TQT_SLOT( slotEmitChanged( void ) ) );
- mAutoRequestMDNCheck = new QCheckBox(
+ mAutoRequestMDNCheck = new TQCheckBox(
GlobalSettings::self()->requestMDNItem()->label(),
this, "kcfg_RequestMDN" );
vlay->addWidget( mAutoRequestMDNCheck );
- connect( mAutoRequestMDNCheck, SIGNAL( stateChanged(int) ),
- this, SLOT( slotEmitChanged( void ) ) );
+ connect( mAutoRequestMDNCheck, TQT_SIGNAL( stateChanged(int) ),
+ this, TQT_SLOT( slotEmitChanged( void ) ) );
- mShowRecentAddressesInComposer = new QCheckBox(
+ mShowRecentAddressesInComposer = new TQCheckBox(
GlobalSettings::self()->showRecentAddressesInComposerItem()->label(),
this, "kcfg_ShowRecentAddressesInComposer" );
vlay->addWidget( mShowRecentAddressesInComposer );
- connect( mShowRecentAddressesInComposer, SIGNAL( stateChanged(int) ),
- this, SLOT( slotEmitChanged( void ) ) );
+ connect( mShowRecentAddressesInComposer, TQT_SIGNAL( stateChanged(int) ),
+ this, TQT_SLOT( slotEmitChanged( void ) ) );
// a checkbox for "word wrap" and a spinbox for the column in
// which to wrap:
- hlay = new QHBoxLayout( vlay ); // inherits spacing
- mWordWrapCheck = new QCheckBox(
+ hlay = new TQHBoxLayout( vlay ); // inherits spacing
+ mWordWrapCheck = new TQCheckBox(
GlobalSettings::self()->wordWrapItem()->label(),
this, "kcfg_WordWrap" );
hlay->addWidget( mWordWrapCheck );
- connect( mWordWrapCheck, SIGNAL( stateChanged(int) ),
- this, SLOT( slotEmitChanged( void ) ) );
+ connect( mWordWrapCheck, TQT_SIGNAL( stateChanged(int) ),
+ this, TQT_SLOT( slotEmitChanged( void ) ) );
mWrapColumnSpin = new KIntSpinBox( 30/*min*/, 78/*max*/, 1/*step*/,
78/*init*/, 10 /*base*/, this, "kcfg_LineWrapWidth" );
mWrapColumnSpin->setEnabled( false ); // since !mWordWrapCheck->isChecked()
- connect( mWrapColumnSpin, SIGNAL( valueChanged(int) ),
- this, SLOT( slotEmitChanged( void ) ) );
+ connect( mWrapColumnSpin, TQT_SIGNAL( valueChanged(int) ),
+ this, TQT_SLOT( slotEmitChanged( void ) ) );
hlay->addWidget( mWrapColumnSpin );
hlay->addStretch( 1 );
// only enable the spinbox if the checkbox is checked:
- connect( mWordWrapCheck, SIGNAL(toggled(bool)),
- mWrapColumnSpin, SLOT(setEnabled(bool)) );
+ connect( mWordWrapCheck, TQT_SIGNAL(toggled(bool)),
+ mWrapColumnSpin, TQT_SLOT(setEnabled(bool)) );
- hlay = new QHBoxLayout( vlay ); // inherits spacing
+ hlay = new TQHBoxLayout( vlay ); // inherits spacing
mAutoSave = new KIntSpinBox( 0, 60, 1, 1, 10, this, "kcfg_AutosaveInterval" );
- label = new QLabel( mAutoSave,
+ label = new TQLabel( mAutoSave,
GlobalSettings::self()->autosaveIntervalItem()->label(), this );
hlay->addWidget( label );
hlay->addWidget( mAutoSave );
mAutoSave->setSpecialValueText( i18n("No autosave") );
mAutoSave->setSuffix( i18n(" min") );
hlay->addStretch( 1 );
- connect( mAutoSave, SIGNAL( valueChanged(int) ),
- this, SLOT( slotEmitChanged( void ) ) );
+ connect( mAutoSave, TQT_SIGNAL( valueChanged(int) ),
+ this, TQT_SLOT( slotEmitChanged( void ) ) );
- hlay = new QHBoxLayout( vlay ); // inherits spacing
- QPushButton *completionOrderBtn = new QPushButton( i18n( "Configure Completion Order" ), this );
- connect( completionOrderBtn, SIGNAL( clicked() ),
- this, SLOT( slotConfigureCompletionOrder() ) );
+ hlay = new TQHBoxLayout( vlay ); // inherits spacing
+ TQPushButton *completionOrderBtn = new TQPushButton( i18n( "Configure Completion Order" ), this );
+ connect( completionOrderBtn, TQT_SIGNAL( clicked() ),
+ this, TQT_SLOT( slotConfigureCompletionOrder() ) );
hlay->addWidget( completionOrderBtn );
- hlay->addItem( new QSpacerItem(0, 0) );
+ hlay->addItem( new TQSpacerItem(0, 0) );
// recent addresses
- hlay = new QHBoxLayout( vlay ); // inherits spacing
- QPushButton *recentAddressesBtn = new QPushButton( i18n( "Edit Recent Addresses..." ), this );
- connect( recentAddressesBtn, SIGNAL( clicked() ),
- this, SLOT( slotConfigureRecentAddresses() ) );
+ hlay = new TQHBoxLayout( vlay ); // inherits spacing
+ TQPushButton *recentAddressesBtn = new TQPushButton( i18n( "Edit Recent Addresses..." ), this );
+ connect( recentAddressesBtn, TQT_SIGNAL( clicked() ),
+ this, TQT_SLOT( slotConfigureRecentAddresses() ) );
hlay->addWidget( recentAddressesBtn );
- hlay->addItem( new QSpacerItem(0, 0) );
+ hlay->addItem( new TQSpacerItem(0, 0) );
// The "external editor" group:
- group = new QVGroupBox( i18n("External Editor"), this );
+ group = new TQVGroupBox( i18n("External Editor"), this );
group->layout()->setSpacing( KDialog::spacingHint() );
- mExternalEditorCheck = new QCheckBox(
+ mExternalEditorCheck = new TQCheckBox(
GlobalSettings::self()->useExternalEditorItem()->label(),
group, "kcfg_UseExternalEditor" );
- connect( mExternalEditorCheck, SIGNAL( toggled( bool ) ),
- this, SLOT( slotEmitChanged( void ) ) );
+ connect( mExternalEditorCheck, TQT_SIGNAL( toggled( bool ) ),
+ this, TQT_SLOT( slotEmitChanged( void ) ) );
- hbox = new QHBox( group );
- label = new QLabel( GlobalSettings::self()->externalEditorItem()->label(),
+ hbox = new TQHBox( group );
+ label = new TQLabel( GlobalSettings::self()->externalEditorItem()->label(),
hbox );
mEditorRequester = new KURLRequester( hbox, "kcfg_ExternalEditor" );
- connect( mEditorRequester, SIGNAL( urlSelected(const QString&) ),
- this, SLOT( slotEmitChanged( void ) ) );
- connect( mEditorRequester, SIGNAL( textChanged(const QString&) ),
- this, SLOT( slotEmitChanged( void ) ) );
+ connect( mEditorRequester, TQT_SIGNAL( urlSelected(const TQString&) ),
+ this, TQT_SLOT( slotEmitChanged( void ) ) );
+ connect( mEditorRequester, TQT_SIGNAL( textChanged(const TQString&) ),
+ this, TQT_SLOT( slotEmitChanged( void ) ) );
hbox->setStretchFactor( mEditorRequester, 1 );
label->setBuddy( mEditorRequester );
@@ -2699,16 +2699,16 @@ ComposerPageGeneralTab::ComposerPageGeneralTab( QWidget * parent, const char * n
"application/x-shellscript "
"application/x-desktop" );
mEditorRequester->setEnabled( false ); // !mExternalEditorCheck->isChecked()
- connect( mExternalEditorCheck, SIGNAL(toggled(bool)),
- label, SLOT(setEnabled(bool)) );
- connect( mExternalEditorCheck, SIGNAL(toggled(bool)),
- mEditorRequester, SLOT(setEnabled(bool)) );
+ connect( mExternalEditorCheck, TQT_SIGNAL(toggled(bool)),
+ label, TQT_SLOT(setEnabled(bool)) );
+ connect( mExternalEditorCheck, TQT_SIGNAL(toggled(bool)),
+ mEditorRequester, TQT_SLOT(setEnabled(bool)) );
- label = new QLabel( i18n("<b>%f</b> will be replaced with the "
+ label = new TQLabel( i18n("<b>%f</b> will be replaced with the "
"filename to edit."), group );
label->setEnabled( false ); // see above
- connect( mExternalEditorCheck, SIGNAL(toggled(bool)),
- label, SLOT(setEnabled(bool)) );
+ connect( mExternalEditorCheck, TQT_SIGNAL(toggled(bool)),
+ label, TQT_SLOT(setEnabled(bool)) );
vlay->addWidget( group );
vlay->addStretch( 100 );
@@ -2782,8 +2782,8 @@ void ComposerPage::GeneralTab::slotConfigureRecentAddresses( )
dlg.setAddresses( RecentAddresses::self( KMKernel::config() )->addresses() );
if ( dlg.exec() ) {
RecentAddresses::self( KMKernel::config() )->clear();
- const QStringList &addrList = dlg.addresses();
- QStringList::ConstIterator it;
+ const TQStringList &addrList = dlg.addresses();
+ TQStringList::ConstIterator it;
for ( it = addrList.constBegin(); it != addrList.constEnd(); ++it )
RecentAddresses::self( KMKernel::config() )->add( *it );
}
@@ -2796,25 +2796,25 @@ void ComposerPage::GeneralTab::slotConfigureCompletionOrder( )
editor.exec();
}
-QString ComposerPage::PhrasesTab::helpAnchor() const {
- return QString::fromLatin1("configure-composer-phrases");
+TQString ComposerPage::PhrasesTab::helpAnchor() const {
+ return TQString::fromLatin1("configure-composer-phrases");
}
-ComposerPagePhrasesTab::ComposerPagePhrasesTab( QWidget * parent, const char * name )
+ComposerPagePhrasesTab::ComposerPagePhrasesTab( TQWidget * parent, const char * name )
: ConfigModuleTab( parent, name )
{
// tmp. vars:
- QGridLayout *glay;
- QPushButton *button;
+ TQGridLayout *glay;
+ TQPushButton *button;
- glay = new QGridLayout( this, 7, 3, KDialog::spacingHint() );
+ glay = new TQGridLayout( this, 7, 3, KDialog::spacingHint() );
glay->setMargin( KDialog::marginHint() );
glay->setColStretch( 1, 1 );
glay->setColStretch( 2, 1 );
glay->setRowStretch( 7, 1 );
// row 0: help text
- glay->addMultiCellWidget( new QLabel( i18n("<qt>The following placeholders are "
+ glay->addMultiCellWidget( new TQLabel( i18n("<qt>The following placeholders are "
"supported in the reply phrases:<br>"
"<b>%D</b>: date, <b>%S</b>: subject,<br>"
"<b>%e</b>: sender's address, <b>%F</b>: sender's name, <b>%f</b>: sender's initials,<br>"
@@ -2826,54 +2826,54 @@ ComposerPagePhrasesTab::ComposerPagePhrasesTab( QWidget * parent, const char * n
// row 1: label and language combo box:
mPhraseLanguageCombo = new LanguageComboBox( false, this );
- glay->addWidget( new QLabel( mPhraseLanguageCombo,
+ glay->addWidget( new TQLabel( mPhraseLanguageCombo,
i18n("Lang&uage:"), this ), 1, 0 );
glay->addMultiCellWidget( mPhraseLanguageCombo, 1, 1, 1, 2 );
- connect( mPhraseLanguageCombo, SIGNAL(activated(const QString&)),
- this, SLOT(slotLanguageChanged(const QString&)) );
+ connect( mPhraseLanguageCombo, TQT_SIGNAL(activated(const TQString&)),
+ this, TQT_SLOT(slotLanguageChanged(const TQString&)) );
// row 2: "add..." and "remove" push buttons:
- button = new QPushButton( i18n("A&dd..."), this );
+ button = new TQPushButton( i18n("A&dd..."), this );
button->setAutoDefault( false );
glay->addWidget( button, 2, 1 );
- mRemoveButton = new QPushButton( i18n("Re&move"), this );
+ mRemoveButton = new TQPushButton( i18n("Re&move"), this );
mRemoveButton->setAutoDefault( false );
mRemoveButton->setEnabled( false ); // combo doesn't contain anything...
glay->addWidget( mRemoveButton, 2, 2 );
- connect( button, SIGNAL(clicked()),
- this, SLOT(slotNewLanguage()) );
- connect( mRemoveButton, SIGNAL(clicked()),
- this, SLOT(slotRemoveLanguage()) );
+ connect( button, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(slotNewLanguage()) );
+ connect( mRemoveButton, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(slotRemoveLanguage()) );
// row 3: "reply to sender" line edit and label:
mPhraseReplyEdit = new KLineEdit( this );
- connect( mPhraseReplyEdit, SIGNAL( textChanged( const QString& ) ),
- this, SLOT( slotEmitChanged( void ) ) );
- glay->addWidget( new QLabel( mPhraseReplyEdit,
+ connect( mPhraseReplyEdit, TQT_SIGNAL( textChanged( const TQString& ) ),
+ this, TQT_SLOT( slotEmitChanged( void ) ) );
+ glay->addWidget( new TQLabel( mPhraseReplyEdit,
i18n("Reply to se&nder:"), this ), 3, 0 );
glay->addMultiCellWidget( mPhraseReplyEdit, 3, 3, 1, 2 ); // cols 1..2
// row 4: "reply to all" line edit and label:
mPhraseReplyAllEdit = new KLineEdit( this );
- connect( mPhraseReplyAllEdit, SIGNAL( textChanged( const QString& ) ),
- this, SLOT( slotEmitChanged( void ) ) );
- glay->addWidget( new QLabel( mPhraseReplyAllEdit,
+ connect( mPhraseReplyAllEdit, TQT_SIGNAL( textChanged( const TQString& ) ),
+ this, TQT_SLOT( slotEmitChanged( void ) ) );
+ glay->addWidget( new TQLabel( mPhraseReplyAllEdit,
i18n("Repl&y to all:"), this ), 4, 0 );
glay->addMultiCellWidget( mPhraseReplyAllEdit, 4, 4, 1, 2 ); // cols 1..2
// row 5: "forward" line edit and label:
mPhraseForwardEdit = new KLineEdit( this );
- connect( mPhraseForwardEdit, SIGNAL( textChanged( const QString& ) ),
- this, SLOT( slotEmitChanged( void ) ) );
- glay->addWidget( new QLabel( mPhraseForwardEdit,
+ connect( mPhraseForwardEdit, TQT_SIGNAL( textChanged( const TQString& ) ),
+ this, TQT_SLOT( slotEmitChanged( void ) ) );
+ glay->addWidget( new TQLabel( mPhraseForwardEdit,
i18n("&Forward:"), this ), 5, 0 );
glay->addMultiCellWidget( mPhraseForwardEdit, 5, 5, 1, 2 ); // cols 1..2
// row 6: "quote indicator" line edit and label:
mPhraseIndentPrefixEdit = new KLineEdit( this );
- connect( mPhraseIndentPrefixEdit, SIGNAL( textChanged( const QString& ) ),
- this, SLOT( slotEmitChanged( void ) ) );
- glay->addWidget( new QLabel( mPhraseIndentPrefixEdit,
+ connect( mPhraseIndentPrefixEdit, TQT_SIGNAL( textChanged( const TQString& ) ),
+ this, TQT_SLOT( slotEmitChanged( void ) ) );
+ glay->addWidget( new TQLabel( mPhraseIndentPrefixEdit,
i18n("&Quote indicator:"), this ), 6, 0 );
glay->addMultiCellWidget( mPhraseIndentPrefixEdit, 6, 6, 1, 2 );
@@ -2908,10 +2908,10 @@ void ComposerPage::PhrasesTab::saveActiveLanguageItem() {
void ComposerPage::PhrasesTab::slotNewLanguage()
{
NewLanguageDialog dialog( mLanguageList, parentWidget(), "New", true );
- if ( dialog.exec() == QDialog::Accepted ) slotAddNewLanguage( dialog.language() );
+ if ( dialog.exec() == TQDialog::Accepted ) slotAddNewLanguage( dialog.language() );
}
-void ComposerPage::PhrasesTab::slotAddNewLanguage( const QString& lang )
+void ComposerPage::PhrasesTab::slotAddNewLanguage( const TQString& lang )
{
mPhraseLanguageCombo->setCurrentItem(
mPhraseLanguageCombo->insertLanguage( lang ) );
@@ -2924,7 +2924,7 @@ void ComposerPage::PhrasesTab::slotAddNewLanguage( const QString& lang )
locale.translate("Forwarded Message"),
locale.translate(">%_") ) );
mRemoveButton->setEnabled( true );
- slotLanguageChanged( QString::null );
+ slotLanguageChanged( TQString::null );
}
void ComposerPage::PhrasesTab::slotRemoveLanguage()
@@ -2945,7 +2945,7 @@ void ComposerPage::PhrasesTab::slotRemoveLanguage()
emit changed( true );
}
-void ComposerPage::PhrasesTab::slotLanguageChanged( const QString& )
+void ComposerPage::PhrasesTab::slotLanguageChanged( const TQString& )
{
int index = mPhraseLanguageCombo->currentItem();
assert( index < (int)mLanguageList.count() );
@@ -2966,9 +2966,9 @@ void ComposerPage::PhrasesTab::doLoadFromGlobalSettings() {
// build mLanguageList and mPhraseLanguageCombo:
for ( int i = 0 ; i < numLang ; i++ ) {
- ReplyPhrases replyPhrases( QString::number(i) );
+ ReplyPhrases replyPhrases( TQString::number(i) );
replyPhrases.readConfig();
- QString lang = replyPhrases.language();
+ TQString lang = replyPhrases.language();
mLanguageList.append(
LanguageItem( lang,
replyPhrases.phraseReplySender(),
@@ -2998,7 +2998,7 @@ void ComposerPage::PhrasesTab::save() {
saveActiveLanguageItem();
LanguageItemList::Iterator it = mLanguageList.begin();
for ( int i = 0 ; it != mLanguageList.end() ; ++it, ++i ) {
- ReplyPhrases replyPhrases( QString::number(i) );
+ ReplyPhrases replyPhrases( TQString::number(i) );
replyPhrases.setLanguage( (*it).mLanguage );
replyPhrases.setPhraseReplySender( (*it).mReply );
replyPhrases.setPhraseReplyAll( (*it).mReplyAll );
@@ -3008,20 +3008,20 @@ void ComposerPage::PhrasesTab::save() {
}
}
-QString ComposerPage::TemplatesTab::helpAnchor() const {
- return QString::fromLatin1("configure-composer-templates");
+TQString ComposerPage::TemplatesTab::helpAnchor() const {
+ return TQString::fromLatin1("configure-composer-templates");
}
-ComposerPageTemplatesTab::ComposerPageTemplatesTab( QWidget * parent, const char * name )
+ComposerPageTemplatesTab::ComposerPageTemplatesTab( TQWidget * parent, const char * name )
: ConfigModuleTab ( parent, name )
{
- QVBoxLayout* vlay = new QVBoxLayout( this, 0, KDialog::spacingHint() );
+ TQVBoxLayout* vlay = new TQVBoxLayout( this, 0, KDialog::spacingHint() );
mWidget = new TemplatesConfiguration( this );
vlay->addWidget( mWidget );
- connect( mWidget, SIGNAL( changed() ),
- this, SLOT( slotEmitChanged( void ) ) );
+ connect( mWidget, TQT_SIGNAL( changed() ),
+ this, TQT_SLOT( slotEmitChanged( void ) ) );
}
void ComposerPage::TemplatesTab::doLoadFromGlobalSettings() {
@@ -3032,20 +3032,20 @@ void ComposerPage::TemplatesTab::save() {
mWidget->saveToGlobal();
}
-QString ComposerPage::CustomTemplatesTab::helpAnchor() const {
- return QString::fromLatin1("configure-composer-custom-templates");
+TQString ComposerPage::CustomTemplatesTab::helpAnchor() const {
+ return TQString::fromLatin1("configure-composer-custom-templates");
}
-ComposerPageCustomTemplatesTab::ComposerPageCustomTemplatesTab( QWidget * parent, const char * name )
+ComposerPageCustomTemplatesTab::ComposerPageCustomTemplatesTab( TQWidget * parent, const char * name )
: ConfigModuleTab ( parent, name )
{
- QVBoxLayout* vlay = new QVBoxLayout( this, 0, KDialog::spacingHint() );
+ TQVBoxLayout* vlay = new TQVBoxLayout( this, 0, KDialog::spacingHint() );
mWidget = new CustomTemplates( this );
vlay->addWidget( mWidget );
- connect( mWidget, SIGNAL( changed() ),
- this, SLOT( slotEmitChanged( void ) ) );
+ connect( mWidget, TQT_SIGNAL( changed() ),
+ this, TQT_SLOT( slotEmitChanged( void ) ) );
}
void ComposerPage::CustomTemplatesTab::doLoadFromGlobalSettings() {
@@ -3056,26 +3056,26 @@ void ComposerPage::CustomTemplatesTab::save() {
mWidget->save();
}
-QString ComposerPage::SubjectTab::helpAnchor() const {
- return QString::fromLatin1("configure-composer-subject");
+TQString ComposerPage::SubjectTab::helpAnchor() const {
+ return TQString::fromLatin1("configure-composer-subject");
}
-ComposerPageSubjectTab::ComposerPageSubjectTab( QWidget * parent, const char * name )
+ComposerPageSubjectTab::ComposerPageSubjectTab( TQWidget * parent, const char * name )
: ConfigModuleTab( parent, name )
{
// tmp. vars:
- QVBoxLayout *vlay;
- QGroupBox *group;
- QLabel *label;
+ TQVBoxLayout *vlay;
+ TQGroupBox *group;
+ TQLabel *label;
- vlay = new QVBoxLayout( this, KDialog::marginHint(), KDialog::spacingHint() );
+ vlay = new TQVBoxLayout( this, KDialog::marginHint(), KDialog::spacingHint() );
- group = new QVGroupBox( i18n("Repl&y Subject Prefixes"), this );
+ group = new TQVGroupBox( i18n("Repl&y Subject Prefixes"), this );
group->layout()->setSpacing( KDialog::spacingHint() );
// row 0: help text:
- label = new QLabel( i18n("Recognize any sequence of the following prefixes\n"
+ label = new TQLabel( i18n("Recognize any sequence of the following prefixes\n"
"(entries are case-insensitive regular expressions):"), group );
label->setAlignment( AlignLeft|WordBreak );
@@ -3087,24 +3087,24 @@ ComposerPageSubjectTab::ComposerPageSubjectTab( QWidget * parent, const char * n
i18n("A&dd..."), i18n("Re&move"),
i18n("Mod&ify..."),
i18n("Enter new reply prefix:") );
- connect( mReplyListEditor, SIGNAL( changed( void ) ),
- this, SLOT( slotEmitChanged( void ) ) );
+ connect( mReplyListEditor, TQT_SIGNAL( changed( void ) ),
+ this, TQT_SLOT( slotEmitChanged( void ) ) );
// row 2: "replace [...]" check box:
- mReplaceReplyPrefixCheck = new QCheckBox(
+ mReplaceReplyPrefixCheck = new TQCheckBox(
GlobalSettings::self()->replaceReplyPrefixItem()->label(),
group, "kcfg_ReplaceReplyPrefix" );
- connect( mReplaceReplyPrefixCheck, SIGNAL( stateChanged( int ) ),
- this, SLOT( slotEmitChanged( void ) ) );
+ connect( mReplaceReplyPrefixCheck, TQT_SIGNAL( stateChanged( int ) ),
+ this, TQT_SLOT( slotEmitChanged( void ) ) );
vlay->addWidget( group );
- group = new QVGroupBox( i18n("For&ward Subject Prefixes"), this );
+ group = new TQVGroupBox( i18n("For&ward Subject Prefixes"), this );
group->layout()->setSpacing( KDialog::marginHint() );
// row 0: help text:
- label= new QLabel( i18n("Recognize any sequence of the following prefixes\n"
+ label= new TQLabel( i18n("Recognize any sequence of the following prefixes\n"
"(entries are case-insensitive regular expressions):"), group );
label->setAlignment( AlignLeft|WordBreak );
@@ -3115,15 +3115,15 @@ ComposerPageSubjectTab::ComposerPageSubjectTab( QWidget * parent, const char * n
i18n("Remo&ve"),
i18n("Modify..."),
i18n("Enter new forward prefix:") );
- connect( mForwardListEditor, SIGNAL( changed( void ) ),
- this, SLOT( slotEmitChanged( void ) ) );
+ connect( mForwardListEditor, TQT_SIGNAL( changed( void ) ),
+ this, TQT_SLOT( slotEmitChanged( void ) ) );
// row 3: "replace [...]" check box:
- mReplaceForwardPrefixCheck = new QCheckBox(
+ mReplaceForwardPrefixCheck = new TQCheckBox(
GlobalSettings::self()->replaceForwardPrefixItem()->label(),
group, "kcfg_ReplaceForwardPrefix" );
- connect( mReplaceForwardPrefixCheck, SIGNAL( stateChanged( int ) ),
- this, SLOT( slotEmitChanged( void ) ) );
+ connect( mReplaceForwardPrefixCheck, TQT_SIGNAL( stateChanged( int ) ),
+ this, TQT_SLOT( slotEmitChanged( void ) ) );
vlay->addWidget( group );
}
@@ -3140,20 +3140,20 @@ void ComposerPage::SubjectTab::save() {
GlobalSettings::self()->setForwardPrefixes( mForwardListEditor->stringList() );
}
-QString ComposerPage::CharsetTab::helpAnchor() const {
- return QString::fromLatin1("configure-composer-charset");
+TQString ComposerPage::CharsetTab::helpAnchor() const {
+ return TQString::fromLatin1("configure-composer-charset");
}
-ComposerPageCharsetTab::ComposerPageCharsetTab( QWidget * parent, const char * name )
+ComposerPageCharsetTab::ComposerPageCharsetTab( TQWidget * parent, const char * name )
: ConfigModuleTab( parent, name )
{
// tmp. vars:
- QVBoxLayout *vlay;
- QLabel *label;
+ TQVBoxLayout *vlay;
+ TQLabel *label;
- vlay = new QVBoxLayout( this, KDialog::marginHint(), KDialog::spacingHint() );
+ vlay = new TQVBoxLayout( this, KDialog::marginHint(), KDialog::spacingHint() );
- label = new QLabel( i18n("This list is checked for every outgoing message "
+ label = new TQLabel( i18n("This list is checked for every outgoing message "
"from the top to the bottom for a charset that "
"contains all required characters."), this );
label->setAlignment( WordBreak);
@@ -3163,59 +3163,59 @@ ComposerPageCharsetTab::ComposerPageCharsetTab( QWidget * parent, const char * n
new SimpleStringListEditor( this, 0, SimpleStringListEditor::All,
i18n("A&dd..."), i18n("Remo&ve"),
i18n("&Modify..."), i18n("Enter charset:") );
- connect( mCharsetListEditor, SIGNAL( changed( void ) ),
- this, SLOT( slotEmitChanged( void ) ) );
+ connect( mCharsetListEditor, TQT_SIGNAL( changed( void ) ),
+ this, TQT_SLOT( slotEmitChanged( void ) ) );
vlay->addWidget( mCharsetListEditor, 1 );
- mKeepReplyCharsetCheck = new QCheckBox( i18n("&Keep original charset when "
+ mKeepReplyCharsetCheck = new TQCheckBox( i18n("&Keep original charset when "
"replying or forwarding (if "
"possible)"), this );
- connect( mKeepReplyCharsetCheck, SIGNAL ( stateChanged( int ) ),
- this, SLOT( slotEmitChanged( void ) ) );
+ connect( mKeepReplyCharsetCheck, TQT_SIGNAL ( stateChanged( int ) ),
+ this, TQT_SLOT( slotEmitChanged( void ) ) );
vlay->addWidget( mKeepReplyCharsetCheck );
- connect( mCharsetListEditor, SIGNAL(aboutToAdd(QString&)),
- this, SLOT(slotVerifyCharset(QString&)) );
+ connect( mCharsetListEditor, TQT_SIGNAL(aboutToAdd(TQString&)),
+ this, TQT_SLOT(slotVerifyCharset(TQString&)) );
}
-void ComposerPage::CharsetTab::slotVerifyCharset( QString & charset ) {
+void ComposerPage::CharsetTab::slotVerifyCharset( TQString & charset ) {
if ( charset.isEmpty() ) return;
// KCharsets::codecForName("us-ascii") returns "iso-8859-1" (cf. Bug #49812)
// therefore we have to treat this case specially
- if ( charset.lower() == QString::fromLatin1("us-ascii") ) {
- charset = QString::fromLatin1("us-ascii");
+ if ( charset.lower() == TQString::fromLatin1("us-ascii") ) {
+ charset = TQString::fromLatin1("us-ascii");
return;
}
- if ( charset.lower() == QString::fromLatin1("locale") ) {
- charset = QString::fromLatin1("%1 (locale)")
- .arg( QCString( kmkernel->networkCodec()->mimeName() ).lower() );
+ if ( charset.lower() == TQString::fromLatin1("locale") ) {
+ charset = TQString::fromLatin1("%1 (locale)")
+ .arg( TQCString( kmkernel->networkCodec()->mimeName() ).lower() );
return;
}
bool ok = false;
- QTextCodec *codec = KGlobal::charsets()->codecForName( charset, ok );
+ TQTextCodec *codec = KGlobal::charsets()->codecForName( charset, ok );
if ( ok && codec ) {
- charset = QString::fromLatin1( codec->mimeName() ).lower();
+ charset = TQString::fromLatin1( codec->mimeName() ).lower();
return;
}
KMessageBox::sorry( this, i18n("This charset is not supported.") );
- charset = QString::null;
+ charset = TQString::null;
}
void ComposerPage::CharsetTab::doLoadOther() {
KConfigGroup composer( KMKernel::config(), "Composer" );
- QStringList charsets = composer.readListEntry( "pref-charsets" );
- for ( QStringList::Iterator it = charsets.begin() ;
+ TQStringList charsets = composer.readListEntry( "pref-charsets" );
+ for ( TQStringList::Iterator it = charsets.begin() ;
it != charsets.end() ; ++it )
- if ( (*it) == QString::fromLatin1("locale") ) {
- QCString cset = kmkernel->networkCodec()->mimeName();
+ if ( (*it) == TQString::fromLatin1("locale") ) {
+ TQCString cset = kmkernel->networkCodec()->mimeName();
KPIM::kAsciiToLower( cset.data() );
- (*it) = QString("%1 (locale)").arg( cset );
+ (*it) = TQString("%1 (locale)").arg( cset );
}
mCharsetListEditor->setStringList( charsets );
@@ -3225,8 +3225,8 @@ void ComposerPage::CharsetTab::doLoadOther() {
void ComposerPage::CharsetTab::save() {
KConfigGroup composer( KMKernel::config(), "Composer" );
- QStringList charsetList = mCharsetListEditor->stringList();
- QStringList::Iterator it = charsetList.begin();
+ TQStringList charsetList = mCharsetListEditor->stringList();
+ TQStringList::Iterator it = charsetList.begin();
for ( ; it != charsetList.end() ; ++it )
if ( (*it).endsWith("(locale)") )
(*it) = "locale";
@@ -3235,55 +3235,55 @@ void ComposerPage::CharsetTab::save() {
!mKeepReplyCharsetCheck->isChecked() );
}
-QString ComposerPage::HeadersTab::helpAnchor() const {
- return QString::fromLatin1("configure-composer-headers");
+TQString ComposerPage::HeadersTab::helpAnchor() const {
+ return TQString::fromLatin1("configure-composer-headers");
}
-ComposerPageHeadersTab::ComposerPageHeadersTab( QWidget * parent, const char * name )
+ComposerPageHeadersTab::ComposerPageHeadersTab( TQWidget * parent, const char * name )
: ConfigModuleTab( parent, name )
{
// tmp. vars:
- QVBoxLayout *vlay;
- QHBoxLayout *hlay;
- QGridLayout *glay;
- QLabel *label;
- QPushButton *button;
+ TQVBoxLayout *vlay;
+ TQHBoxLayout *hlay;
+ TQGridLayout *glay;
+ TQLabel *label;
+ TQPushButton *button;
- vlay = new QVBoxLayout( this, KDialog::marginHint(), KDialog::spacingHint() );
+ vlay = new TQVBoxLayout( this, KDialog::marginHint(), KDialog::spacingHint() );
// "Use custom Message-Id suffix" checkbox:
mCreateOwnMessageIdCheck =
- new QCheckBox( i18n("&Use custom message-id suffix"), this );
- connect( mCreateOwnMessageIdCheck, SIGNAL ( stateChanged( int ) ),
- this, SLOT( slotEmitChanged( void ) ) );
+ new TQCheckBox( i18n("&Use custom message-id suffix"), this );
+ connect( mCreateOwnMessageIdCheck, TQT_SIGNAL ( stateChanged( int ) ),
+ this, TQT_SLOT( slotEmitChanged( void ) ) );
vlay->addWidget( mCreateOwnMessageIdCheck );
// "Message-Id suffix" line edit and label:
- hlay = new QHBoxLayout( vlay ); // inherits spacing
+ hlay = new TQHBoxLayout( vlay ); // inherits spacing
mMessageIdSuffixEdit = new KLineEdit( this );
// only ASCII letters, digits, plus, minus and dots are allowed
mMessageIdSuffixValidator =
- new QRegExpValidator( QRegExp( "[a-zA-Z0-9+-]+(?:\\.[a-zA-Z0-9+-]+)*" ), this );
+ new TQRegExpValidator( TQRegExp( "[a-zA-Z0-9+-]+(?:\\.[a-zA-Z0-9+-]+)*" ), this );
mMessageIdSuffixEdit->setValidator( mMessageIdSuffixValidator );
- label = new QLabel( mMessageIdSuffixEdit,
+ label = new TQLabel( mMessageIdSuffixEdit,
i18n("Custom message-&id suffix:"), this );
label->setEnabled( false ); // since !mCreateOwnMessageIdCheck->isChecked()
mMessageIdSuffixEdit->setEnabled( false );
hlay->addWidget( label );
hlay->addWidget( mMessageIdSuffixEdit, 1 );
- connect( mCreateOwnMessageIdCheck, SIGNAL(toggled(bool) ),
- label, SLOT(setEnabled(bool)) );
- connect( mCreateOwnMessageIdCheck, SIGNAL(toggled(bool) ),
- mMessageIdSuffixEdit, SLOT(setEnabled(bool)) );
- connect( mMessageIdSuffixEdit, SIGNAL( textChanged( const QString& ) ),
- this, SLOT( slotEmitChanged( void ) ) );
+ connect( mCreateOwnMessageIdCheck, TQT_SIGNAL(toggled(bool) ),
+ label, TQT_SLOT(setEnabled(bool)) );
+ connect( mCreateOwnMessageIdCheck, TQT_SIGNAL(toggled(bool) ),
+ mMessageIdSuffixEdit, TQT_SLOT(setEnabled(bool)) );
+ connect( mMessageIdSuffixEdit, TQT_SIGNAL( textChanged( const TQString& ) ),
+ this, TQT_SLOT( slotEmitChanged( void ) ) );
// horizontal rule and "custom header fields" label:
vlay->addWidget( new KSeparator( KSeparator::HLine, this ) );
- vlay->addWidget( new QLabel( i18n("Define custom mime header fields:"), this) );
+ vlay->addWidget( new TQLabel( i18n("Define custom mime header fields:"), this) );
// "custom header fields" listbox:
- glay = new QGridLayout( vlay, 5, 3 ); // inherits spacing
+ glay = new TQGridLayout( vlay, 5, 3 ); // inherits spacing
glay->setRowStretch( 2, 1 );
glay->setColStretch( 1, 1 );
mTagList = new ListView( this, "tagList" );
@@ -3291,44 +3291,44 @@ ComposerPageHeadersTab::ComposerPageHeadersTab( QWidget * parent, const char * n
mTagList->addColumn( i18n("Value") );
mTagList->setAllColumnsShowFocus( true );
mTagList->setSorting( -1 );
- connect( mTagList, SIGNAL(selectionChanged()),
- this, SLOT(slotMimeHeaderSelectionChanged()) );
+ connect( mTagList, TQT_SIGNAL(selectionChanged()),
+ this, TQT_SLOT(slotMimeHeaderSelectionChanged()) );
glay->addMultiCellWidget( mTagList, 0, 2, 0, 1 );
// "new" and "remove" buttons:
- button = new QPushButton( i18n("Ne&w"), this );
- connect( button, SIGNAL(clicked()), this, SLOT(slotNewMimeHeader()) );
+ button = new TQPushButton( i18n("Ne&w"), this );
+ connect( button, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotNewMimeHeader()) );
button->setAutoDefault( false );
glay->addWidget( button, 0, 2 );
- mRemoveHeaderButton = new QPushButton( i18n("Re&move"), this );
- connect( mRemoveHeaderButton, SIGNAL(clicked()),
- this, SLOT(slotRemoveMimeHeader()) );
+ mRemoveHeaderButton = new TQPushButton( i18n("Re&move"), this );
+ connect( mRemoveHeaderButton, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(slotRemoveMimeHeader()) );
button->setAutoDefault( false );
glay->addWidget( mRemoveHeaderButton, 1, 2 );
// "name" and "value" line edits and labels:
mTagNameEdit = new KLineEdit( this );
mTagNameEdit->setEnabled( false );
- mTagNameLabel = new QLabel( mTagNameEdit, i18n("&Name:"), this );
+ mTagNameLabel = new TQLabel( mTagNameEdit, i18n("&Name:"), this );
mTagNameLabel->setEnabled( false );
glay->addWidget( mTagNameLabel, 3, 0 );
glay->addWidget( mTagNameEdit, 3, 1 );
- connect( mTagNameEdit, SIGNAL(textChanged(const QString&)),
- this, SLOT(slotMimeHeaderNameChanged(const QString&)) );
+ connect( mTagNameEdit, TQT_SIGNAL(textChanged(const TQString&)),
+ this, TQT_SLOT(slotMimeHeaderNameChanged(const TQString&)) );
mTagValueEdit = new KLineEdit( this );
mTagValueEdit->setEnabled( false );
- mTagValueLabel = new QLabel( mTagValueEdit, i18n("&Value:"), this );
+ mTagValueLabel = new TQLabel( mTagValueEdit, i18n("&Value:"), this );
mTagValueLabel->setEnabled( false );
glay->addWidget( mTagValueLabel, 4, 0 );
glay->addWidget( mTagValueEdit, 4, 1 );
- connect( mTagValueEdit, SIGNAL(textChanged(const QString&)),
- this, SLOT(slotMimeHeaderValueChanged(const QString&)) );
+ connect( mTagValueEdit, TQT_SIGNAL(textChanged(const TQString&)),
+ this, TQT_SLOT(slotMimeHeaderValueChanged(const TQString&)) );
}
void ComposerPage::HeadersTab::slotMimeHeaderSelectionChanged()
{
- QListViewItem * item = mTagList->selectedItem();
+ TQListViewItem * item = mTagList->selectedItem();
if ( item ) {
mTagNameEdit->setText( item->text( 0 ) );
@@ -3345,20 +3345,20 @@ void ComposerPage::HeadersTab::slotMimeHeaderSelectionChanged()
}
-void ComposerPage::HeadersTab::slotMimeHeaderNameChanged( const QString & text ) {
+void ComposerPage::HeadersTab::slotMimeHeaderNameChanged( const TQString & text ) {
// is called on ::setup(), when clearing the line edits. So be
// prepared to not find a selection:
- QListViewItem * item = mTagList->selectedItem();
+ TQListViewItem * item = mTagList->selectedItem();
if ( item )
item->setText( 0, text );
emit changed( true );
}
-void ComposerPage::HeadersTab::slotMimeHeaderValueChanged( const QString & text ) {
+void ComposerPage::HeadersTab::slotMimeHeaderValueChanged( const TQString & text ) {
// is called on ::setup(), when clearing the line edits. So be
// prepared to not find a selection:
- QListViewItem * item = mTagList->selectedItem();
+ TQListViewItem * item = mTagList->selectedItem();
if ( item )
item->setText( 1, text );
emit changed( true );
@@ -3367,7 +3367,7 @@ void ComposerPage::HeadersTab::slotMimeHeaderValueChanged( const QString & text
void ComposerPage::HeadersTab::slotNewMimeHeader()
{
- QListViewItem *listItem = new QListViewItem( mTagList );
+ TQListViewItem *listItem = new TQListViewItem( mTagList );
mTagList->setCurrentItem( listItem );
mTagList->setSelected( listItem, true );
emit changed( true );
@@ -3377,7 +3377,7 @@ void ComposerPage::HeadersTab::slotNewMimeHeader()
void ComposerPage::HeadersTab::slotRemoveMimeHeader()
{
// calling this w/o selection is a programming error:
- QListViewItem * item = mTagList->selectedItem();
+ TQListViewItem * item = mTagList->selectedItem();
if ( !item ) {
kdDebug(5006) << "==================================================\n"
<< "Error: Remove button was pressed although no custom header was selected\n"
@@ -3385,7 +3385,7 @@ void ComposerPage::HeadersTab::slotRemoveMimeHeader()
return;
}
- QListViewItem * below = item->nextSibling();
+ TQListViewItem * below = item->nextSibling();
delete item;
if ( below )
@@ -3398,7 +3398,7 @@ void ComposerPage::HeadersTab::slotRemoveMimeHeader()
void ComposerPage::HeadersTab::doLoadOther() {
KConfigGroup general( KMKernel::config(), "General" );
- QString suffix = general.readEntry( "myMessageIdSuffix" );
+ TQString suffix = general.readEntry( "myMessageIdSuffix" );
mMessageIdSuffixEdit->setText( suffix );
bool state = ( !suffix.isEmpty() &&
general.readBoolEntry( "useCustomMessageIdSuffix", false ) );
@@ -3408,16 +3408,16 @@ void ComposerPage::HeadersTab::doLoadOther() {
mTagNameEdit->clear();
mTagValueEdit->clear();
- QListViewItem * item = 0;
+ TQListViewItem * item = 0;
int count = general.readNumEntry( "mime-header-count", 0 );
for( int i = 0 ; i < count ; i++ ) {
KConfigGroup config( KMKernel::config(),
- QCString("Mime #") + QCString().setNum(i) );
- QString name = config.readEntry( "name" );
- QString value = config.readEntry( "value" );
+ TQCString("Mime #") + TQCString().setNum(i) );
+ TQString name = config.readEntry( "name" );
+ TQString value = config.readEntry( "value" );
if( !name.isEmpty() )
- item = new QListViewItem( mTagList, item, name, value );
+ item = new TQListViewItem( mTagList, item, name, value );
}
if ( mTagList->childCount() ) {
mTagList->setCurrentItem( mTagList->firstChild() );
@@ -3438,11 +3438,11 @@ void ComposerPage::HeadersTab::save() {
mMessageIdSuffixEdit->text() );
int numValidEntries = 0;
- QListViewItem * item = mTagList->firstChild();
+ TQListViewItem * item = mTagList->firstChild();
for ( ; item ; item = item->itemBelow() )
if( !item->text(0).isEmpty() ) {
- KConfigGroup config( KMKernel::config(), QCString("Mime #")
- + QCString().setNum( numValidEntries ) );
+ KConfigGroup config( KMKernel::config(), TQCString("Mime #")
+ + TQCString().setNum( numValidEntries ) );
config.writeEntry( "name", item->text( 0 ) );
config.writeEntry( "value", item->text( 1 ) );
numValidEntries++;
@@ -3450,43 +3450,43 @@ void ComposerPage::HeadersTab::save() {
general.writeEntry( "mime-header-count", numValidEntries );
}
-QString ComposerPage::AttachmentsTab::helpAnchor() const {
- return QString::fromLatin1("configure-composer-attachments");
+TQString ComposerPage::AttachmentsTab::helpAnchor() const {
+ return TQString::fromLatin1("configure-composer-attachments");
}
-ComposerPageAttachmentsTab::ComposerPageAttachmentsTab( QWidget * parent,
+ComposerPageAttachmentsTab::ComposerPageAttachmentsTab( TQWidget * parent,
const char * name )
: ConfigModuleTab( parent, name ) {
// tmp. vars:
- QVBoxLayout *vlay;
- QLabel *label;
+ TQVBoxLayout *vlay;
+ TQLabel *label;
- vlay = new QVBoxLayout( this, KDialog::marginHint(), KDialog::spacingHint() );
+ vlay = new TQVBoxLayout( this, KDialog::marginHint(), KDialog::spacingHint() );
// "Outlook compatible attachment naming" check box
mOutlookCompatibleCheck =
- new QCheckBox( i18n( "Outlook-compatible attachment naming" ), this );
+ new TQCheckBox( i18n( "Outlook-compatible attachment naming" ), this );
mOutlookCompatibleCheck->setChecked( false );
- QToolTip::add( mOutlookCompatibleCheck, i18n(
+ TQToolTip::add( mOutlookCompatibleCheck, i18n(
"Turn this option on to make Outlook(tm) understand attachment names "
"containing non-English characters" ) );
- connect( mOutlookCompatibleCheck, SIGNAL( stateChanged( int ) ),
- this, SLOT( slotEmitChanged( void ) ) );
- connect( mOutlookCompatibleCheck, SIGNAL( clicked() ),
- this, SLOT( slotOutlookCompatibleClicked() ) );
+ connect( mOutlookCompatibleCheck, TQT_SIGNAL( stateChanged( int ) ),
+ this, TQT_SLOT( slotEmitChanged( void ) ) );
+ connect( mOutlookCompatibleCheck, TQT_SIGNAL( clicked() ),
+ this, TQT_SLOT( slotOutlookCompatibleClicked() ) );
vlay->addWidget( mOutlookCompatibleCheck );
vlay->addSpacing( 5 );
// "Enable detection of missing attachments" check box
mMissingAttachmentDetectionCheck =
- new QCheckBox( i18n("E&nable detection of missing attachments"), this );
+ new TQCheckBox( i18n("E&nable detection of missing attachments"), this );
mMissingAttachmentDetectionCheck->setChecked( true );
- connect( mMissingAttachmentDetectionCheck, SIGNAL( stateChanged( int ) ),
- this, SLOT( slotEmitChanged( void ) ) );
+ connect( mMissingAttachmentDetectionCheck, TQT_SIGNAL( stateChanged( int ) ),
+ this, TQT_SLOT( slotEmitChanged( void ) ) );
vlay->addWidget( mMissingAttachmentDetectionCheck );
// "Attachment key words" label and string list editor
- label = new QLabel( i18n("Recognize any of the following key words as "
+ label = new TQLabel( i18n("Recognize any of the following key words as "
"intention to attach a file:"), this );
label->setAlignment( AlignLeft|WordBreak );
vlay->addWidget( label );
@@ -3498,14 +3498,14 @@ ComposerPageAttachmentsTab::ComposerPageAttachmentsTab( QWidget * parent,
i18n("A&dd..."), i18n("Re&move"),
i18n("Mod&ify..."),
i18n("Enter new key word:") );
- connect( mAttachWordsListEditor, SIGNAL( changed( void ) ),
- this, SLOT( slotEmitChanged( void ) ) );
+ connect( mAttachWordsListEditor, TQT_SIGNAL( changed( void ) ),
+ this, TQT_SLOT( slotEmitChanged( void ) ) );
vlay->addWidget( mAttachWordsListEditor );
- connect( mMissingAttachmentDetectionCheck, SIGNAL(toggled(bool) ),
- label, SLOT(setEnabled(bool)) );
- connect( mMissingAttachmentDetectionCheck, SIGNAL(toggled(bool) ),
- mAttachWordsListEditor, SLOT(setEnabled(bool)) );
+ connect( mMissingAttachmentDetectionCheck, TQT_SIGNAL(toggled(bool) ),
+ label, TQT_SLOT(setEnabled(bool)) );
+ connect( mMissingAttachmentDetectionCheck, TQT_SIGNAL(toggled(bool) ),
+ mAttachWordsListEditor, TQT_SLOT(setEnabled(bool)) );
}
void ComposerPage::AttachmentsTab::doLoadFromGlobalSettings() {
@@ -3513,14 +3513,14 @@ void ComposerPage::AttachmentsTab::doLoadFromGlobalSettings() {
GlobalSettings::self()->outlookCompatibleAttachments() );
mMissingAttachmentDetectionCheck->setChecked(
GlobalSettings::self()->showForgottenAttachmentWarning() );
- QStringList attachWordsList = GlobalSettings::self()->attachmentKeywords();
+ TQStringList attachWordsList = GlobalSettings::self()->attachmentKeywords();
if ( attachWordsList.isEmpty() ) {
// default value
- attachWordsList << QString::fromLatin1("attachment")
- << QString::fromLatin1("attached");
- if ( QString::fromLatin1("attachment") != i18n("attachment") )
+ attachWordsList << TQString::fromLatin1("attachment")
+ << TQString::fromLatin1("attached");
+ if ( TQString::fromLatin1("attachment") != i18n("attachment") )
attachWordsList << i18n("attachment");
- if ( QString::fromLatin1("attached") != i18n("attached") )
+ if ( TQString::fromLatin1("attached") != i18n("attached") )
attachWordsList << i18n("attached");
}
@@ -3555,11 +3555,11 @@ void ComposerPageAttachmentsTab::slotOutlookCompatibleClicked()
// * SecurityPage *
// * *
// *************************************************************
-QString SecurityPage::helpAnchor() const {
- return QString::fromLatin1("configure-security");
+TQString SecurityPage::helpAnchor() const {
+ return TQString::fromLatin1("configure-security");
}
-SecurityPage::SecurityPage( QWidget * parent, const char * name )
+SecurityPage::SecurityPage( TQWidget * parent, const char * name )
: ConfigModuleWithTabs( parent, name )
{
//
@@ -3602,26 +3602,26 @@ void SecurityPage::installProfile( KConfig * profile ) {
mSMimeTab->installProfile( profile );
}
-QString SecurityPage::GeneralTab::helpAnchor() const {
- return QString::fromLatin1("configure-security-reading");
+TQString SecurityPage::GeneralTab::helpAnchor() const {
+ return TQString::fromLatin1("configure-security-reading");
}
-SecurityPageGeneralTab::SecurityPageGeneralTab( QWidget * parent, const char * name )
+SecurityPageGeneralTab::SecurityPageGeneralTab( TQWidget * parent, const char * name )
: ConfigModuleTab ( parent, name )
{
// tmp. vars:
- QVBoxLayout *vlay;
- QHBox *hbox;
- QGroupBox *group;
- QRadioButton *radio;
+ TQVBoxLayout *vlay;
+ TQHBox *hbox;
+ TQGroupBox *group;
+ TQRadioButton *radio;
KActiveLabel *label;
- QWidget *w;
- QString msg;
+ TQWidget *w;
+ TQString msg;
- vlay = new QVBoxLayout( this, KDialog::marginHint(), KDialog::spacingHint() );
+ vlay = new TQVBoxLayout( this, KDialog::marginHint(), KDialog::spacingHint() );
// QWhat'sThis texts
- QString htmlWhatsThis = i18n( "<qt><p>Messages sometimes come in both formats. "
+ TQString htmlWhatsThis = i18n( "<qt><p>Messages sometimes come in both formats. "
"This option controls whether you want the HTML part or the plain "
"text part to be displayed.</p>"
"<p>Displaying the HTML part makes the message look better, "
@@ -3638,7 +3638,7 @@ SecurityPageGeneralTab::SecurityPageGeneralTab( QWidget * parent, const char * n
"<p><b>Note:</b> You can set this option on a per-folder basis "
"from the <i>Folder</i> menu of KMail's main window.</p></qt>" );
- QString externalWhatsThis = i18n( "<qt><p>Some mail advertisements are in HTML "
+ TQString externalWhatsThis = i18n( "<qt><p>Some mail advertisements are in HTML "
"and contain references to, for example, images that the advertisers"
" employ to find out that you have read their message "
"(&quot;web bugs&quot;).</p>"
@@ -3651,7 +3651,7 @@ SecurityPageGeneralTab::SecurityPageGeneralTab( QWidget * parent, const char * n
"messages that were not attached to it, you can enable this "
"option, but you should be aware of the possible problem.</p></qt>" );
- QString receiptWhatsThis = i18n( "<qt><h3>Message Disposition "
+ TQString receiptWhatsThis = i18n( "<qt><h3>Message Disposition "
"Notification Policy</h3>"
"<p>MDNs are a generalization of what is commonly called <b>read "
"receipt</b>. The message author requests a disposition "
@@ -3684,18 +3684,18 @@ SecurityPageGeneralTab::SecurityPageGeneralTab( QWidget * parent, const char * n
// "HTML Messages" group box:
- group = new QVGroupBox( i18n( "HTML Messages" ), this );
+ group = new TQVGroupBox( i18n( "HTML Messages" ), this );
group->layout()->setSpacing( KDialog::spacingHint() );
- mHtmlMailCheck = new QCheckBox( i18n("Prefer H&TML to plain text"), group );
- QWhatsThis::add( mHtmlMailCheck, htmlWhatsThis );
- connect( mHtmlMailCheck, SIGNAL( stateChanged( int ) ),
- this, SLOT( slotEmitChanged( void ) ) );
- mExternalReferences = new QCheckBox( i18n("Allow messages to load e&xternal "
+ mHtmlMailCheck = new TQCheckBox( i18n("Prefer H&TML to plain text"), group );
+ TQWhatsThis::add( mHtmlMailCheck, htmlWhatsThis );
+ connect( mHtmlMailCheck, TQT_SIGNAL( stateChanged( int ) ),
+ this, TQT_SLOT( slotEmitChanged( void ) ) );
+ mExternalReferences = new TQCheckBox( i18n("Allow messages to load e&xternal "
"references from the Internet" ), group );
- QWhatsThis::add( mExternalReferences, externalWhatsThis );
- connect( mExternalReferences, SIGNAL( stateChanged( int ) ),
- this, SLOT( slotEmitChanged( void ) ) );
+ TQWhatsThis::add( mExternalReferences, externalWhatsThis );
+ connect( mExternalReferences, TQT_SIGNAL( stateChanged( int ) ),
+ this, TQT_SLOT( slotEmitChanged( void ) ) );
label = new KActiveLabel( i18n("<b>WARNING:</b> Allowing HTML in email may "
"increase the risk that your system will be "
"compromised by present and anticipated security "
@@ -3708,70 +3708,70 @@ SecurityPageGeneralTab::SecurityPageGeneralTab( QWidget * parent, const char * n
vlay->addWidget( group );
// encrypted messages group
- group = new QVGroupBox( i18n("Encrypted Messages"), this );
+ group = new TQVGroupBox( i18n("Encrypted Messages"), this );
group->layout()->setSpacing( KDialog::spacingHint() );
- mAlwaysDecrypt = new QCheckBox( i18n( "Attempt decryption of encrypted messages when viewing" ), group );
- connect( mAlwaysDecrypt, SIGNAL(stateChanged(int)), this, SLOT(slotEmitChanged()) );
+ mAlwaysDecrypt = new TQCheckBox( i18n( "Attempt decryption of encrypted messages when viewing" ), group );
+ connect( mAlwaysDecrypt, TQT_SIGNAL(stateChanged(int)), this, TQT_SLOT(slotEmitChanged()) );
vlay->addWidget( group );
// "Message Disposition Notification" groupbox:
- group = new QVGroupBox( i18n("Message Disposition Notifications"), this );
+ group = new TQVGroupBox( i18n("Message Disposition Notifications"), this );
group->layout()->setSpacing( KDialog::spacingHint() );
// "ignore", "ask", "deny", "always send" radiobutton line:
- mMDNGroup = new QButtonGroup( group );
+ mMDNGroup = new TQButtonGroup( group );
mMDNGroup->hide();
- connect( mMDNGroup, SIGNAL( clicked( int ) ),
- this, SLOT( slotEmitChanged( void ) ) );
- hbox = new QHBox( group );
+ connect( mMDNGroup, TQT_SIGNAL( clicked( int ) ),
+ this, TQT_SLOT( slotEmitChanged( void ) ) );
+ hbox = new TQHBox( group );
hbox->setSpacing( KDialog::spacingHint() );
- (void)new QLabel( i18n("Send policy:"), hbox );
+ (void)new TQLabel( i18n("Send policy:"), hbox );
- radio = new QRadioButton( i18n("&Ignore"), hbox );
+ radio = new TQRadioButton( i18n("&Ignore"), hbox );
mMDNGroup->insert( radio );
- radio = new QRadioButton( i18n("As&k"), hbox );
+ radio = new TQRadioButton( i18n("As&k"), hbox );
mMDNGroup->insert( radio );
- radio = new QRadioButton( i18n("&Deny"), hbox );
+ radio = new TQRadioButton( i18n("&Deny"), hbox );
mMDNGroup->insert( radio );
- radio = new QRadioButton( i18n("Al&ways send"), hbox );
+ radio = new TQRadioButton( i18n("Al&ways send"), hbox );
mMDNGroup->insert( radio );
for ( int i = 0 ; i < mMDNGroup->count() ; ++i )
- QWhatsThis::add( mMDNGroup->find( i ), receiptWhatsThis );
+ TQWhatsThis::add( mMDNGroup->find( i ), receiptWhatsThis );
- w = new QWidget( hbox ); // spacer
+ w = new TQWidget( hbox ); // spacer
hbox->setStretchFactor( w, 1 );
// "Original Message quote" radiobutton line:
- mOrigQuoteGroup = new QButtonGroup( group );
+ mOrigQuoteGroup = new TQButtonGroup( group );
mOrigQuoteGroup->hide();
- connect( mOrigQuoteGroup, SIGNAL( clicked( int ) ),
- this, SLOT( slotEmitChanged( void ) ) );
+ connect( mOrigQuoteGroup, TQT_SIGNAL( clicked( int ) ),
+ this, TQT_SLOT( slotEmitChanged( void ) ) );
- hbox = new QHBox( group );
+ hbox = new TQHBox( group );
hbox->setSpacing( KDialog::spacingHint() );
- (void)new QLabel( i18n("Quote original message:"), hbox );
+ (void)new TQLabel( i18n("Quote original message:"), hbox );
- radio = new QRadioButton( i18n("Nothin&g"), hbox );
+ radio = new TQRadioButton( i18n("Nothin&g"), hbox );
mOrigQuoteGroup->insert( radio );
- radio = new QRadioButton( i18n("&Full message"), hbox );
+ radio = new TQRadioButton( i18n("&Full message"), hbox );
mOrigQuoteGroup->insert( radio );
- radio = new QRadioButton( i18n("Onl&y headers"), hbox );
+ radio = new TQRadioButton( i18n("Onl&y headers"), hbox );
mOrigQuoteGroup->insert( radio );
- w = new QWidget( hbox );
+ w = new TQWidget( hbox );
hbox->setStretchFactor( w, 1 );
- mNoMDNsWhenEncryptedCheck = new QCheckBox( i18n("Do not send MDNs in response to encrypted messages"), group );
- connect( mNoMDNsWhenEncryptedCheck, SIGNAL(toggled(bool)), SLOT(slotEmitChanged()) );
+ mNoMDNsWhenEncryptedCheck = new TQCheckBox( i18n("Do not send MDNs in response to encrypted messages"), group );
+ connect( mNoMDNsWhenEncryptedCheck, TQT_SIGNAL(toggled(bool)), TQT_SLOT(slotEmitChanged()) );
// Warning label:
label = new KActiveLabel( i18n("<b>WARNING:</b> Unconditionally returning "
@@ -3783,11 +3783,11 @@ SecurityPageGeneralTab::SecurityPageGeneralTab( QWidget * parent, const char * n
vlay->addWidget( group );
// "Attached keys" group box:
- group = new QVGroupBox( i18n( "Certificate && Key Bundle Attachments" ), this );
+ group = new TQVGroupBox( i18n( "Certificate && Key Bundle Attachments" ), this );
group->layout()->setSpacing( KDialog::spacingHint() );
- mAutomaticallyImportAttachedKeysCheck = new QCheckBox( i18n("Automatically import keys and certificates"), group );
- connect( mAutomaticallyImportAttachedKeysCheck, SIGNAL(toggled(bool)), SLOT(slotEmitChanged()) );
+ mAutomaticallyImportAttachedKeysCheck = new TQCheckBox( i18n("Automatically import keys and certificates"), group );
+ connect( mAutomaticallyImportAttachedKeysCheck, TQT_SIGNAL(toggled(bool)), TQT_SLOT(slotEmitChanged()) );
vlay->addWidget( group );
@@ -3848,17 +3848,17 @@ void SecurityPage::GeneralTab::save() {
if (reader.readBoolEntry( "htmlMail", false ) != mHtmlMailCheck->isChecked())
{
if (KMessageBox::warningContinueCancel(this, i18n("Changing the global "
- "HTML setting will override all folder specific values."), QString::null,
+ "HTML setting will override all folder specific values."), TQString::null,
KStdGuiItem::cont(), "htmlMailOverride") == KMessageBox::Continue)
{
reader.writeEntry( "htmlMail", mHtmlMailCheck->isChecked() );
- QStringList names;
- QValueList<QGuardedPtr<KMFolder> > folders;
+ TQStringList names;
+ TQValueList<TQGuardedPtr<KMFolder> > folders;
kmkernel->folderMgr()->createFolderList(&names, &folders);
kmkernel->imapFolderMgr()->createFolderList(&names, &folders);
kmkernel->dimapFolderMgr()->createFolderList(&names, &folders);
kmkernel->searchFolderMgr()->createFolderList(&names, &folders);
- for (QValueList<QGuardedPtr<KMFolder> >::iterator it = folders.begin();
+ for (TQValueList<TQGuardedPtr<KMFolder> >::iterator it = folders.begin();
it != folders.end(); ++it)
{
if (*it)
@@ -3879,24 +3879,24 @@ void SecurityPage::GeneralTab::save() {
}
-QString SecurityPage::ComposerCryptoTab::helpAnchor() const {
- return QString::fromLatin1("configure-security-composing");
+TQString SecurityPage::ComposerCryptoTab::helpAnchor() const {
+ return TQString::fromLatin1("configure-security-composing");
}
-SecurityPageComposerCryptoTab::SecurityPageComposerCryptoTab( QWidget * parent, const char * name )
+SecurityPageComposerCryptoTab::SecurityPageComposerCryptoTab( TQWidget * parent, const char * name )
: ConfigModuleTab ( parent, name )
{
// the margins are inside mWidget itself
- QVBoxLayout* vlay = new QVBoxLayout( this, 0, 0 );
+ TQVBoxLayout* vlay = new TQVBoxLayout( this, 0, 0 );
mWidget = new ComposerCryptoConfiguration( this );
- connect( mWidget->mAutoSignature, SIGNAL( toggled(bool) ), this, SLOT( slotEmitChanged() ) );
- connect( mWidget->mEncToSelf, SIGNAL( toggled(bool) ), this, SLOT( slotEmitChanged() ) );
- connect( mWidget->mShowEncryptionResult, SIGNAL( toggled(bool) ), this, SLOT( slotEmitChanged() ) );
- connect( mWidget->mShowKeyApprovalDlg, SIGNAL( toggled(bool) ), this, SLOT( slotEmitChanged() ) );
- connect( mWidget->mAutoEncrypt, SIGNAL( toggled(bool) ), this, SLOT( slotEmitChanged() ) );
- connect( mWidget->mNeverEncryptWhenSavingInDrafts, SIGNAL( toggled(bool) ), this, SLOT( slotEmitChanged() ) );
- connect( mWidget->mStoreEncrypted, SIGNAL( toggled(bool) ), this, SLOT( slotEmitChanged() ) );
+ connect( mWidget->mAutoSignature, TQT_SIGNAL( toggled(bool) ), this, TQT_SLOT( slotEmitChanged() ) );
+ connect( mWidget->mEncToSelf, TQT_SIGNAL( toggled(bool) ), this, TQT_SLOT( slotEmitChanged() ) );
+ connect( mWidget->mShowEncryptionResult, TQT_SIGNAL( toggled(bool) ), this, TQT_SLOT( slotEmitChanged() ) );
+ connect( mWidget->mShowKeyApprovalDlg, TQT_SIGNAL( toggled(bool) ), this, TQT_SLOT( slotEmitChanged() ) );
+ connect( mWidget->mAutoEncrypt, TQT_SIGNAL( toggled(bool) ), this, TQT_SLOT( slotEmitChanged() ) );
+ connect( mWidget->mNeverEncryptWhenSavingInDrafts, TQT_SIGNAL( toggled(bool) ), this, TQT_SLOT( slotEmitChanged() ) );
+ connect( mWidget->mStoreEncrypted, TQT_SIGNAL( toggled(bool) ), this, TQT_SLOT( slotEmitChanged() ) );
vlay->addWidget( mWidget );
}
@@ -3954,33 +3954,33 @@ void SecurityPage::ComposerCryptoTab::save() {
composer.writeEntry( "crypto-store-encrypted", mWidget->mStoreEncrypted->isChecked() );
}
-QString SecurityPage::WarningTab::helpAnchor() const {
- return QString::fromLatin1("configure-security-warnings");
+TQString SecurityPage::WarningTab::helpAnchor() const {
+ return TQString::fromLatin1("configure-security-warnings");
}
-SecurityPageWarningTab::SecurityPageWarningTab( QWidget * parent, const char * name )
+SecurityPageWarningTab::SecurityPageWarningTab( TQWidget * parent, const char * name )
: ConfigModuleTab( parent, name )
{
// the margins are inside mWidget itself
- QVBoxLayout* vlay = new QVBoxLayout( this, 0, 0 );
+ TQVBoxLayout* vlay = new TQVBoxLayout( this, 0, 0 );
mWidget = new WarningConfiguration( this );
vlay->addWidget( mWidget );
- connect( mWidget->warnGroupBox, SIGNAL(toggled(bool)), SLOT(slotEmitChanged()) );
- connect( mWidget->mWarnUnsigned, SIGNAL(toggled(bool)), SLOT(slotEmitChanged()) );
- connect( mWidget->warnUnencryptedCB, SIGNAL(toggled(bool)), SLOT(slotEmitChanged()) );
- connect( mWidget->warnReceiverNotInCertificateCB, SIGNAL(toggled(bool)), SLOT(slotEmitChanged()) );
- connect( mWidget->mWarnSignKeyExpiresSB, SIGNAL( valueChanged( int ) ), SLOT( slotEmitChanged() ) );
- connect( mWidget->mWarnSignChainCertExpiresSB, SIGNAL( valueChanged( int ) ), SLOT( slotEmitChanged() ) );
- connect( mWidget->mWarnSignRootCertExpiresSB, SIGNAL( valueChanged( int ) ), SLOT( slotEmitChanged() ) );
+ connect( mWidget->warnGroupBox, TQT_SIGNAL(toggled(bool)), TQT_SLOT(slotEmitChanged()) );
+ connect( mWidget->mWarnUnsigned, TQT_SIGNAL(toggled(bool)), TQT_SLOT(slotEmitChanged()) );
+ connect( mWidget->warnUnencryptedCB, TQT_SIGNAL(toggled(bool)), TQT_SLOT(slotEmitChanged()) );
+ connect( mWidget->warnReceiverNotInCertificateCB, TQT_SIGNAL(toggled(bool)), TQT_SLOT(slotEmitChanged()) );
+ connect( mWidget->mWarnSignKeyExpiresSB, TQT_SIGNAL( valueChanged( int ) ), TQT_SLOT( slotEmitChanged() ) );
+ connect( mWidget->mWarnSignChainCertExpiresSB, TQT_SIGNAL( valueChanged( int ) ), TQT_SLOT( slotEmitChanged() ) );
+ connect( mWidget->mWarnSignRootCertExpiresSB, TQT_SIGNAL( valueChanged( int ) ), TQT_SLOT( slotEmitChanged() ) );
- connect( mWidget->mWarnEncrKeyExpiresSB, SIGNAL( valueChanged( int ) ), SLOT( slotEmitChanged() ) );
- connect( mWidget->mWarnEncrChainCertExpiresSB, SIGNAL( valueChanged( int ) ), SLOT( slotEmitChanged() ) );
- connect( mWidget->mWarnEncrRootCertExpiresSB, SIGNAL( valueChanged( int ) ), SLOT( slotEmitChanged() ) );
+ connect( mWidget->mWarnEncrKeyExpiresSB, TQT_SIGNAL( valueChanged( int ) ), TQT_SLOT( slotEmitChanged() ) );
+ connect( mWidget->mWarnEncrChainCertExpiresSB, TQT_SIGNAL( valueChanged( int ) ), TQT_SLOT( slotEmitChanged() ) );
+ connect( mWidget->mWarnEncrRootCertExpiresSB, TQT_SIGNAL( valueChanged( int ) ), TQT_SLOT( slotEmitChanged() ) );
- connect( mWidget->enableAllWarningsPB, SIGNAL(clicked()),
- SLOT(slotReenableAllWarningsClicked()) );
+ connect( mWidget->enableAllWarningsPB, TQT_SIGNAL(clicked()),
+ TQT_SLOT(slotReenableAllWarningsClicked()) );
}
void SecurityPage::WarningTab::doLoadOther() {
@@ -4063,21 +4063,21 @@ void SecurityPage::WarningTab::slotReenableAllWarningsClicked() {
////
-QString SecurityPage::SMimeTab::helpAnchor() const {
- return QString::fromLatin1("configure-security-smime-validation");
+TQString SecurityPage::SMimeTab::helpAnchor() const {
+ return TQString::fromLatin1("configure-security-smime-validation");
}
-SecurityPageSMimeTab::SecurityPageSMimeTab( QWidget * parent, const char * name )
+SecurityPageSMimeTab::SecurityPageSMimeTab( TQWidget * parent, const char * name )
: ConfigModuleTab( parent, name )
{
// the margins are inside mWidget itself
- QVBoxLayout* vlay = new QVBoxLayout( this, 0, 0 );
+ TQVBoxLayout* vlay = new TQVBoxLayout( this, 0, 0 );
mWidget = new SMimeConfiguration( this );
vlay->addWidget( mWidget );
// Button-group for exclusive radiobuttons
- QButtonGroup* bg = new QButtonGroup( mWidget );
+ TQButtonGroup* bg = new TQButtonGroup( mWidget );
bg->hide();
bg->insert( mWidget->CRLRB );
bg->insert( mWidget->OCSPRB );
@@ -4093,31 +4093,31 @@ SecurityPageSMimeTab::SecurityPageSMimeTab( QWidget * parent, const char * name
mConfig = Kleo::CryptoBackendFactory::instance()->config();
- connect( mWidget->CRLRB, SIGNAL( toggled( bool ) ), this, SLOT( slotEmitChanged() ) );
- connect( mWidget->OCSPRB, SIGNAL( toggled( bool ) ), this, SLOT( slotEmitChanged() ) );
- connect( mWidget->OCSPResponderURL, SIGNAL( textChanged( const QString& ) ), this, SLOT( slotEmitChanged() ) );
- connect( mWidget->OCSPResponderSignature, SIGNAL( changed() ), this, SLOT( slotEmitChanged() ) );
- connect( mWidget->doNotCheckCertPolicyCB, SIGNAL( toggled( bool ) ), this, SLOT( slotEmitChanged() ) );
- connect( mWidget->neverConsultCB, SIGNAL( toggled( bool ) ), this, SLOT( slotEmitChanged() ) );
- connect( mWidget->fetchMissingCB, SIGNAL( toggled( bool ) ), this, SLOT( slotEmitChanged() ) );
-
- connect( mWidget->ignoreServiceURLCB, SIGNAL( toggled( bool ) ), this, SLOT( slotEmitChanged() ) );
- connect( mWidget->ignoreHTTPDPCB, SIGNAL( toggled( bool ) ), this, SLOT( slotEmitChanged() ) );
- connect( mWidget->disableHTTPCB, SIGNAL( toggled( bool ) ), this, SLOT( slotEmitChanged() ) );
- connect( mWidget->honorHTTPProxyRB, SIGNAL( toggled( bool ) ), this, SLOT( slotEmitChanged() ) );
- connect( mWidget->useCustomHTTPProxyRB, SIGNAL( toggled( bool ) ), this, SLOT( slotEmitChanged() ) );
- connect( mWidget->customHTTPProxy, SIGNAL( textChanged( const QString& ) ), this, SLOT( slotEmitChanged() ) );
- connect( mWidget->ignoreLDAPDPCB, SIGNAL( toggled( bool ) ), this, SLOT( slotEmitChanged() ) );
- connect( mWidget->disableLDAPCB, SIGNAL( toggled( bool ) ), this, SLOT( slotEmitChanged() ) );
- connect( mWidget->customLDAPProxy, SIGNAL( textChanged( const QString& ) ), this, SLOT( slotEmitChanged() ) );
-
- connect( mWidget->disableHTTPCB, SIGNAL( toggled( bool ) ),
- this, SLOT( slotUpdateHTTPActions() ) );
- connect( mWidget->ignoreHTTPDPCB, SIGNAL( toggled( bool ) ),
- this, SLOT( slotUpdateHTTPActions() ) );
+ connect( mWidget->CRLRB, TQT_SIGNAL( toggled( bool ) ), this, TQT_SLOT( slotEmitChanged() ) );
+ connect( mWidget->OCSPRB, TQT_SIGNAL( toggled( bool ) ), this, TQT_SLOT( slotEmitChanged() ) );
+ connect( mWidget->OCSPResponderURL, TQT_SIGNAL( textChanged( const TQString& ) ), this, TQT_SLOT( slotEmitChanged() ) );
+ connect( mWidget->OCSPResponderSignature, TQT_SIGNAL( changed() ), this, TQT_SLOT( slotEmitChanged() ) );
+ connect( mWidget->doNotCheckCertPolicyCB, TQT_SIGNAL( toggled( bool ) ), this, TQT_SLOT( slotEmitChanged() ) );
+ connect( mWidget->neverConsultCB, TQT_SIGNAL( toggled( bool ) ), this, TQT_SLOT( slotEmitChanged() ) );
+ connect( mWidget->fetchMissingCB, TQT_SIGNAL( toggled( bool ) ), this, TQT_SLOT( slotEmitChanged() ) );
+
+ connect( mWidget->ignoreServiceURLCB, TQT_SIGNAL( toggled( bool ) ), this, TQT_SLOT( slotEmitChanged() ) );
+ connect( mWidget->ignoreHTTPDPCB, TQT_SIGNAL( toggled( bool ) ), this, TQT_SLOT( slotEmitChanged() ) );
+ connect( mWidget->disableHTTPCB, TQT_SIGNAL( toggled( bool ) ), this, TQT_SLOT( slotEmitChanged() ) );
+ connect( mWidget->honorHTTPProxyRB, TQT_SIGNAL( toggled( bool ) ), this, TQT_SLOT( slotEmitChanged() ) );
+ connect( mWidget->useCustomHTTPProxyRB, TQT_SIGNAL( toggled( bool ) ), this, TQT_SLOT( slotEmitChanged() ) );
+ connect( mWidget->customHTTPProxy, TQT_SIGNAL( textChanged( const TQString& ) ), this, TQT_SLOT( slotEmitChanged() ) );
+ connect( mWidget->ignoreLDAPDPCB, TQT_SIGNAL( toggled( bool ) ), this, TQT_SLOT( slotEmitChanged() ) );
+ connect( mWidget->disableLDAPCB, TQT_SIGNAL( toggled( bool ) ), this, TQT_SLOT( slotEmitChanged() ) );
+ connect( mWidget->customLDAPProxy, TQT_SIGNAL( textChanged( const TQString& ) ), this, TQT_SLOT( slotEmitChanged() ) );
+
+ connect( mWidget->disableHTTPCB, TQT_SIGNAL( toggled( bool ) ),
+ this, TQT_SLOT( slotUpdateHTTPActions() ) );
+ connect( mWidget->ignoreHTTPDPCB, TQT_SIGNAL( toggled( bool ) ),
+ this, TQT_SLOT( slotUpdateHTTPActions() ) );
// Button-group for exclusive radiobuttons
- QButtonGroup* bgHTTPProxy = new QButtonGroup( mWidget );
+ TQButtonGroup* bgHTTPProxy = new TQButtonGroup( mWidget );
bgHTTPProxy->hide();
bgHTTPProxy->insert( mWidget->honorHTTPProxyRB );
bgHTTPProxy->insert( mWidget->useCustomHTTPProxyRB );
@@ -4132,13 +4132,13 @@ SecurityPageSMimeTab::~SecurityPageSMimeTab()
{
}
-static void disableDirmngrWidget( QWidget* w ) {
+static void disableDirmngrWidget( TQWidget* w ) {
w->setEnabled( false );
- QWhatsThis::remove( w );
- QWhatsThis::add( w, i18n( "This option requires dirmngr >= 0.9.0" ) );
+ TQWhatsThis::remove( w );
+ TQWhatsThis::add( w, i18n( "This option requires dirmngr >= 0.9.0" ) );
}
-static void initializeDirmngrCheckbox( QCheckBox* cb, Kleo::CryptoConfigEntry* entry ) {
+static void initializeDirmngrCheckbox( TQCheckBox* cb, Kleo::CryptoConfigEntry* entry ) {
if ( entry )
cb->setChecked( entry->boolValue() );
else
@@ -4242,7 +4242,7 @@ void SecurityPage::SMimeTab::doLoadOther() {
initializeDirmngrCheckbox( mWidget->ignoreLDAPDPCB, e.mIgnoreLDAPDPEntry );
initializeDirmngrCheckbox( mWidget->disableLDAPCB, e.mDisableLDAPEntry );
if ( e.mCustomHTTPProxy ) {
- QString systemProxy = QString::fromLocal8Bit( getenv( "http_proxy" ) );
+ TQString systemProxy = TQString::fromLocal8Bit( getenv( "http_proxy" ) );
if ( systemProxy.isEmpty() )
systemProxy = i18n( "no proxy" );
mWidget->systemHTTPProxy->setText( i18n( "(Current system setting: %1)" ).arg( systemProxy ) );
@@ -4280,7 +4280,7 @@ void SecurityPage::SMimeTab::slotUpdateHTTPActions() {
void SecurityPage::SMimeTab::installProfile( KConfig * ) {
}
-static void saveCheckBoxToKleoEntry( QCheckBox* cb, Kleo::CryptoConfigEntry* entry ) {
+static void saveCheckBoxToKleoEntry( TQCheckBox* cb, Kleo::CryptoConfigEntry* entry ) {
const bool b = cb->isChecked();
if ( entry && entry->boolValue() != b )
entry->setBoolValue( b );
@@ -4306,7 +4306,7 @@ void SecurityPage::SMimeTab::save() {
saveCheckBoxToKleoEntry( mWidget->neverConsultCB, e.mNeverConsultConfigEntry );
saveCheckBoxToKleoEntry( mWidget->fetchMissingCB, e.mFetchMissingConfigEntry );
- QString txt = mWidget->OCSPResponderURL->text();
+ TQString txt = mWidget->OCSPResponderURL->text();
if ( e.mOCSPResponderURLConfigEntry && e.mOCSPResponderURLConfigEntry->stringValue() != txt )
e.mOCSPResponderURLConfigEntry->setStringValue( txt );
@@ -4326,7 +4326,7 @@ void SecurityPage::SMimeTab::save() {
if ( e.mHonorHTTPProxy && e.mHonorHTTPProxy->boolValue() != honor )
e.mHonorHTTPProxy->setBoolValue( honor );
- QString chosenProxy = mWidget->customHTTPProxy->text();
+ TQString chosenProxy = mWidget->customHTTPProxy->text();
if ( chosenProxy != e.mCustomHTTPProxy->stringValue() )
e.mCustomHTTPProxy->setStringValue( chosenProxy );
}
@@ -4337,7 +4337,7 @@ void SecurityPage::SMimeTab::save() {
mConfig->sync( true );
}
-bool SecurityPageSMimeTab::process(const QCString &fun, const QByteArray &data, QCString& replyType, QByteArray &replyData)
+bool SecurityPageSMimeTab::process(const TQCString &fun, const TQByteArray &data, TQCString& replyType, TQByteArray &replyData)
{
if ( fun == "load()" ) {
replyType = "void";
@@ -4369,11 +4369,11 @@ Kleo::CryptoConfigEntry* SMIMECryptoConfigEntries::configEntry( const char* comp
{
Kleo::CryptoConfigEntry* entry = mConfig->entry( componentName, groupName, entryName );
if ( !entry ) {
- kdWarning(5006) << QString( "Backend error: gpgconf doesn't seem to know the entry for %1/%2/%3" ).arg( componentName, groupName, entryName ) << endl;
+ kdWarning(5006) << TQString( "Backend error: gpgconf doesn't seem to know the entry for %1/%2/%3" ).arg( componentName, groupName, entryName ) << endl;
return 0;
}
if( entry->argType() != argType || entry->isList() != isList ) {
- kdWarning(5006) << QString( "Backend error: gpgconf has wrong type for %1/%2/%3: %4 %5" ).arg( componentName, groupName, entryName ).arg( entry->argType() ).arg( entry->isList() ) << endl;
+ kdWarning(5006) << TQString( "Backend error: gpgconf has wrong type for %1/%2/%3: %4 %5" ).arg( componentName, groupName, entryName ).arg( entry->argType() ).arg( entry->isList() ) << endl;
return 0;
}
return entry;
@@ -4381,17 +4381,17 @@ Kleo::CryptoConfigEntry* SMIMECryptoConfigEntries::configEntry( const char* comp
////
-QString SecurityPage::CryptPlugTab::helpAnchor() const {
- return QString::fromLatin1("configure-security-crypto-backends");
+TQString SecurityPage::CryptPlugTab::helpAnchor() const {
+ return TQString::fromLatin1("configure-security-crypto-backends");
}
-SecurityPageCryptPlugTab::SecurityPageCryptPlugTab( QWidget * parent, const char * name )
+SecurityPageCryptPlugTab::SecurityPageCryptPlugTab( TQWidget * parent, const char * name )
: ConfigModuleTab( parent, name )
{
- QVBoxLayout * vlay = new QVBoxLayout( this, KDialog::marginHint(), KDialog::spacingHint() );
+ TQVBoxLayout * vlay = new TQVBoxLayout( this, KDialog::marginHint(), KDialog::spacingHint() );
mBackendConfig = Kleo::CryptoBackendFactory::instance()->configWidget( this, "mBackendConfig" );
- connect( mBackendConfig, SIGNAL( changed( bool ) ), this, SIGNAL( changed( bool ) ) );
+ connect( mBackendConfig, TQT_SIGNAL( changed( bool ) ), this, TQT_SIGNAL( changed( bool ) ) );
vlay->addWidget( mBackendConfig );
}
@@ -4414,11 +4414,11 @@ void SecurityPage::CryptPlugTab::save() {
// * MiscPage *
// * *
// *************************************************************
-QString MiscPage::helpAnchor() const {
- return QString::fromLatin1("configure-misc");
+TQString MiscPage::helpAnchor() const {
+ return TQString::fromLatin1("configure-misc");
}
-MiscPage::MiscPage( QWidget * parent, const char * name )
+MiscPage::MiscPage( TQWidget * parent, const char * name )
: ConfigModuleWithTabs( parent, name )
{
mFolderTab = new FolderTab();
@@ -4429,43 +4429,43 @@ MiscPage::MiscPage( QWidget * parent, const char * name )
load();
}
-QString MiscPage::FolderTab::helpAnchor() const {
- return QString::fromLatin1("configure-misc-folders");
+TQString MiscPage::FolderTab::helpAnchor() const {
+ return TQString::fromLatin1("configure-misc-folders");
}
-MiscPageFolderTab::MiscPageFolderTab( QWidget * parent, const char * name )
+MiscPageFolderTab::MiscPageFolderTab( TQWidget * parent, const char * name )
: ConfigModuleTab( parent, name )
{
// temp. vars:
- QVBoxLayout *vlay;
- QHBoxLayout *hlay;
- QLabel *label;
+ TQVBoxLayout *vlay;
+ TQHBoxLayout *hlay;
+ TQLabel *label;
- vlay = new QVBoxLayout( this, KDialog::marginHint(), KDialog::spacingHint() );
+ vlay = new TQVBoxLayout( this, KDialog::marginHint(), KDialog::spacingHint() );
// "confirm before emptying folder" check box: stretch 0
mEmptyFolderConfirmCheck =
- new QCheckBox( i18n("Corresponds to Folder->Move All Messages to Trash",
+ new TQCheckBox( i18n("Corresponds to Folder->Move All Messages to Trash",
"Ask for co&nfirmation before moving all messages to "
"trash"),
this );
vlay->addWidget( mEmptyFolderConfirmCheck );
- connect( mEmptyFolderConfirmCheck, SIGNAL( stateChanged( int ) ),
- this, SLOT( slotEmitChanged( void ) ) );
+ connect( mEmptyFolderConfirmCheck, TQT_SIGNAL( stateChanged( int ) ),
+ this, TQT_SLOT( slotEmitChanged( void ) ) );
mExcludeImportantFromExpiry =
- new QCheckBox( i18n("E&xclude important messages from expiry"), this );
+ new TQCheckBox( i18n("E&xclude important messages from expiry"), this );
vlay->addWidget( mExcludeImportantFromExpiry );
- connect( mExcludeImportantFromExpiry, SIGNAL( stateChanged( int ) ),
- this, SLOT( slotEmitChanged( void ) ) );
+ connect( mExcludeImportantFromExpiry, TQT_SIGNAL( stateChanged( int ) ),
+ this, TQT_SLOT( slotEmitChanged( void ) ) );
// "when trying to find unread messages" combo + label: stretch 0
- hlay = new QHBoxLayout( vlay ); // inherits spacing
- mLoopOnGotoUnread = new QComboBox( false, this );
- label = new QLabel( mLoopOnGotoUnread,
+ hlay = new TQHBoxLayout( vlay ); // inherits spacing
+ mLoopOnGotoUnread = new TQComboBox( false, this );
+ label = new TQLabel( mLoopOnGotoUnread,
i18n("to be continued with \"do not loop\", \"loop in current folder\", "
"and \"loop in all folders\".",
"When trying to find unread messages:"), this );
- mLoopOnGotoUnread->insertStringList( QStringList()
+ mLoopOnGotoUnread->insertStringList( TQStringList()
<< i18n("continuation of \"When trying to find unread messages:\"",
"Do not Loop")
<< i18n("continuation of \"When trying to find unread messages:\"",
@@ -4474,18 +4474,18 @@ MiscPageFolderTab::MiscPageFolderTab( QWidget * parent, const char * name )
"Loop in All Folders"));
hlay->addWidget( label );
hlay->addWidget( mLoopOnGotoUnread, 1 );
- connect( mLoopOnGotoUnread, SIGNAL( activated( int ) ),
- this, SLOT( slotEmitChanged( void ) ) );
+ connect( mLoopOnGotoUnread, TQT_SIGNAL( activated( int ) ),
+ this, TQT_SLOT( slotEmitChanged( void ) ) );
// when entering a folder
- hlay = new QHBoxLayout( vlay ); // inherits spacing
- mActionEnterFolder = new QComboBox( false, this );
- label = new QLabel( mActionEnterFolder,
+ hlay = new TQHBoxLayout( vlay ); // inherits spacing
+ mActionEnterFolder = new TQComboBox( false, this );
+ label = new TQLabel( mActionEnterFolder,
i18n("to be continued with \"jump to first new message\", "
"\"jump to first unread or new message\","
"and \"jump to last selected message\".",
"When entering a folder:"), this );
- mActionEnterFolder->insertStringList( QStringList()
+ mActionEnterFolder->insertStringList( TQStringList()
<< i18n("continuation of \"When entering a folder:\"",
"Jump to First New Message")
<< i18n("continuation of \"When entering a folder:\"",
@@ -4494,11 +4494,11 @@ MiscPageFolderTab::MiscPageFolderTab( QWidget * parent, const char * name )
"Jump to Last Selected Message"));
hlay->addWidget( label );
hlay->addWidget( mActionEnterFolder, 1 );
- connect( mActionEnterFolder, SIGNAL( activated( int ) ),
- this, SLOT( slotEmitChanged( void ) ) );
+ connect( mActionEnterFolder, TQT_SIGNAL( activated( int ) ),
+ this, TQT_SLOT( slotEmitChanged( void ) ) );
- hlay = new QHBoxLayout( vlay ); // inherits spacing
- mDelayedMarkAsRead = new QCheckBox( i18n("Mar&k selected message as read after"), this );
+ hlay = new TQHBoxLayout( vlay ); // inherits spacing
+ mDelayedMarkAsRead = new TQCheckBox( i18n("Mar&k selected message as read after"), this );
hlay->addWidget( mDelayedMarkAsRead );
mDelayedMarkTime = new KIntSpinBox( 0 /*min*/, 60 /*max*/, 1/*step*/,
0 /*init*/, 10 /*base*/, this);
@@ -4506,34 +4506,34 @@ MiscPageFolderTab::MiscPageFolderTab( QWidget * parent, const char * name )
mDelayedMarkTime->setEnabled( false ); // since mDelayedMarkAsREad is off
hlay->addWidget( mDelayedMarkTime );
hlay->addStretch( 1 );
- connect( mDelayedMarkTime, SIGNAL( valueChanged( int ) ),
- this, SLOT( slotEmitChanged( void ) ) );
- connect( mDelayedMarkAsRead, SIGNAL(toggled(bool)),
- mDelayedMarkTime, SLOT(setEnabled(bool)));
- connect( mDelayedMarkAsRead, SIGNAL(toggled(bool)),
- this , SLOT(slotEmitChanged( void )));
+ connect( mDelayedMarkTime, TQT_SIGNAL( valueChanged( int ) ),
+ this, TQT_SLOT( slotEmitChanged( void ) ) );
+ connect( mDelayedMarkAsRead, TQT_SIGNAL(toggled(bool)),
+ mDelayedMarkTime, TQT_SLOT(setEnabled(bool)));
+ connect( mDelayedMarkAsRead, TQT_SIGNAL(toggled(bool)),
+ this , TQT_SLOT(slotEmitChanged( void )));
// "show popup after Drag'n'Drop" checkbox: stretch 0
mShowPopupAfterDnD =
- new QCheckBox( i18n("Ask for action after &dragging messages to another folder"), this );
+ new TQCheckBox( i18n("Ask for action after &dragging messages to another folder"), this );
vlay->addWidget( mShowPopupAfterDnD );
- connect( mShowPopupAfterDnD, SIGNAL( stateChanged( int ) ),
- this, SLOT( slotEmitChanged( void ) ) );
+ connect( mShowPopupAfterDnD, TQT_SIGNAL( stateChanged( int ) ),
+ this, TQT_SLOT( slotEmitChanged( void ) ) );
// "default mailbox format" combo + label: stretch 0
- hlay = new QHBoxLayout( vlay ); // inherits spacing
- mMailboxPrefCombo = new QComboBox( false, this );
- label = new QLabel( mMailboxPrefCombo,
+ hlay = new TQHBoxLayout( vlay ); // inherits spacing
+ mMailboxPrefCombo = new TQComboBox( false, this );
+ label = new TQLabel( mMailboxPrefCombo,
i18n("to be continued with \"flat files\" and "
"\"directories\", resp.",
"By default, &message folders on disk are:"), this );
- mMailboxPrefCombo->insertStringList( QStringList()
+ mMailboxPrefCombo->insertStringList( TQStringList()
<< i18n("continuation of \"By default, &message folders on disk are\"",
"Flat Files (\"mbox\" format)")
<< i18n("continuation of \"By default, &message folders on disk are\"",
"Directories (\"maildir\" format)") );
- // and now: add QWhatsThis:
- QString msg = i18n( "what's this help",
+ // and now: add TQWhatsThis:
+ TQString msg = i18n( "what's this help",
"<qt><p>This selects which mailbox format will be "
"the default for local folders:</p>"
"<p><b>mbox:</b> KMail's mail "
@@ -4547,52 +4547,52 @@ MiscPageFolderTab::MiscPageFolderTab( QWidget * parent, const char * name )
"are separate files. This may waste a bit of space on "
"disk, but should be more robust, e.g. when moving "
"messages between folders.</p></qt>");
- QWhatsThis::add( mMailboxPrefCombo, msg );
- QWhatsThis::add( label, msg );
+ TQWhatsThis::add( mMailboxPrefCombo, msg );
+ TQWhatsThis::add( label, msg );
hlay->addWidget( label );
hlay->addWidget( mMailboxPrefCombo, 1 );
- connect( mMailboxPrefCombo, SIGNAL( activated( int ) ),
- this, SLOT( slotEmitChanged( void ) ) );
+ connect( mMailboxPrefCombo, TQT_SIGNAL( activated( int ) ),
+ this, TQT_SLOT( slotEmitChanged( void ) ) );
// "On startup..." option:
- hlay = new QHBoxLayout( vlay ); // inherits spacing
+ hlay = new TQHBoxLayout( vlay ); // inherits spacing
mOnStartupOpenFolder = new FolderRequester( this,
kmkernel->getKMMainWidget()->folderTree() );
- label = new QLabel( mOnStartupOpenFolder,
+ label = new TQLabel( mOnStartupOpenFolder,
i18n("Open this folder on startup:"), this );
hlay->addWidget( label );
hlay->addWidget( mOnStartupOpenFolder, 1 );
- connect( mOnStartupOpenFolder, SIGNAL( folderChanged( KMFolder* ) ),
- this, SLOT( slotEmitChanged( void ) ) );
+ connect( mOnStartupOpenFolder, TQT_SIGNAL( folderChanged( KMFolder* ) ),
+ this, TQT_SLOT( slotEmitChanged( void ) ) );
// "Empty &trash on program exit" option:
- hlay = new QHBoxLayout( vlay ); // inherits spacing
- mEmptyTrashCheck = new QCheckBox( i18n("Empty local &trash folder on program exit"),
+ hlay = new TQHBoxLayout( vlay ); // inherits spacing
+ mEmptyTrashCheck = new TQCheckBox( i18n("Empty local &trash folder on program exit"),
this );
hlay->addWidget( mEmptyTrashCheck );
- connect( mEmptyTrashCheck, SIGNAL( stateChanged( int ) ),
- this, SLOT( slotEmitChanged( void ) ) );
+ connect( mEmptyTrashCheck, TQT_SIGNAL( stateChanged( int ) ),
+ this, TQT_SLOT( slotEmitChanged( void ) ) );
#ifdef HAVE_INDEXLIB
// indexing enabled option:
- mIndexingEnabled = new QCheckBox( i18n("Enable full text &indexing"), this );
+ mIndexingEnabled = new TQCheckBox( i18n("Enable full text &indexing"), this );
vlay->addWidget( mIndexingEnabled );
- connect( mIndexingEnabled, SIGNAL( stateChanged( int ) ),
- this, SLOT( slotEmitChanged( void ) ) );
+ connect( mIndexingEnabled, TQT_SIGNAL( stateChanged( int ) ),
+ this, TQT_SLOT( slotEmitChanged( void ) ) );
#endif
// "Quota Units"
- hlay = new QHBoxLayout( vlay ); // inherits spacing
- mQuotaCmbBox = new QComboBox( false, this );
- label = new QLabel( mQuotaCmbBox,
+ hlay = new TQHBoxLayout( vlay ); // inherits spacing
+ mQuotaCmbBox = new TQComboBox( false, this );
+ label = new TQLabel( mQuotaCmbBox,
i18n("Quota units: "), this );
- mQuotaCmbBox->insertStringList( QStringList()
+ mQuotaCmbBox->insertStringList( TQStringList()
<< i18n("KB")
<< i18n("MB")
<< i18n("GB") );
hlay->addWidget( label );
hlay->addWidget( mQuotaCmbBox, 1 );
- connect( mQuotaCmbBox, SIGNAL( activated( int ) ), this, SLOT( slotEmitChanged( void ) ) );
+ connect( mQuotaCmbBox, TQT_SIGNAL( activated( int ) ), this, TQT_SLOT( slotEmitChanged( void ) ) );
vlay->addStretch( 1 );
@@ -4610,7 +4610,7 @@ MiscPageFolderTab::MiscPageFolderTab( QWidget * parent, const char * name )
"<p>Similarly, when searching for the previous unread message, "
"the search will start from the bottom of the message list and continue to "
"the previous folder depending on which option is selected.</p></qt>" );
- QWhatsThis::add( mLoopOnGotoUnread, msg );
+ TQWhatsThis::add( mLoopOnGotoUnread, msg );
#ifdef HAVE_INDEXLIB
// this is probably overly pessimistic
@@ -4625,7 +4625,7 @@ MiscPageFolderTab::MiscPageFolderTab( QWidget * parent, const char * name )
"</qt>"
);
- QWhatsThis::add( mIndexingEnabled, msg );
+ TQWhatsThis::add( mIndexingEnabled, msg );
#endif
}
@@ -4664,7 +4664,7 @@ void MiscPage::FolderTab::save() {
general.writeEntry( "confirm-before-empty", mEmptyFolderConfirmCheck->isChecked() );
general.writeEntry( "default-mailbox-format", mMailboxPrefCombo->currentItem() );
general.writeEntry( "startupFolder", mOnStartupOpenFolder->folder() ?
- mOnStartupOpenFolder->folder()->idString() : QString::null );
+ mOnStartupOpenFolder->folder()->idString() : TQString::null );
GlobalSettings::self()->setDelayedMarkAsRead( mDelayedMarkAsRead->isChecked() );
GlobalSettings::self()->setDelayedMarkTime( mDelayedMarkTime->value() );
@@ -4679,83 +4679,83 @@ void MiscPage::FolderTab::save() {
#endif
}
-QString MiscPage::GroupwareTab::helpAnchor() const {
- return QString::fromLatin1("configure-misc-groupware");
+TQString MiscPage::GroupwareTab::helpAnchor() const {
+ return TQString::fromLatin1("configure-misc-groupware");
}
-MiscPageGroupwareTab::MiscPageGroupwareTab( QWidget* parent, const char* name )
+MiscPageGroupwareTab::MiscPageGroupwareTab( TQWidget* parent, const char* name )
: ConfigModuleTab( parent, name )
{
- QBoxLayout* vlay = new QVBoxLayout( this, KDialog::marginHint(),
+ TQBoxLayout* vlay = new TQVBoxLayout( this, KDialog::marginHint(),
KDialog::spacingHint() );
vlay->setAutoAdd( true );
// IMAP resource setup
- QVGroupBox* b1 = new QVGroupBox( i18n("&IMAP Resource Folder Options"),
+ TQVGroupBox* b1 = new TQVGroupBox( i18n("&IMAP Resource Folder Options"),
this );
mEnableImapResCB =
- new QCheckBox( i18n("&Enable IMAP resource functionality"), b1 );
- QToolTip::add( mEnableImapResCB, i18n( "This enables the IMAP storage for "
+ new TQCheckBox( i18n("&Enable IMAP resource functionality"), b1 );
+ TQToolTip::add( mEnableImapResCB, i18n( "This enables the IMAP storage for "
"the Kontact applications" ) );
- QWhatsThis::add( mEnableImapResCB,
+ TQWhatsThis::add( mEnableImapResCB,
i18n( GlobalSettings::self()->theIMAPResourceEnabledItem()->whatsThis().utf8() ) );
- connect( mEnableImapResCB, SIGNAL( stateChanged( int ) ),
- this, SLOT( slotEmitChanged( void ) ) );
+ connect( mEnableImapResCB, TQT_SIGNAL( stateChanged( int ) ),
+ this, TQT_SLOT( slotEmitChanged( void ) ) );
- mBox = new QWidget( b1 );
- QGridLayout* grid = new QGridLayout( mBox, 5, 2, 0, KDialog::spacingHint() );
+ mBox = new TQWidget( b1 );
+ TQGridLayout* grid = new TQGridLayout( mBox, 5, 2, 0, KDialog::spacingHint() );
grid->setColStretch( 1, 1 );
- connect( mEnableImapResCB, SIGNAL( toggled(bool) ),
- mBox, SLOT( setEnabled(bool) ) );
+ connect( mEnableImapResCB, TQT_SIGNAL( toggled(bool) ),
+ mBox, TQT_SLOT( setEnabled(bool) ) );
- QLabel* storageFormatLA = new QLabel( i18n("&Format used for the groupware folders:"),
+ TQLabel* storageFormatLA = new TQLabel( i18n("&Format used for the groupware folders:"),
mBox );
- QString toolTip = i18n( "Choose the format to use to store the contents of the groupware folders." );
- QString whatsThis = i18n( GlobalSettings::self()
+ TQString toolTip = i18n( "Choose the format to use to store the contents of the groupware folders." );
+ TQString whatsThis = i18n( GlobalSettings::self()
->theIMAPResourceStorageFormatItem()->whatsThis().utf8() );
grid->addWidget( storageFormatLA, 0, 0 );
- QToolTip::add( storageFormatLA, toolTip );
- QWhatsThis::add( storageFormatLA, whatsThis );
- mStorageFormatCombo = new QComboBox( false, mBox );
+ TQToolTip::add( storageFormatLA, toolTip );
+ TQWhatsThis::add( storageFormatLA, whatsThis );
+ mStorageFormatCombo = new TQComboBox( false, mBox );
storageFormatLA->setBuddy( mStorageFormatCombo );
- QStringList formatLst;
+ TQStringList formatLst;
formatLst << i18n("Standard (Ical / Vcard)") << i18n("Kolab (XML)");
mStorageFormatCombo->insertStringList( formatLst );
grid->addWidget( mStorageFormatCombo, 0, 1 );
- QToolTip::add( mStorageFormatCombo, toolTip );
- QWhatsThis::add( mStorageFormatCombo, whatsThis );
- connect( mStorageFormatCombo, SIGNAL( activated( int ) ),
- this, SLOT( slotStorageFormatChanged( int ) ) );
+ TQToolTip::add( mStorageFormatCombo, toolTip );
+ TQWhatsThis::add( mStorageFormatCombo, whatsThis );
+ connect( mStorageFormatCombo, TQT_SIGNAL( activated( int ) ),
+ this, TQT_SLOT( slotStorageFormatChanged( int ) ) );
- QLabel* languageLA = new QLabel( i18n("&Language of the groupware folders:"),
+ TQLabel* languageLA = new TQLabel( i18n("&Language of the groupware folders:"),
mBox );
toolTip = i18n( "Set the language of the folder names" );
whatsThis = i18n( GlobalSettings::self()
->theIMAPResourceFolderLanguageItem()->whatsThis().utf8() );
grid->addWidget( languageLA, 1, 0 );
- QToolTip::add( languageLA, toolTip );
- QWhatsThis::add( languageLA, whatsThis );
- mLanguageCombo = new QComboBox( false, mBox );
+ TQToolTip::add( languageLA, toolTip );
+ TQWhatsThis::add( languageLA, whatsThis );
+ mLanguageCombo = new TQComboBox( false, mBox );
languageLA->setBuddy( mLanguageCombo );
- QStringList lst;
+ TQStringList lst;
lst << i18n("English") << i18n("German") << i18n("French") << i18n("Dutch");
mLanguageCombo->insertStringList( lst );
grid->addWidget( mLanguageCombo, 1, 1 );
- QToolTip::add( mLanguageCombo, toolTip );
- QWhatsThis::add( mLanguageCombo, whatsThis );
- connect( mLanguageCombo, SIGNAL( activated( int ) ),
- this, SLOT( slotEmitChanged( void ) ) );
+ TQToolTip::add( mLanguageCombo, toolTip );
+ TQWhatsThis::add( mLanguageCombo, whatsThis );
+ connect( mLanguageCombo, TQT_SIGNAL( activated( int ) ),
+ this, TQT_SLOT( slotEmitChanged( void ) ) );
- mFolderComboLabel = new QLabel( mBox ); // text depends on storage format
+ mFolderComboLabel = new TQLabel( mBox ); // text depends on storage format
toolTip = i18n( "Set the parent of the resource folders" );
whatsThis = i18n( GlobalSettings::self()->theIMAPResourceFolderParentItem()->whatsThis().utf8() );
- QToolTip::add( mFolderComboLabel, toolTip );
- QWhatsThis::add( mFolderComboLabel, whatsThis );
+ TQToolTip::add( mFolderComboLabel, toolTip );
+ TQWhatsThis::add( mFolderComboLabel, whatsThis );
grid->addWidget( mFolderComboLabel, 2, 0 );
- mFolderComboStack = new QWidgetStack( mBox );
+ mFolderComboStack = new TQWidgetStack( mBox );
grid->addWidget( mFolderComboStack, 2, 1 );
// First possibility in the widgetstack: a combo showing the list of all folders
@@ -4763,108 +4763,108 @@ MiscPageGroupwareTab::MiscPageGroupwareTab( QWidget* parent, const char* name )
mFolderCombo = new FolderRequester( mBox,
kmkernel->getKMMainWidget()->folderTree() );
mFolderComboStack->addWidget( mFolderCombo, 0 );
- QToolTip::add( mFolderCombo, toolTip );
- QWhatsThis::add( mFolderCombo, whatsThis );
- connect( mFolderCombo, SIGNAL( folderChanged( KMFolder* ) ),
- this, SLOT( slotEmitChanged() ) );
+ TQToolTip::add( mFolderCombo, toolTip );
+ TQWhatsThis::add( mFolderCombo, whatsThis );
+ connect( mFolderCombo, TQT_SIGNAL( folderChanged( KMFolder* ) ),
+ this, TQT_SLOT( slotEmitChanged() ) );
// Second possibility in the widgetstack: a combo showing the list of accounts
// This is used with the kolab xml storage since the groupware folders
// are always under the inbox.
mAccountCombo = new KMail::AccountComboBox( mBox );
mFolderComboStack->addWidget( mAccountCombo, 1 );
- QToolTip::add( mAccountCombo, toolTip );
- QWhatsThis::add( mAccountCombo, whatsThis );
- connect( mAccountCombo, SIGNAL( activated( int ) ),
- this, SLOT( slotEmitChanged() ) );
+ TQToolTip::add( mAccountCombo, toolTip );
+ TQWhatsThis::add( mAccountCombo, whatsThis );
+ connect( mAccountCombo, TQT_SIGNAL( activated( int ) ),
+ this, TQT_SLOT( slotEmitChanged() ) );
- mHideGroupwareFolders = new QCheckBox( i18n( "&Hide groupware folders" ),
+ mHideGroupwareFolders = new TQCheckBox( i18n( "&Hide groupware folders" ),
mBox, "HideGroupwareFoldersBox" );
grid->addMultiCellWidget( mHideGroupwareFolders, 3, 3, 0, 0 );
- QToolTip::add( mHideGroupwareFolders,
+ TQToolTip::add( mHideGroupwareFolders,
i18n( "When this is checked, you will not see the IMAP "
"resource folders in the folder tree." ) );
- QWhatsThis::add( mHideGroupwareFolders, i18n( GlobalSettings::self()
+ TQWhatsThis::add( mHideGroupwareFolders, i18n( GlobalSettings::self()
->hideGroupwareFoldersItem()->whatsThis().utf8() ) );
- connect( mHideGroupwareFolders, SIGNAL( toggled( bool ) ),
- this, SLOT( slotEmitChanged() ) );
+ connect( mHideGroupwareFolders, TQT_SIGNAL( toggled( bool ) ),
+ this, TQT_SLOT( slotEmitChanged() ) );
- mOnlyShowGroupwareFolders = new QCheckBox( i18n( "&Only show groupware folders for this account" ),
+ mOnlyShowGroupwareFolders = new TQCheckBox( i18n( "&Only show groupware folders for this account" ),
mBox, "OnlyGroupwareFoldersBox" );
grid->addMultiCellWidget( mOnlyShowGroupwareFolders, 3, 3, 1, 1 );
- QToolTip::add( mOnlyShowGroupwareFolders,
+ TQToolTip::add( mOnlyShowGroupwareFolders,
i18n( "When this is checked, you will not see normal "
"mail folders in the folder tree for the account "
"configured for groupware." ) );
- QWhatsThis::add( mOnlyShowGroupwareFolders, i18n( GlobalSettings::self()
+ TQWhatsThis::add( mOnlyShowGroupwareFolders, i18n( GlobalSettings::self()
->showOnlyGroupwareFoldersForGroupwareAccountItem()->whatsThis().utf8() ) );
- connect( mOnlyShowGroupwareFolders, SIGNAL( toggled( bool ) ),
- this, SLOT( slotEmitChanged() ) );
+ connect( mOnlyShowGroupwareFolders, TQT_SIGNAL( toggled( bool ) ),
+ this, TQT_SLOT( slotEmitChanged() ) );
- mSyncImmediately = new QCheckBox( i18n( "Synchronize groupware changes immediately" ), mBox );
- QToolTip::add( mSyncImmediately,
+ mSyncImmediately = new TQCheckBox( i18n( "Synchronize groupware changes immediately" ), mBox );
+ TQToolTip::add( mSyncImmediately,
i18n( "Synchronize groupware changes in disconnected IMAP folders immediately when being online." ) );
- connect( mSyncImmediately, SIGNAL(toggled(bool)), SLOT(slotEmitChanged()) );
+ connect( mSyncImmediately, TQT_SIGNAL(toggled(bool)), TQT_SLOT(slotEmitChanged()) );
grid->addMultiCellWidget( mSyncImmediately, 4, 4, 0, 1 );
- mDeleteInvitations = new QCheckBox(
+ mDeleteInvitations = new TQCheckBox(
i18n( GlobalSettings::self()->deleteInvitationEmailsAfterSendingReplyItem()->label().utf8() ), mBox );
- QWhatsThis::add( mDeleteInvitations, i18n( GlobalSettings::self()
+ TQWhatsThis::add( mDeleteInvitations, i18n( GlobalSettings::self()
->deleteInvitationEmailsAfterSendingReplyItem()->whatsThis().utf8() ) );
- connect( mDeleteInvitations, SIGNAL(toggled(bool)), SLOT(slotEmitChanged()) );
+ connect( mDeleteInvitations, TQT_SIGNAL(toggled(bool)), TQT_SLOT(slotEmitChanged()) );
grid->addMultiCellWidget( mDeleteInvitations, 5, 5, 0, 1 );
// Groupware functionality compatibility setup
- b1 = new QVGroupBox( i18n("Groupware Compatibility && Legacy Options"), this );
+ b1 = new TQVGroupBox( i18n("Groupware Compatibility && Legacy Options"), this );
- gBox = new QVBox( b1 );
+ gBox = new TQVBox( b1 );
#if 0
// Currently believed to be disused.
- mEnableGwCB = new QCheckBox( i18n("&Enable groupware functionality"), b1 );
+ mEnableGwCB = new TQCheckBox( i18n("&Enable groupware functionality"), b1 );
gBox->setSpacing( KDialog::spacingHint() );
- connect( mEnableGwCB, SIGNAL( toggled(bool) ),
- gBox, SLOT( setEnabled(bool) ) );
- connect( mEnableGwCB, SIGNAL( stateChanged( int ) ),
- this, SLOT( slotEmitChanged( void ) ) );
+ connect( mEnableGwCB, TQT_SIGNAL( toggled(bool) ),
+ gBox, TQT_SLOT( setEnabled(bool) ) );
+ connect( mEnableGwCB, TQT_SIGNAL( stateChanged( int ) ),
+ this, TQT_SLOT( slotEmitChanged( void ) ) );
#endif
mEnableGwCB = 0;
- mLegacyMangleFromTo = new QCheckBox( i18n( "Mangle From:/To: headers in replies to invitations" ), gBox );
- QToolTip::add( mLegacyMangleFromTo, i18n( "Turn this option on in order to make Outlook(tm) understand your answers to invitation replies" ) );
- QWhatsThis::add( mLegacyMangleFromTo, i18n( GlobalSettings::self()->
+ mLegacyMangleFromTo = new TQCheckBox( i18n( "Mangle From:/To: headers in replies to invitations" ), gBox );
+ TQToolTip::add( mLegacyMangleFromTo, i18n( "Turn this option on in order to make Outlook(tm) understand your answers to invitation replies" ) );
+ TQWhatsThis::add( mLegacyMangleFromTo, i18n( GlobalSettings::self()->
legacyMangleFromToHeadersItem()->whatsThis().utf8() ) );
- connect( mLegacyMangleFromTo, SIGNAL( stateChanged( int ) ),
- this, SLOT( slotEmitChanged( void ) ) );
- mLegacyBodyInvites = new QCheckBox( i18n( "Send invitations in the mail body" ), gBox );
- QToolTip::add( mLegacyBodyInvites, i18n( "Turn this option on in order to make Outlook(tm) understand your answers to invitations" ) );
- QWhatsThis::add( mLegacyMangleFromTo, i18n( GlobalSettings::self()->
+ connect( mLegacyMangleFromTo, TQT_SIGNAL( stateChanged( int ) ),
+ this, TQT_SLOT( slotEmitChanged( void ) ) );
+ mLegacyBodyInvites = new TQCheckBox( i18n( "Send invitations in the mail body" ), gBox );
+ TQToolTip::add( mLegacyBodyInvites, i18n( "Turn this option on in order to make Outlook(tm) understand your answers to invitations" ) );
+ TQWhatsThis::add( mLegacyMangleFromTo, i18n( GlobalSettings::self()->
legacyBodyInvitesItem()->whatsThis().utf8() ) );
- connect( mLegacyBodyInvites, SIGNAL( toggled( bool ) ),
- this, SLOT( slotLegacyBodyInvitesToggled( bool ) ) );
- connect( mLegacyBodyInvites, SIGNAL( stateChanged( int ) ),
- this, SLOT( slotEmitChanged( void ) ) );
-
- mExchangeCompatibleInvitations = new QCheckBox( i18n( "Exchange compatible invitation naming" ), gBox );
- QToolTip::add( mExchangeCompatibleInvitations, i18n( "Microsoft Outlook, when used in combination with a Microsoft Exchange server, has a problem understanding standards-compliant groupware e-mail. Turn this option on to send groupware invitations in a way that Microsoft Exchange understands." ) );
- QWhatsThis::add( mExchangeCompatibleInvitations, i18n( GlobalSettings::self()->
+ connect( mLegacyBodyInvites, TQT_SIGNAL( toggled( bool ) ),
+ this, TQT_SLOT( slotLegacyBodyInvitesToggled( bool ) ) );
+ connect( mLegacyBodyInvites, TQT_SIGNAL( stateChanged( int ) ),
+ this, TQT_SLOT( slotEmitChanged( void ) ) );
+
+ mExchangeCompatibleInvitations = new TQCheckBox( i18n( "Exchange compatible invitation naming" ), gBox );
+ TQToolTip::add( mExchangeCompatibleInvitations, i18n( "Microsoft Outlook, when used in combination with a Microsoft Exchange server, has a problem understanding standards-compliant groupware e-mail. Turn this option on to send groupware invitations in a way that Microsoft Exchange understands." ) );
+ TQWhatsThis::add( mExchangeCompatibleInvitations, i18n( GlobalSettings::self()->
exchangeCompatibleInvitationsItem()->whatsThis().utf8() ) );
- connect( mExchangeCompatibleInvitations, SIGNAL( stateChanged( int ) ),
- this, SLOT( slotEmitChanged( void ) ) );
+ connect( mExchangeCompatibleInvitations, TQT_SIGNAL( stateChanged( int ) ),
+ this, TQT_SLOT( slotEmitChanged( void ) ) );
- mAutomaticSending = new QCheckBox( i18n( "Automatic invitation sending" ), gBox );
- QToolTip::add( mAutomaticSending, i18n( "When this is on, the user will not see the mail composer window. Invitation mails are sent automatically" ) );
- QWhatsThis::add( mAutomaticSending, i18n( GlobalSettings::self()->
+ mAutomaticSending = new TQCheckBox( i18n( "Automatic invitation sending" ), gBox );
+ TQToolTip::add( mAutomaticSending, i18n( "When this is on, the user will not see the mail composer window. Invitation mails are sent automatically" ) );
+ TQWhatsThis::add( mAutomaticSending, i18n( GlobalSettings::self()->
automaticSendingItem()->whatsThis().utf8() ) );
- connect( mAutomaticSending, SIGNAL( stateChanged( int ) ),
- this, SLOT( slotEmitChanged( void ) ) );
+ connect( mAutomaticSending, TQT_SIGNAL( stateChanged( int ) ),
+ this, TQT_SLOT( slotEmitChanged( void ) ) );
// Open space padding at the end
- new QLabel( this );
+ new TQLabel( this );
}
void MiscPageGroupwareTab::slotLegacyBodyInvitesToggled( bool on )
{
if ( on ) {
- QString txt = i18n( "<qt>Invitations are normally sent as attachments to "
+ TQString txt = i18n( "<qt>Invitations are normally sent as attachments to "
"a mail. This switch changes the invitation mails to "
"be sent in the text of the mail instead; this is "
"necessary to send invitations and replies to "
@@ -4875,7 +4875,7 @@ void MiscPageGroupwareTab::slotLegacyBodyInvitesToggled( bool on )
"resulting messages look very odd.<br>People that have email "
"programs that do understand invitations will still "
"be able to work with this.</qt>" );
- KMessageBox::information( this, txt, QString::null,
+ KMessageBox::information( this, txt, TQString::null,
"LegacyBodyInvitesWarning" );
}
// Invitations in the body are autosent in any case (no point in editing raw ICAL)
@@ -4914,7 +4914,7 @@ void MiscPage::GroupwareTab::doLoadFromGlobalSettings() {
mSyncImmediately->setChecked( GlobalSettings::self()->immediatlySyncDIMAPOnGroupwareChanges() );
mDeleteInvitations->setChecked( GlobalSettings::self()->deleteInvitationEmailsAfterSendingReply() );
- QString folderId( GlobalSettings::self()->theIMAPResourceFolderParent() );
+ TQString folderId( GlobalSettings::self()->theIMAPResourceFolderParent() );
if( !folderId.isNull() && kmkernel->findFolderById( folderId ) ) {
mFolderCombo->setFolder( folderId );
} else {
@@ -4980,7 +4980,7 @@ void MiscPage::GroupwareTab::save() {
// If there is a leftover folder in the foldercombo, getFolder can
// return 0. In that case we really don't have it enabled
- QString folderId;
+ TQString folderId;
if ( format == 0 ) {
KMFolder* folder = mFolderCombo->folder();
if ( folder )
@@ -5007,7 +5007,7 @@ void MiscPage::GroupwareTab::save() {
// Inbox folder of the selected account
KMAccount* acct = mAccountCombo->currentAccount();
if ( acct ) {
- folderId = QString( ".%1.directory/INBOX" ).arg( acct->id() );
+ folderId = TQString( ".%1.directory/INBOX" ).arg( acct->id() );
GlobalSettings::self()->setTheIMAPResourceAccount( acct->id() );
}
}
@@ -5039,15 +5039,15 @@ void MiscPage::GroupwareTab::slotStorageFormatChanged( int format )
// * *
// *************************************************************
AccountUpdater::AccountUpdater(ImapAccountBase *account)
- : QObject()
+ : TQObject()
{
mAccount = account;
}
void AccountUpdater::update()
{
- connect( mAccount, SIGNAL( connectionResult(int, const QString&) ),
- this, SLOT( namespacesFetched() ) );
+ connect( mAccount, TQT_SIGNAL( connectionResult(int, const TQString&) ),
+ this, TQT_SLOT( namespacesFetched() ) );
mAccount->makeConnection();
}
diff --git a/kmail/configuredialog.h b/kmail/configuredialog.h
index 408a9d3f..f9c32731 100644
--- a/kmail/configuredialog.h
+++ b/kmail/configuredialog.h
@@ -22,7 +22,7 @@
#ifndef _CONFIGURE_DIALOG_H_
#define _CONFIGURE_DIALOG_H_
-#include <qguardedptr.h>
+#include <tqguardedptr.h>
#include <kcmultidialog.h>
class KConfig;
@@ -36,7 +36,7 @@ class ConfigureDialog : public KCMultiDialog
Q_OBJECT
public:
- ConfigureDialog( QWidget *parent=0, const char *name=0, bool modal=true );
+ ConfigureDialog( TQWidget *parent=0, const char *name=0, bool modal=true );
~ConfigureDialog();
signals:
@@ -49,7 +49,7 @@ signals:
*/
void installProfile( KConfig *profile );
protected:
- void hideEvent( QHideEvent *i );
+ void hideEvent( TQHideEvent *i );
protected slots:
/** @reimplemented
* Saves the GlobalSettings stuff before passing on to KCMultiDialog.
@@ -67,7 +67,7 @@ protected slots:
void slotUser2();
private:
- QGuardedPtr<ProfileDialog> mProfileDialog;
+ TQGuardedPtr<ProfileDialog> mProfileDialog;
};
/**
@@ -75,7 +75,7 @@ private:
* This has to be done a-synchronically due to the nature of the account, so this object
* takes care of that.
*/
-class AccountUpdater : public QObject {
+class AccountUpdater : public TQObject {
Q_OBJECT
public:
AccountUpdater(KMail::ImapAccountBase *account);
diff --git a/kmail/configuredialog_p.cpp b/kmail/configuredialog_p.cpp
index 2b716b2d..5cc86ccc 100644
--- a/kmail/configuredialog_p.cpp
+++ b/kmail/configuredialog_p.cpp
@@ -26,61 +26,61 @@
#include <kdebug.h>
// Qt headers:
-#include <qheader.h>
-#include <qtabwidget.h>
-#include <qradiobutton.h>
-#include <qbuttongroup.h>
-#include <qlabel.h>
-#include <qlayout.h>
+#include <tqheader.h>
+#include <tqtabwidget.h>
+#include <tqradiobutton.h>
+#include <tqbuttongroup.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
// Other headers:
#include <assert.h>
-NewIdentityDialog::NewIdentityDialog( const QStringList & identities,
- QWidget *parent, const char *name,
+NewIdentityDialog::NewIdentityDialog( const TQStringList & identities,
+ TQWidget *parent, const char *name,
bool modal )
: KDialogBase( parent, name, modal, i18n("New Identity"),
Ok|Cancel|Help, Ok, true )
{
- setHelp( QString::fromLatin1("configure-identity-newidentitydialog") );
- QWidget * page = makeMainWidget();
- QVBoxLayout * vlay = new QVBoxLayout( page, 0, spacingHint() );
+ setHelp( TQString::fromLatin1("configure-identity-newidentitydialog") );
+ TQWidget * page = makeMainWidget();
+ TQVBoxLayout * vlay = new TQVBoxLayout( page, 0, spacingHint() );
// row 0: line edit with label
- QHBoxLayout * hlay = new QHBoxLayout( vlay ); // inherits spacing
+ TQHBoxLayout * hlay = new TQHBoxLayout( vlay ); // inherits spacing
mLineEdit = new KLineEdit( page );
mLineEdit->setFocus();
- hlay->addWidget( new QLabel( mLineEdit, i18n("&New identity:"), page ) );
+ hlay->addWidget( new TQLabel( mLineEdit, i18n("&New identity:"), page ) );
hlay->addWidget( mLineEdit, 1 );
- connect( mLineEdit, SIGNAL(textChanged(const QString&)),
- this, SLOT(slotEnableOK(const QString&)) );
+ connect( mLineEdit, TQT_SIGNAL(textChanged(const TQString&)),
+ this, TQT_SLOT(slotEnableOK(const TQString&)) );
- mButtonGroup = new QButtonGroup( page );
+ mButtonGroup = new TQButtonGroup( page );
mButtonGroup->hide();
// row 1: radio button
- QRadioButton *radio = new QRadioButton( i18n("&With empty fields"), page );
+ TQRadioButton *radio = new TQRadioButton( i18n("&With empty fields"), page );
radio->setChecked( true );
mButtonGroup->insert( radio, Empty );
vlay->addWidget( radio );
// row 2: radio button
- radio = new QRadioButton( i18n("&Use Control Center settings"), page );
+ radio = new TQRadioButton( i18n("&Use Control Center settings"), page );
mButtonGroup->insert( radio, ControlCenter );
vlay->addWidget( radio );
// row 3: radio button
- radio = new QRadioButton( i18n("&Duplicate existing identity"), page );
+ radio = new TQRadioButton( i18n("&Duplicate existing identity"), page );
mButtonGroup->insert( radio, ExistingEntry );
vlay->addWidget( radio );
// row 4: combobox with existing identities and label
- hlay = new QHBoxLayout( vlay ); // inherits spacing
- mComboBox = new QComboBox( false, page );
+ hlay = new TQHBoxLayout( vlay ); // inherits spacing
+ mComboBox = new TQComboBox( false, page );
mComboBox->insertStringList( identities );
mComboBox->setEnabled( false );
- QLabel *label = new QLabel( mComboBox, i18n("&Existing identities:"), page );
+ TQLabel *label = new TQLabel( mComboBox, i18n("&Existing identities:"), page );
label->setEnabled( false );
hlay->addWidget( label );
hlay->addWidget( mComboBox, 1 );
@@ -89,10 +89,10 @@ NewIdentityDialog::NewIdentityDialog( const QStringList & identities,
// enable/disable combobox and label depending on the third radio
// button's state:
- connect( radio, SIGNAL(toggled(bool)),
- label, SLOT(setEnabled(bool)) );
- connect( radio, SIGNAL(toggled(bool)),
- mComboBox, SLOT(setEnabled(bool)) );
+ connect( radio, TQT_SIGNAL(toggled(bool)),
+ label, TQT_SLOT(setEnabled(bool)) );
+ connect( radio, TQT_SIGNAL(toggled(bool)),
+ mComboBox, TQT_SLOT(setEnabled(bool)) );
enableButtonOK( false ); // since line edit is empty
}
@@ -105,9 +105,9 @@ NewIdentityDialog::DuplicateMode NewIdentityDialog::duplicateMode() const {
return static_cast<DuplicateMode>( id );
}
-void NewIdentityDialog::slotEnableOK( const QString & proposedIdentityName ) {
+void NewIdentityDialog::slotEnableOK( const TQString & proposedIdentityName ) {
// OK button is disabled if
- QString name = proposedIdentityName.stripWhiteSpace();
+ TQString name = proposedIdentityName.stripWhiteSpace();
// name isn't empty
if ( name.isEmpty() ) {
enableButtonOK( false );
@@ -122,7 +122,7 @@ void NewIdentityDialog::slotEnableOK( const QString & proposedIdentityName ) {
enableButtonOK( true );
}
-ListView::ListView( QWidget *parent, const char *name,
+ListView::ListView( TQWidget *parent, const char *name,
int visibleItem )
: KListView( parent, name )
{
@@ -130,14 +130,14 @@ ListView::ListView( QWidget *parent, const char *name,
}
-void ListView::resizeEvent( QResizeEvent *e )
+void ListView::resizeEvent( TQResizeEvent *e )
{
KListView::resizeEvent(e);
resizeColums();
}
-void ListView::showEvent( QShowEvent *e )
+void ListView::showEvent( TQShowEvent *e )
{
KListView::showEvent(e);
resizeColums();
@@ -169,16 +169,16 @@ void ListView::setVisibleItem( int visibleItem, bool updateSize )
mVisibleItem = QMAX( 1, visibleItem );
if( updateSize == true )
{
- QSize s = sizeHint();
+ TQSize s = sizeHint();
setMinimumSize( s.width() + verticalScrollBar()->sizeHint().width() +
lineWidth() * 2, s.height() );
}
}
-QSize ListView::sizeHint() const
+TQSize ListView::sizeHint() const
{
- QSize s = QListView::sizeHint();
+ TQSize s = TQListView::sizeHint();
int h = fontMetrics().height() + 2*itemMargin();
if( h % 2 > 0 ) { h++; }
@@ -188,45 +188,45 @@ QSize ListView::sizeHint() const
}
-static QString flagPng = QString::fromLatin1("/flag.png");
+static TQString flagPng = TQString::fromLatin1("/flag.png");
NewLanguageDialog::NewLanguageDialog( LanguageItemList & suppressedLangs,
- QWidget *parent, const char *name,
+ TQWidget *parent, const char *name,
bool modal )
: KDialogBase( parent, name, modal, i18n("New Language"), Ok|Cancel, Ok, true )
{
// layout the page (a combobox with label):
- QWidget *page = makeMainWidget();
- QHBoxLayout *hlay = new QHBoxLayout( page, 0, spacingHint() );
- mComboBox = new QComboBox( false, page );
- hlay->addWidget( new QLabel( mComboBox, i18n("Choose &language:"), page ) );
+ TQWidget *page = makeMainWidget();
+ TQHBoxLayout *hlay = new TQHBoxLayout( page, 0, spacingHint() );
+ mComboBox = new TQComboBox( false, page );
+ hlay->addWidget( new TQLabel( mComboBox, i18n("Choose &language:"), page ) );
hlay->addWidget( mComboBox, 1 );
- QStringList pathList = KGlobal::dirs()->findAllResources( "locale",
- QString::fromLatin1("*/entry.desktop") );
+ TQStringList pathList = KGlobal::dirs()->findAllResources( "locale",
+ TQString::fromLatin1("*/entry.desktop") );
// extract a list of language tags that should not be included:
- QStringList suppressedAcronyms;
+ TQStringList suppressedAcronyms;
for ( LanguageItemList::Iterator lit = suppressedLangs.begin();
lit != suppressedLangs.end(); ++lit )
suppressedAcronyms << (*lit).mLanguage;
// populate the combo box:
- for ( QStringList::ConstIterator it = pathList.begin();
+ for ( TQStringList::ConstIterator it = pathList.begin();
it != pathList.end(); ++it )
{
KSimpleConfig entry( *it );
entry.setGroup( "KCM Locale" );
// full name:
- QString name = entry.readEntry( "Name" );
+ TQString name = entry.readEntry( "Name" );
// {2,3}-letter abbreviation:
// we extract it from the path: "/prefix/de/entry.desktop" -> "de"
- QString acronym = (*it).section( '/', -2, -2 );
+ TQString acronym = (*it).section( '/', -2, -2 );
if ( suppressedAcronyms.find( acronym ) == suppressedAcronyms.end() ) {
// not found:
- QString displayname = QString::fromLatin1("%1 (%2)")
+ TQString displayname = TQString::fromLatin1("%1 (%2)")
.arg( name ).arg( acronym );
- QPixmap flag( locate("locale", acronym + flagPng ) );
+ TQPixmap flag( locate("locale", acronym + flagPng ) );
mComboBox->insertItem( flag, displayname );
}
}
@@ -236,40 +236,40 @@ NewLanguageDialog::NewLanguageDialog( LanguageItemList & suppressedLangs,
} else mComboBox->listBox()->sort();
}
-QString NewLanguageDialog::language() const
+TQString NewLanguageDialog::language() const
{
- QString s = mComboBox->currentText();
+ TQString s = mComboBox->currentText();
int i = s.findRev( '(' );
return s.mid( i + 1, s.length() - i - 2 );
}
-LanguageComboBox::LanguageComboBox( bool rw, QWidget *parent, const char *name )
- : QComboBox( rw, parent, name )
+LanguageComboBox::LanguageComboBox( bool rw, TQWidget *parent, const char *name )
+ : TQComboBox( rw, parent, name )
{
}
-int LanguageComboBox::insertLanguage( const QString & language )
+int LanguageComboBox::insertLanguage( const TQString & language )
{
- static QString entryDesktop = QString::fromLatin1("/entry.desktop");
+ static TQString entryDesktop = TQString::fromLatin1("/entry.desktop");
KSimpleConfig entry( locate("locale", language + entryDesktop) );
entry.setGroup( "KCM Locale" );
- QString name = entry.readEntry( "Name" );
- QString output = QString::fromLatin1("%1 (%2)").arg( name ).arg( language );
- insertItem( QPixmap( locate("locale", language + flagPng ) ), output );
+ TQString name = entry.readEntry( "Name" );
+ TQString output = TQString::fromLatin1("%1 (%2)").arg( name ).arg( language );
+ insertItem( TQPixmap( locate("locale", language + flagPng ) ), output );
return listBox()->index( listBox()->findItem(output) );
}
-QString LanguageComboBox::language() const
+TQString LanguageComboBox::language() const
{
- QString s = currentText();
+ TQString s = currentText();
int i = s.findRev( '(' );
return s.mid( i + 1, s.length() - i - 2 );
}
-void LanguageComboBox::setLanguage( const QString & language )
+void LanguageComboBox::setLanguage( const TQString & language )
{
- QString parenthizedLanguage = QString::fromLatin1("(%1)").arg( language );
+ TQString parenthizedLanguage = TQString::fromLatin1("(%1)").arg( language );
for (int i = 0; i < count(); i++)
// ### FIXME: use .endWith():
if ( text(i).find( parenthizedLanguage ) >= 0 ) {
@@ -284,12 +284,12 @@ void LanguageComboBox::setLanguage( const QString & language )
//
//
-ProfileDialog::ProfileDialog( QWidget * parent, const char * name, bool modal )
+ProfileDialog::ProfileDialog( TQWidget * parent, const char * name, bool modal )
: KDialogBase( parent, name, modal, i18n("Load Profile"), Ok|Cancel, Ok, true )
{
// tmp. vars:
- QWidget * page = makeMainWidget();
- QVBoxLayout * vlay = new QVBoxLayout( page, 0, spacingHint() );
+ TQWidget * page = makeMainWidget();
+ TQVBoxLayout * vlay = new TQVBoxLayout( page, 0, spacingHint() );
mListView = new KListView( page, "mListView" );
mListView->addColumn( i18n("Available Profiles") );
@@ -298,19 +298,19 @@ ProfileDialog::ProfileDialog( QWidget * parent, const char * name, bool modal )
mListView->setAllColumnsShowFocus( true );
mListView->setSorting( -1 );
- vlay->addWidget( new QLabel( mListView,
+ vlay->addWidget( new TQLabel( mListView,
i18n("&Select a profile and click 'OK' to "
"load its settings:"), page ) );
vlay->addWidget( mListView, 1 );
setup();
- connect( mListView, SIGNAL(selectionChanged()),
- SLOT(slotSelectionChanged()) );
- connect( mListView, SIGNAL(doubleClicked ( QListViewItem *, const QPoint &, int ) ),
- SLOT(slotOk()) );
+ connect( mListView, TQT_SIGNAL(selectionChanged()),
+ TQT_SLOT(slotSelectionChanged()) );
+ connect( mListView, TQT_SIGNAL(doubleClicked ( TQListViewItem *, const TQPoint &, int ) ),
+ TQT_SLOT(slotOk()) );
- connect( this, SIGNAL(finished()), SLOT(delayedDestruct()) );
+ connect( this, TQT_SIGNAL(finished()), TQT_SLOT(delayedDestruct()) );
enableButtonOK( false );
}
@@ -323,31 +323,31 @@ void ProfileDialog::slotSelectionChanged()
void ProfileDialog::setup() {
mListView->clear();
// find all profiles (config files named "profile-xyz-rc"):
- const QString profileFilenameFilter = QString::fromLatin1("kmail/profile-*-rc");
+ const TQString profileFilenameFilter = TQString::fromLatin1("kmail/profile-*-rc");
mProfileList = KGlobal::dirs()->findAllResources( "data", profileFilenameFilter );
kdDebug(5006) << "Profile manager: found " << mProfileList.count()
<< " profiles:" << endl;
// build the list and populate the list view:
- QListViewItem * listItem = 0;
- for ( QStringList::const_iterator it = mProfileList.begin() ;
+ TQListViewItem * listItem = 0;
+ for ( TQStringList::const_iterator it = mProfileList.begin() ;
it != mProfileList.end() ; ++it ) {
KConfig profile( *it, true /* read-only */, false /* no KDE global */ );
profile.setGroup("KMail Profile");
- QString name = profile.readEntry( "Name" );
+ TQString name = profile.readEntry( "Name" );
if ( name.isEmpty() ) {
kdWarning(5006) << "File \"" << (*it)
<< "\" doesn't provide a profile name!" << endl;
name = i18n("Missing profile name placeholder","Unnamed");
}
- QString desc = profile.readEntry( "Comment" );
+ TQString desc = profile.readEntry( "Comment" );
if ( desc.isEmpty() ) {
kdWarning(5006) << "File \"" << (*it)
<< "\" doesn't provide a description!" << endl;
desc = i18n("Missing profile description placeholder","Not available");
}
- listItem = new QListViewItem( mListView, listItem, name, desc );
+ listItem = new TQListViewItem( mListView, listItem, name, desc );
}
}
@@ -364,19 +364,19 @@ void ProfileDialog::slotOk() {
}
-ConfigModuleWithTabs::ConfigModuleWithTabs( QWidget * parent,
+ConfigModuleWithTabs::ConfigModuleWithTabs( TQWidget * parent,
const char * name )
: ConfigModule( parent, name )
{
- QVBoxLayout *vlay = new QVBoxLayout( this, 0, KDialog::spacingHint() );
- mTabWidget = new QTabWidget( this );
+ TQVBoxLayout *vlay = new TQVBoxLayout( this, 0, KDialog::spacingHint() );
+ mTabWidget = new TQTabWidget( this );
vlay->addWidget( mTabWidget );
}
-void ConfigModuleWithTabs::addTab( ConfigModuleTab* tab, const QString & title ) {
+void ConfigModuleWithTabs::addTab( ConfigModuleTab* tab, const TQString & title ) {
mTabWidget->addTab( tab, title );
- connect( tab, SIGNAL(changed( bool )),
- this, SIGNAL(changed( bool )) );
+ connect( tab, TQT_SIGNAL(changed( bool )),
+ this, TQT_SIGNAL(changed( bool )) );
}
void ConfigModuleWithTabs::load() {
diff --git a/kmail/configuredialog_p.h b/kmail/configuredialog_p.h
index 79c2a885..4a332109 100644
--- a/kmail/configuredialog_p.h
+++ b/kmail/configuredialog_p.h
@@ -6,12 +6,12 @@
#define _CONFIGURE_DIALOG_PRIVATE_H_
#include <klineedit.h>
-#include <qcombobox.h>
-#include <qguardedptr.h>
-#include <qptrlist.h>
-#include <qstring.h>
-#include <qvaluelist.h>
-#include <qstringlist.h>
+#include <tqcombobox.h>
+#include <tqguardedptr.h>
+#include <tqptrlist.h>
+#include <tqstring.h>
+#include <tqvaluelist.h>
+#include <tqstringlist.h>
#include <dcopobject.h>
#include <kdialogbase.h>
@@ -49,7 +49,7 @@ class TemplatesConfiguration;
class CustomTemplates;
class QGroupBox;
class QVGroupBox;
-#include <qdict.h>
+#include <tqdict.h>
class QLineEdit;
class KMMsgTagDesc;
class KListBox;
@@ -81,20 +81,20 @@ class NewIdentityDialog : public KDialogBase
public:
enum DuplicateMode { Empty, ControlCenter, ExistingEntry };
- NewIdentityDialog( const QStringList & identities,
- QWidget *parent=0, const char *name=0, bool modal=true );
+ NewIdentityDialog( const TQStringList & identities,
+ TQWidget *parent=0, const char *name=0, bool modal=true );
- QString identityName() const { return mLineEdit->text(); }
- QString duplicateIdentity() const { return mComboBox->currentText(); }
+ TQString identityName() const { return mLineEdit->text(); }
+ TQString duplicateIdentity() const { return mComboBox->currentText(); }
DuplicateMode duplicateMode() const;
protected slots:
- virtual void slotEnableOK( const QString & );
+ virtual void slotEnableOK( const TQString & );
private:
- QLineEdit *mLineEdit;
- QComboBox *mComboBox;
- QButtonGroup *mButtonGroup;
+ TQLineEdit *mLineEdit;
+ TQComboBox *mComboBox;
+ TQButtonGroup *mButtonGroup;
};
@@ -107,29 +107,29 @@ private:
struct LanguageItem
{
LanguageItem() {}
- LanguageItem( const QString & language, const QString & reply=QString::null,
- const QString & replyAll=QString::null,
- const QString & forward=QString::null,
- const QString & indentPrefix=QString::null ) :
+ LanguageItem( const TQString & language, const TQString & reply=TQString::null,
+ const TQString & replyAll=TQString::null,
+ const TQString & forward=TQString::null,
+ const TQString & indentPrefix=TQString::null ) :
mLanguage( language ), mReply( reply ), mReplyAll( replyAll ),
mForward( forward ), mIndentPrefix( indentPrefix ) {}
- QString mLanguage, mReply, mReplyAll, mForward, mIndentPrefix;
+ TQString mLanguage, mReply, mReplyAll, mForward, mIndentPrefix;
};
-typedef QValueList<LanguageItem> LanguageItemList;
+typedef TQValueList<LanguageItem> LanguageItemList;
class NewLanguageDialog : public KDialogBase
{
Q_OBJECT
public:
- NewLanguageDialog( LanguageItemList & suppressedLangs, QWidget *parent=0,
+ NewLanguageDialog( LanguageItemList & suppressedLangs, TQWidget *parent=0,
const char *name=0, bool modal=true );
- QString language() const;
+ TQString language() const;
private:
- QComboBox *mComboBox;
+ TQComboBox *mComboBox;
};
@@ -138,10 +138,10 @@ class LanguageComboBox : public QComboBox
Q_OBJECT
public:
- LanguageComboBox( bool rw, QWidget *parent=0, const char *name=0 );
- int insertLanguage( const QString & language );
- QString language() const;
- void setLanguage( const QString & language );
+ LanguageComboBox( bool rw, TQWidget *parent=0, const char *name=0 );
+ int insertLanguage( const TQString & language );
+ TQString language() const;
+ void setLanguage( const TQString & language );
};
//
@@ -153,7 +153,7 @@ class LanguageComboBox : public QComboBox
class ProfileDialog : public KDialogBase {
Q_OBJECT
public:
- ProfileDialog( QWidget * parent=0, const char * name=0, bool modal=false );
+ ProfileDialog( TQWidget * parent=0, const char * name=0, bool modal=false );
signals:
void profileSelected( KConfig * profile );
@@ -167,14 +167,14 @@ private:
private:
KListView *mListView;
- QStringList mProfileList;
+ TQStringList mProfileList;
};
#include <kdialog.h>
class ConfigModule : public KCModule {
Q_OBJECT
public:
- ConfigModule( QWidget * parent=0, const char * name=0 )
+ ConfigModule( TQWidget * parent=0, const char * name=0 )
: KCModule ( parent, name )
{}
~ConfigModule() {}
@@ -184,7 +184,7 @@ public:
virtual void defaults() {}
/** Should return the help anchor for this page or tab */
- virtual QString helpAnchor() const = 0;
+ virtual TQString helpAnchor() const = 0;
signals:
/** Emitted when the installation of a profile is
@@ -198,11 +198,11 @@ signals:
// Individual tab of a ConfigModuleWithTabs
-class ConfigModuleTab : public QWidget {
+class ConfigModuleTab : public TQWidget {
Q_OBJECT
public:
- ConfigModuleTab( QWidget *parent=0, const char* name=0 )
- :QWidget( parent, name )
+ ConfigModuleTab( TQWidget *parent=0, const char* name=0 )
+ :TQWidget( parent, name )
{}
~ConfigModuleTab() {}
void load();
@@ -235,7 +235,7 @@ private:
class ConfigModuleWithTabs : public ConfigModule {
Q_OBJECT
public:
- ConfigModuleWithTabs( QWidget * parent=0, const char * name=0 );
+ ConfigModuleWithTabs( TQWidget * parent=0, const char * name=0 );
~ConfigModuleWithTabs() {}
// don't reimplement any of those methods
@@ -245,10 +245,10 @@ public:
virtual void installProfile( KConfig * profile );
protected:
- void addTab( ConfigModuleTab* tab, const QString & title );
+ void addTab( ConfigModuleTab* tab, const TQString & title );
private:
- QTabWidget *mTabWidget;
+ TQTabWidget *mTabWidget;
};
@@ -262,16 +262,16 @@ private:
class KDE_EXPORT IdentityPage : public ConfigModule {
Q_OBJECT
public:
- IdentityPage( QWidget * parent=0, const char * name=0 );
+ IdentityPage( TQWidget * parent=0, const char * name=0 );
~IdentityPage() {}
- QString helpAnchor() const;
+ TQString helpAnchor() const;
void load();
void save();
public slots:
- void slotUpdateTransportCombo( const QStringList & );
+ void slotUpdateTransportCombo( const TQStringList & );
private slots:
void slotNewIdentity();
@@ -282,8 +282,8 @@ private slots:
void slotRenameIdentity();
/** connected to @p mIdentityList's renamed() signal. Validates the
new name and sets it in the KPIM::IdentityManager */
- void slotRenameIdentity( QListViewItem *, const QString &, int );
- void slotContextMenu( KListView*, QListViewItem *, const QPoint & );
+ void slotRenameIdentity( TQListViewItem *, const TQString &, int );
+ void slotContextMenu( KListView*, TQListViewItem *, const TQPoint & );
void slotSetAsDefault();
void slotIdentitySelectionChanged();
@@ -295,10 +295,10 @@ private: // data members
int mOldNumberOfIdentities;
KMail::IdentityListView * mIdentityList;
- QPushButton * mModifyButton;
- QPushButton * mRenameButton;
- QPushButton * mRemoveButton;
- QPushButton * mSetAsDefaultButton;
+ TQPushButton * mModifyButton;
+ TQPushButton * mRenameButton;
+ TQPushButton * mRemoveButton;
+ TQPushButton * mSetAsDefaultButton;
};
@@ -312,12 +312,12 @@ private: // data members
class AccountsPageSendingTab : public ConfigModuleTab {
Q_OBJECT
public:
- AccountsPageSendingTab( QWidget * parent=0, const char * name=0 );
- QString helpAnchor() const;
+ AccountsPageSendingTab( TQWidget * parent=0, const char * name=0 );
+ TQString helpAnchor() const;
void save();
signals:
- void transportListChanged( const QStringList & );
+ void transportListChanged( const TQStringList & );
private slots:
void slotTransportSelected();
@@ -333,29 +333,29 @@ private:
private:
ListView *mTransportList;
- QPushButton *mModifyTransportButton;
- QPushButton *mRemoveTransportButton;
- QPushButton *mSetDefaultTransportButton;
- QCheckBox *mConfirmSendCheck;
- QComboBox *mSendOnCheckCombo;
- QComboBox *mSendMethodCombo;
- QComboBox *mMessagePropertyCombo;
- QLineEdit *mDefaultDomainEdit;
-
- QPtrList< KMTransportInfo > mTransportInfoList;
+ TQPushButton *mModifyTransportButton;
+ TQPushButton *mRemoveTransportButton;
+ TQPushButton *mSetDefaultTransportButton;
+ TQCheckBox *mConfirmSendCheck;
+ TQComboBox *mSendOnCheckCombo;
+ TQComboBox *mSendMethodCombo;
+ TQComboBox *mMessagePropertyCombo;
+ TQLineEdit *mDefaultDomainEdit;
+
+ TQPtrList< KMTransportInfo > mTransportInfoList;
};
class AccountsPageReceivingTab : public ConfigModuleTab {
Q_OBJECT
public:
- AccountsPageReceivingTab( QWidget * parent=0, const char * name=0 );
+ AccountsPageReceivingTab( TQWidget * parent=0, const char * name=0 );
~AccountsPageReceivingTab();
- QString helpAnchor() const;
+ TQString helpAnchor() const;
void save();
signals:
- void accountListChanged( const QStringList & );
+ void accountListChanged( const TQStringList & );
private slots:
void slotAccountSelected();
@@ -369,32 +369,32 @@ private:
virtual void doLoadFromGlobalSettings();
virtual void doLoadOther();
//FIXME virtual void doResetToDefaultsOther();
- QStringList occupiedNames();
+ TQStringList occupiedNames();
private:
ListView *mAccountList;
- QPushButton *mModifyAccountButton;
- QPushButton *mRemoveAccountButton;
- QCheckBox *mBeepNewMailCheck;
- QCheckBox *mVerboseNotificationCheck;
- QCheckBox *mCheckmailStartupCheck;
- QPushButton *mOtherNewMailActionsButton;
-
- QValueList< QGuardedPtr<KMAccount> > mAccountsToDelete;
- QValueList< QGuardedPtr<KMAccount> > mNewAccounts;
+ TQPushButton *mModifyAccountButton;
+ TQPushButton *mRemoveAccountButton;
+ TQCheckBox *mBeepNewMailCheck;
+ TQCheckBox *mVerboseNotificationCheck;
+ TQCheckBox *mCheckmailStartupCheck;
+ TQPushButton *mOtherNewMailActionsButton;
+
+ TQValueList< TQGuardedPtr<KMAccount> > mAccountsToDelete;
+ TQValueList< TQGuardedPtr<KMAccount> > mNewAccounts;
struct ModifiedAccountsType {
- QGuardedPtr< KMAccount > oldAccount;
- QGuardedPtr< KMAccount > newAccount;
+ TQGuardedPtr< KMAccount > oldAccount;
+ TQGuardedPtr< KMAccount > newAccount;
};
// ### make this value-based:
- QValueList< ModifiedAccountsType* > mModifiedAccounts;
+ TQValueList< ModifiedAccountsType* > mModifiedAccounts;
};
class KDE_EXPORT AccountsPage : public ConfigModuleWithTabs {
Q_OBJECT
public:
- AccountsPage( QWidget * parent=0, const char * name=0 );
- QString helpAnchor() const;
+ AccountsPage( TQWidget * parent=0, const char * name=0 );
+ TQString helpAnchor() const;
// hrmpf. moc doesn't like nested classes with slots/signals...:
@@ -402,8 +402,8 @@ public:
typedef AccountsPageReceivingTab ReceivingTab;
signals:
- void transportListChanged( const QStringList & );
- void accountListChanged( const QStringList & );
+ void transportListChanged( const TQStringList & );
+ void accountListChanged( const TQStringList & );
private:
SendingTab *mSendingTab;
@@ -420,8 +420,8 @@ private:
class AppearancePageFontsTab : public ConfigModuleTab {
Q_OBJECT
public:
- AppearancePageFontsTab( QWidget * parent=0, const char * name=0 );
- QString helpAnchor() const;
+ AppearancePageFontsTab( TQWidget * parent=0, const char * name=0 );
+ TQString helpAnchor() const;
void save();
void installProfile( KConfig * profile );
@@ -436,19 +436,19 @@ private:
void updateFontSelector();
private:
- QCheckBox *mCustomFontCheck;
- QComboBox *mFontLocationCombo;
+ TQCheckBox *mCustomFontCheck;
+ TQComboBox *mFontLocationCombo;
KFontChooser *mFontChooser;
int mActiveFontIndex;
- QFont mFont[14];
+ TQFont mFont[14];
};
class AppearancePageColorsTab : public ConfigModuleTab {
Q_OBJECT
public:
- AppearancePageColorsTab( QWidget * parent=0, const char * name=0 );
- QString helpAnchor() const;
+ AppearancePageColorsTab( TQWidget * parent=0, const char * name=0 );
+ TQString helpAnchor() const;
void save();
void installProfile( KConfig * profile );
@@ -459,17 +459,17 @@ private:
//FIXME virtual void doResetToDefaultsOther();
private:
- QCheckBox *mCustomColorCheck;
+ TQCheckBox *mCustomColorCheck;
ColorListBox *mColorList;
- QCheckBox *mRecycleColorCheck;
- QSpinBox *mCloseToQuotaThreshold;
+ TQCheckBox *mRecycleColorCheck;
+ TQSpinBox *mCloseToQuotaThreshold;
};
class AppearancePageLayoutTab : public ConfigModuleTab {
Q_OBJECT
public:
- AppearancePageLayoutTab( QWidget * parent=0, const char * name=0 );
- QString helpAnchor() const;
+ AppearancePageLayoutTab( TQWidget * parent=0, const char * name=0 );
+ TQString helpAnchor() const;
void save();
void installProfile( KConfig * profile );
@@ -480,20 +480,20 @@ private:
//FIXME virtual void doResetToDefaultsOther();
private: // data
- QButtonGroup *mFolderListGroup;
- QButtonGroup *mMIMETreeLocationGroup;
- QButtonGroup *mMIMETreeModeGroup;
- QButtonGroup *mReaderWindowModeGroup;
- QCheckBox *mFavoriteFolderViewCB;
- QCheckBox *mFolderQuickSearchCB;
+ TQButtonGroup *mFolderListGroup;
+ TQButtonGroup *mMIMETreeLocationGroup;
+ TQButtonGroup *mMIMETreeModeGroup;
+ TQButtonGroup *mReaderWindowModeGroup;
+ TQCheckBox *mFavoriteFolderViewCB;
+ TQCheckBox *mFolderQuickSearchCB;
};
class AppearancePageHeadersTab : public ConfigModuleTab {
Q_OBJECT
public:
- AppearancePageHeadersTab( QWidget * parent=0, const char * name=0 );
+ AppearancePageHeadersTab( TQWidget * parent=0, const char * name=0 );
- QString helpAnchor() const;
+ TQString helpAnchor() const;
void save();
void installProfile( KConfig * profile );
@@ -502,25 +502,25 @@ private: // methods
//virtual void doLoadFromGlobalSettings();
virtual void doLoadOther();
//FIXME virtual void doResetToDefaultsOther();
- void setDateDisplay( int id, const QString & format );
+ void setDateDisplay( int id, const TQString & format );
private: // data
- QCheckBox *mShowQuickSearch;
- QCheckBox *mMessageSizeCheck;
- QCheckBox *mAttachmentCheck;
- QCheckBox *mNestedMessagesCheck;
- QCheckBox *mCryptoIconsCheck;
- QButtonGroup *mNestingPolicy;
- QButtonGroup *mDateDisplay;
- QLineEdit *mCustomDateFormatEdit;
+ TQCheckBox *mShowQuickSearch;
+ TQCheckBox *mMessageSizeCheck;
+ TQCheckBox *mAttachmentCheck;
+ TQCheckBox *mNestedMessagesCheck;
+ TQCheckBox *mCryptoIconsCheck;
+ TQButtonGroup *mNestingPolicy;
+ TQButtonGroup *mDateDisplay;
+ TQLineEdit *mCustomDateFormatEdit;
};
class AppearancePageReaderTab : public ConfigModuleTab {
Q_OBJECT
public:
- AppearancePageReaderTab( QWidget * parent=0, const char * name=0 );
+ AppearancePageReaderTab( TQWidget * parent=0, const char * name=0 );
- QString helpAnchor() const;
+ TQString helpAnchor() const;
void save();
void installProfile( KConfig * profile );
@@ -533,23 +533,23 @@ private:
void readCurrentOverrideCodec();
private: // data
- QCheckBox *mShowColorbarCheck;
- QCheckBox *mShowSpamStatusCheck;
- QCheckBox *mShowEmoticonsCheck;
- QCheckBox *mShowExpandQuotesMark;
+ TQCheckBox *mShowColorbarCheck;
+ TQCheckBox *mShowSpamStatusCheck;
+ TQCheckBox *mShowEmoticonsCheck;
+ TQCheckBox *mShowExpandQuotesMark;
KIntSpinBox *mCollapseQuoteLevelSpin;
- QCheckBox *mShrinkQuotesCheck;
- QComboBox *mCharsetCombo;
- QComboBox *mOverrideCharsetCombo;
+ TQCheckBox *mShrinkQuotesCheck;
+ TQComboBox *mCharsetCombo;
+ TQComboBox *mOverrideCharsetCombo;
};
class AppearancePageSystemTrayTab : public ConfigModuleTab {
Q_OBJECT
public:
- AppearancePageSystemTrayTab( QWidget * parent=0, const char * name=0 );
+ AppearancePageSystemTrayTab( TQWidget * parent=0, const char * name=0 );
- QString helpAnchor() const;
+ TQString helpAnchor() const;
void save();
void installProfile( KConfig * profile );
@@ -558,16 +558,16 @@ private:
virtual void doLoadFromGlobalSettings();
private: // data
- QCheckBox *mSystemTrayCheck;
- QButtonGroup *mSystemTrayGroup;
+ TQCheckBox *mSystemTrayCheck;
+ TQButtonGroup *mSystemTrayGroup;
};
class KDE_EXPORT AppearancePage : public ConfigModuleWithTabs {
Q_OBJECT
public:
- AppearancePage( QWidget * parent=0, const char * name=0 );
+ AppearancePage( TQWidget * parent=0, const char * name=0 );
- QString helpAnchor() const;
+ TQString helpAnchor() const;
// hrmpf. moc doesn't like nested classes with slots/signals...:
typedef AppearancePageFontsTab FontsTab;
@@ -595,8 +595,8 @@ private:
class ComposerPageGeneralTab : public ConfigModuleTab {
Q_OBJECT
public:
- ComposerPageGeneralTab( QWidget * parent=0, const char * name=0 );
- QString helpAnchor() const;
+ ComposerPageGeneralTab( TQWidget * parent=0, const char * name=0 );
+ TQString helpAnchor() const;
void save();
void installProfile( KConfig * profile );
@@ -608,31 +608,31 @@ private:
virtual void doLoadFromGlobalSettings();
private:
- QCheckBox *mAutoAppSignFileCheck;
- QCheckBox *mTopQuoteCheck;
- QCheckBox *mSmartQuoteCheck;
- QCheckBox *mAutoRequestMDNCheck;
+ TQCheckBox *mAutoAppSignFileCheck;
+ TQCheckBox *mTopQuoteCheck;
+ TQCheckBox *mSmartQuoteCheck;
+ TQCheckBox *mAutoRequestMDNCheck;
QCheckBox *mShowRecentAddressesInComposer;
- QCheckBox *mWordWrapCheck;
+ TQCheckBox *mWordWrapCheck;
KIntSpinBox *mWrapColumnSpin;
KIntSpinBox *mAutoSave;
- QCheckBox *mExternalEditorCheck;
+ TQCheckBox *mExternalEditorCheck;
KURLRequester *mEditorRequester;
};
class ComposerPagePhrasesTab : public ConfigModuleTab {
Q_OBJECT
public:
- ComposerPagePhrasesTab( QWidget * parent=0, const char * name=0 );
- QString helpAnchor() const;
+ ComposerPagePhrasesTab( TQWidget * parent=0, const char * name=0 );
+ TQString helpAnchor() const;
void save();
private slots:
void slotNewLanguage();
void slotRemoveLanguage();
- void slotLanguageChanged( const QString& );
- void slotAddNewLanguage( const QString& );
+ void slotLanguageChanged( const TQString& );
+ void slotAddNewLanguage( const TQString& );
private:
virtual void doLoadFromGlobalSettings();
@@ -641,11 +641,11 @@ private:
private:
LanguageComboBox *mPhraseLanguageCombo;
- QPushButton *mRemoveButton;
- QLineEdit *mPhraseReplyEdit;
- QLineEdit *mPhraseReplyAllEdit;
- QLineEdit *mPhraseForwardEdit;
- QLineEdit *mPhraseIndentPrefixEdit;
+ TQPushButton *mRemoveButton;
+ TQLineEdit *mPhraseReplyEdit;
+ TQLineEdit *mPhraseReplyAllEdit;
+ TQLineEdit *mPhraseForwardEdit;
+ TQLineEdit *mPhraseIndentPrefixEdit;
int mActiveLanguageItem;
LanguageItemList mLanguageList;
@@ -654,8 +654,8 @@ private:
class ComposerPageTemplatesTab : public ConfigModuleTab {
Q_OBJECT
public:
- ComposerPageTemplatesTab( QWidget * parent=0, const char * name=0 );
- QString helpAnchor() const;
+ ComposerPageTemplatesTab( TQWidget * parent=0, const char * name=0 );
+ TQString helpAnchor() const;
void save();
@@ -671,8 +671,8 @@ private:
class ComposerPageCustomTemplatesTab : public ConfigModuleTab {
Q_OBJECT
public:
- ComposerPageCustomTemplatesTab( QWidget * parent=0, const char * name=0 );
- QString helpAnchor() const;
+ ComposerPageCustomTemplatesTab( TQWidget * parent=0, const char * name=0 );
+ TQString helpAnchor() const;
void save();
@@ -688,8 +688,8 @@ private:
class ComposerPageSubjectTab : public ConfigModuleTab {
Q_OBJECT
public:
- ComposerPageSubjectTab( QWidget * parent=0, const char * name=0 );
- QString helpAnchor() const;
+ ComposerPageSubjectTab( TQWidget * parent=0, const char * name=0 );
+ TQString helpAnchor() const;
void save();
@@ -698,21 +698,21 @@ private:
private:
SimpleStringListEditor *mReplyListEditor;
- QCheckBox *mReplaceReplyPrefixCheck;
+ TQCheckBox *mReplaceReplyPrefixCheck;
SimpleStringListEditor *mForwardListEditor;
- QCheckBox *mReplaceForwardPrefixCheck;
+ TQCheckBox *mReplaceForwardPrefixCheck;
};
class ComposerPageCharsetTab : public ConfigModuleTab {
Q_OBJECT
public:
- ComposerPageCharsetTab( QWidget * parent=0, const char * name=0 );
- QString helpAnchor() const;
+ ComposerPageCharsetTab( TQWidget * parent=0, const char * name=0 );
+ TQString helpAnchor() const;
void save();
private slots:
- void slotVerifyCharset(QString&);
+ void slotVerifyCharset(TQString&);
private:
//virtual void doLoadFromGlobalSettings();
@@ -721,21 +721,21 @@ private:
private:
SimpleStringListEditor *mCharsetListEditor;
- QCheckBox *mKeepReplyCharsetCheck;
+ TQCheckBox *mKeepReplyCharsetCheck;
};
class ComposerPageHeadersTab : public ConfigModuleTab {
Q_OBJECT
public:
- ComposerPageHeadersTab( QWidget * parent=0, const char * name=0 );
- QString helpAnchor() const;
+ ComposerPageHeadersTab( TQWidget * parent=0, const char * name=0 );
+ TQString helpAnchor() const;
void save();
private slots:
void slotMimeHeaderSelectionChanged();
- void slotMimeHeaderNameChanged( const QString & );
- void slotMimeHeaderValueChanged( const QString & );
+ void slotMimeHeaderNameChanged( const TQString & );
+ void slotMimeHeaderValueChanged( const TQString & );
void slotNewMimeHeader();
void slotRemoveMimeHeader();
@@ -745,22 +745,22 @@ private:
//FIXME virtual void doResetToDefaultsOther();
private:
- QCheckBox *mCreateOwnMessageIdCheck;
- QLineEdit *mMessageIdSuffixEdit;
- QRegExpValidator *mMessageIdSuffixValidator;
- QListView *mTagList;
- QPushButton *mRemoveHeaderButton;
- QLineEdit *mTagNameEdit;
- QLineEdit *mTagValueEdit;
- QLabel *mTagNameLabel;
- QLabel *mTagValueLabel;
+ TQCheckBox *mCreateOwnMessageIdCheck;
+ TQLineEdit *mMessageIdSuffixEdit;
+ TQRegExpValidator *mMessageIdSuffixValidator;
+ TQListView *mTagList;
+ TQPushButton *mRemoveHeaderButton;
+ TQLineEdit *mTagNameEdit;
+ TQLineEdit *mTagValueEdit;
+ TQLabel *mTagNameLabel;
+ TQLabel *mTagValueLabel;
};
class ComposerPageAttachmentsTab : public ConfigModuleTab {
Q_OBJECT
public:
- ComposerPageAttachmentsTab( QWidget * parent=0, const char * name=0 );
- QString helpAnchor() const;
+ ComposerPageAttachmentsTab( TQWidget * parent=0, const char * name=0 );
+ TQString helpAnchor() const;
void save();
@@ -772,17 +772,17 @@ private:
//FIXME virtual void doResetToDefaultsOther();
private:
- QCheckBox *mOutlookCompatibleCheck;
- QCheckBox *mMissingAttachmentDetectionCheck;
+ TQCheckBox *mOutlookCompatibleCheck;
+ TQCheckBox *mMissingAttachmentDetectionCheck;
SimpleStringListEditor *mAttachWordsListEditor;
};
class KDE_EXPORT ComposerPage : public ConfigModuleWithTabs {
Q_OBJECT
public:
- ComposerPage( QWidget * parent=0, const char * name=0 );
+ ComposerPage( TQWidget * parent=0, const char * name=0 );
- QString helpAnchor() const;
+ TQString helpAnchor() const;
// hrmpf. moc doesn't like nested classes with slots/signals...:
typedef ComposerPageGeneralTab GeneralTab;
@@ -814,8 +814,8 @@ private:
class SecurityPageGeneralTab : public ConfigModuleTab {
Q_OBJECT
public:
- SecurityPageGeneralTab( QWidget * parent=0, const char * name=0 );
- QString helpAnchor() const;
+ SecurityPageGeneralTab( TQWidget * parent=0, const char * name=0 );
+ TQString helpAnchor() const;
void save();
void installProfile( KConfig * profile );
@@ -826,22 +826,22 @@ private:
//FIXME virtual void doResetToDefaultsOther();
private:
- QCheckBox *mExternalReferences;
- QCheckBox *mHtmlMailCheck;
- QCheckBox *mNoMDNsWhenEncryptedCheck;
- QButtonGroup *mMDNGroup;
- QButtonGroup *mOrigQuoteGroup;
- QCheckBox *mAutomaticallyImportAttachedKeysCheck;
- QCheckBox *mAlwaysDecrypt;
+ TQCheckBox *mExternalReferences;
+ TQCheckBox *mHtmlMailCheck;
+ TQCheckBox *mNoMDNsWhenEncryptedCheck;
+ TQButtonGroup *mMDNGroup;
+ TQButtonGroup *mOrigQuoteGroup;
+ TQCheckBox *mAutomaticallyImportAttachedKeysCheck;
+ TQCheckBox *mAlwaysDecrypt;
};
class SecurityPageComposerCryptoTab : public ConfigModuleTab {
Q_OBJECT
public:
- SecurityPageComposerCryptoTab( QWidget * parent=0, const char * name=0 );
+ SecurityPageComposerCryptoTab( TQWidget * parent=0, const char * name=0 );
- QString helpAnchor() const;
+ TQString helpAnchor() const;
void save();
void installProfile( KConfig * profile );
@@ -858,9 +858,9 @@ private:
class SecurityPageWarningTab : public ConfigModuleTab {
Q_OBJECT
public:
- SecurityPageWarningTab( QWidget * parent=0, const char * name=0 );
+ SecurityPageWarningTab( TQWidget * parent=0, const char * name=0 );
- QString helpAnchor() const;
+ TQString helpAnchor() const;
void save();
void installProfile( KConfig * profile );
@@ -881,10 +881,10 @@ class SecurityPageSMimeTab : public ConfigModuleTab, public DCOPObject {
Q_OBJECT
K_DCOP
public:
- SecurityPageSMimeTab( QWidget * parent=0, const char * name=0 );
+ SecurityPageSMimeTab( TQWidget * parent=0, const char * name=0 );
~SecurityPageSMimeTab();
- QString helpAnchor() const;
+ TQString helpAnchor() const;
// Can't use k_dcop here. dcopidl can't parse this file, dcopidlng has a namespace bug.
void save();
@@ -907,10 +907,10 @@ class SecurityPageCryptPlugTab : public ConfigModuleTab
{
Q_OBJECT
public:
- SecurityPageCryptPlugTab( QWidget * parent = 0, const char* name = 0 );
+ SecurityPageCryptPlugTab( TQWidget * parent = 0, const char* name = 0 );
~SecurityPageCryptPlugTab();
- QString helpAnchor() const;
+ TQString helpAnchor() const;
void save();
@@ -925,9 +925,9 @@ private:
class KDE_EXPORT SecurityPage : public ConfigModuleWithTabs {
Q_OBJECT
public:
- SecurityPage( QWidget * parent=0, const char * name=0 );
+ SecurityPage( TQWidget * parent=0, const char * name=0 );
- QString helpAnchor() const;
+ TQString helpAnchor() const;
// OpenPGP tab is special:
void installProfile( KConfig * profile );
@@ -956,10 +956,10 @@ private:
class MiscPageFolderTab : public ConfigModuleTab {
Q_OBJECT
public:
- MiscPageFolderTab( QWidget * parent=0, const char * name=0 );
+ MiscPageFolderTab( TQWidget * parent=0, const char * name=0 );
void save();
- QString helpAnchor() const;
+ TQString helpAnchor() const;
private:
virtual void doLoadFromGlobalSettings();
@@ -967,28 +967,28 @@ private:
//FIXME virtual void doResetToDefaultsOther();
private:
- QCheckBox *mEmptyFolderConfirmCheck;
- QCheckBox *mExcludeImportantFromExpiry;
- QComboBox *mLoopOnGotoUnread;
- QComboBox *mMailboxPrefCombo;
- QComboBox *mActionEnterFolder;
- QCheckBox *mEmptyTrashCheck;
+ TQCheckBox *mEmptyFolderConfirmCheck;
+ TQCheckBox *mExcludeImportantFromExpiry;
+ TQComboBox *mLoopOnGotoUnread;
+ TQComboBox *mMailboxPrefCombo;
+ TQComboBox *mActionEnterFolder;
+ TQCheckBox *mEmptyTrashCheck;
#ifdef HAVE_INDEXLIB
- QCheckBox *mIndexingEnabled;
+ TQCheckBox *mIndexingEnabled;
#endif
- QCheckBox *mDelayedMarkAsRead;
+ TQCheckBox *mDelayedMarkAsRead;
KIntSpinBox *mDelayedMarkTime;
- QCheckBox *mShowPopupAfterDnD;
+ TQCheckBox *mShowPopupAfterDnD;
KMail::FolderRequester *mOnStartupOpenFolder;
- QComboBox *mQuotaCmbBox;
+ TQComboBox *mQuotaCmbBox;
};
class MiscPageGroupwareTab : public ConfigModuleTab {
Q_OBJECT
public:
- MiscPageGroupwareTab( QWidget * parent=0, const char * name=0 );
+ MiscPageGroupwareTab( TQWidget * parent=0, const char * name=0 );
void save();
- QString helpAnchor() const;
+ TQString helpAnchor() const;
private slots:
void slotStorageFormatChanged( int );
@@ -998,36 +998,36 @@ private:
virtual void doLoadFromGlobalSettings();
private:
- QCheckBox* mEnableGwCB;
- QCheckBox* mEnableImapResCB;
+ TQCheckBox* mEnableGwCB;
+ TQCheckBox* mEnableImapResCB;
- QWidget* mBox;
- QVBox* gBox;
+ TQWidget* mBox;
+ TQVBox* gBox;
- QComboBox* mStorageFormatCombo;
- QComboBox* mLanguageCombo;
+ TQComboBox* mStorageFormatCombo;
+ TQComboBox* mLanguageCombo;
- QLabel* mFolderComboLabel;
- QWidgetStack* mFolderComboStack;
+ TQLabel* mFolderComboLabel;
+ TQWidgetStack* mFolderComboStack;
KMail::FolderRequester* mFolderCombo; // in the widgetstack
KMail::AccountComboBox* mAccountCombo; // in the widgetstack
- QCheckBox* mHideGroupwareFolders;
- QCheckBox* mOnlyShowGroupwareFolders;
- QCheckBox* mSyncImmediately;
- QCheckBox* mDeleteInvitations;
+ TQCheckBox* mHideGroupwareFolders;
+ TQCheckBox* mOnlyShowGroupwareFolders;
+ TQCheckBox* mSyncImmediately;
+ TQCheckBox* mDeleteInvitations;
- QCheckBox* mLegacyMangleFromTo;
- QCheckBox* mLegacyBodyInvites;
- QCheckBox* mExchangeCompatibleInvitations;
- QCheckBox* mAutomaticSending;
+ TQCheckBox* mLegacyMangleFromTo;
+ TQCheckBox* mLegacyBodyInvites;
+ TQCheckBox* mExchangeCompatibleInvitations;
+ TQCheckBox* mAutomaticSending;
};
class KDE_EXPORT MiscPage : public ConfigModuleWithTabs {
Q_OBJECT
public:
- MiscPage( QWidget * parent=0, const char * name=0 );
- QString helpAnchor() const;
+ MiscPage( TQWidget * parent=0, const char * name=0 );
+ TQString helpAnchor() const;
typedef MiscPageFolderTab FolderTab;
typedef MiscPageGroupwareTab GroupwareTab;
@@ -1046,15 +1046,15 @@ private:
class ListView : public KListView {
Q_OBJECT
public:
- ListView( QWidget *parent=0, const char *name=0, int visibleItem=10 );
+ ListView( TQWidget *parent=0, const char *name=0, int visibleItem=10 );
void resizeColums();
void setVisibleItem( int visibleItem, bool updateSize=true );
- virtual QSize sizeHint() const;
+ virtual TQSize sizeHint() const;
protected:
- virtual void resizeEvent( QResizeEvent *e );
- virtual void showEvent( QShowEvent *e );
+ virtual void resizeEvent( TQResizeEvent *e );
+ virtual void showEvent( TQShowEvent *e );
private:
int mVisibleItem;
diff --git a/kmail/copyfolderjob.cpp b/kmail/copyfolderjob.cpp
index 0328e3df..ddfa6d25 100644
--- a/kmail/copyfolderjob.cpp
+++ b/kmail/copyfolderjob.cpp
@@ -81,7 +81,7 @@ void CopyFolderJob::copyMessagesToTargetDir()
// Hmmmm. Tasty hack. Can I have fries with that?
mStorage->blockSignals( true );
// move all messages to the new folder
- QPtrList<KMMsgBase> msgList;
+ TQPtrList<KMMsgBase> msgList;
for ( int i = 0; i < mStorage->count(); i++ )
{
const KMMsgBase* msgBase = mStorage->getMsgBase( i );
@@ -95,8 +95,8 @@ void CopyFolderJob::copyMessagesToTargetDir()
slotCopyNextChild(); // no contents, check subfolders
} else {
KMCommand *command = new KMCopyCommand( mNewFolder, msgList );
- connect( command, SIGNAL( completed( KMCommand * ) ),
- this, SLOT( slotCopyCompleted( KMCommand * ) ) );
+ connect( command, TQT_SIGNAL( completed( KMCommand * ) ),
+ this, TQT_SLOT( slotCopyCompleted( KMCommand * ) ) );
command->start();
}
}
@@ -104,8 +104,8 @@ void CopyFolderJob::copyMessagesToTargetDir()
void CopyFolderJob::slotCopyCompleted( KMCommand* command )
{
kdDebug(5006) << k_funcinfo << (command?command->result():0) << endl;
- disconnect( command, SIGNAL( completed( KMCommand * ) ),
- this, SLOT( slotCopyCompleted( KMCommand * ) ) );
+ disconnect( command, TQT_SIGNAL( completed( KMCommand * ) ),
+ this, TQT_SLOT( slotCopyCompleted( KMCommand * ) ) );
mStorage->blockSignals( false );
@@ -160,8 +160,8 @@ void CopyFolderJob::slotCopyNextChild( bool success )
// let it do its thing and report back when we are ready to do the next sibling
mNextChildFolder->open( "copyfolder" ); // refcount
FolderJob* job = new CopyFolderJob( mNextChildFolder->storage(), dir);
- connect( job, SIGNAL( folderCopyComplete( bool ) ),
- this, SLOT( slotCopyNextChild( bool ) ) );
+ connect( job, TQT_SIGNAL( folderCopyComplete( bool ) ),
+ this, TQT_SLOT( slotCopyNextChild( bool ) ) );
job->start();
}
@@ -191,13 +191,13 @@ bool CopyFolderJob::createTargetDir()
if (anAccount->makeConnection() == ImapAccountBase::Connected) {
mNewFolder = kmkernel->imapFolderMgr()->createFolder( mStorage->folder()->name(), false, typenew, mNewParent );
if ( mNewFolder ) {
- QString imapPath;
+ TQString imapPath;
imapPath = anAccount->createImapPath( selectedStorage->imapPath(), mStorage->folder()->name() );
KMFolderImap* newStorage = static_cast<KMFolderImap*>( mNewFolder->storage() );
- connect( selectedStorage, SIGNAL(folderCreationResult(const QString&, bool)),
- this, SLOT(folderCreationDone(const QString&, bool)) );
- selectedStorage->createFolder(mStorage->folder()->name(), QString::null); // create it on the server
- newStorage->initializeFrom( selectedStorage, imapPath, QString::null );
+ connect( selectedStorage, TQT_SIGNAL(folderCreationResult(const TQString&, bool)),
+ this, TQT_SLOT(folderCreationDone(const TQString&, bool)) );
+ selectedStorage->createFolder(mStorage->folder()->name(), TQString::null); // create it on the server
+ newStorage->initializeFrom( selectedStorage, imapPath, TQString::null );
static_cast<KMFolderImap*>(mNewParent->owner()->storage())->setAccount( selectedStorage->account() );
waitForFolderCreation = true;
success = true;
@@ -268,7 +268,7 @@ void CopyFolderJob::rollback()
deleteLater();
}
-void CopyFolderJob::folderCreationDone(const QString & name, bool success)
+void CopyFolderJob::folderCreationDone(const TQString & name, bool success)
{
if ( mStorage->folder()->name() != name )
return; // not our business
diff --git a/kmail/copyfolderjob.h b/kmail/copyfolderjob.h
index b02be98a..73311a49 100644
--- a/kmail/copyfolderjob.h
+++ b/kmail/copyfolderjob.h
@@ -30,7 +30,7 @@
#include "folderjob.h"
-#include <qguardedptr.h>
+#include <tqguardedptr.h>
class FolderStorage;
class KMFolderDir;
@@ -91,17 +91,17 @@ protected slots:
/**
Called when the online IMAP folder creation finished.
*/
- void folderCreationDone( const QString &name, bool success );
+ void folderCreationDone( const TQString &name, bool success );
signals:
/** Emitted when the job is done, check the success bool */
void folderCopyComplete( bool success );
protected:
- QGuardedPtr<FolderStorage> const mStorage;
+ TQGuardedPtr<FolderStorage> const mStorage;
KMFolderDir* const mNewParent;
- QGuardedPtr<KMFolder> mNewFolder;
- QPtrListIterator<KMFolderNode> mChildFolderNodeIterator;
+ TQGuardedPtr<KMFolder> mNewFolder;
+ TQPtrListIterator<KMFolderNode> mChildFolderNodeIterator;
KMFolder* mNextChildFolder;
};
diff --git a/kmail/csshelper.cpp b/kmail/csshelper.cpp
index 4fa2588c..fc411be7 100644
--- a/kmail/csshelper.cpp
+++ b/kmail/csshelper.cpp
@@ -36,12 +36,12 @@
#include <kconfig.h>
-#include <qcolor.h>
-#include <qfont.h>
+#include <tqcolor.h>
+#include <tqfont.h>
namespace KMail {
- CSSHelper::CSSHelper( const QPaintDeviceMetrics &pdm ) :
+ CSSHelper::CSSHelper( const TQPaintDeviceMetrics &pdm ) :
KPIM::CSSHelper( pdm )
{
KConfig * config = KMKernel::config();
@@ -64,7 +64,7 @@ namespace KMail {
cPgpErrH = reader.readColorEntry( "PGPMessageErr", &cPgpErrH );
cHtmlWarning = reader.readColorEntry( "HTMLWarningColor", &cHtmlWarning );
for ( int i = 0 ; i < 3 ; ++i ) {
- const QString key = "QuotedText" + QString::number( i+1 );
+ const TQString key = "QuotedText" + TQString::number( i+1 );
mQuoteColor[i] = reader.readColorEntry( key, &mQuoteColor[i] );
}
}
@@ -74,10 +74,10 @@ namespace KMail {
mPrintFont = fonts.readFontEntry( "print-font", &mPrintFont);
mFixedFont = fonts.readFontEntry( "fixed-font", &mFixedFont);
mFixedPrintFont = mFixedFont; // FIXME when we have a separate fixed print font
- QFont defaultFont = mBodyFont;
+ TQFont defaultFont = mBodyFont;
defaultFont.setItalic( true );
for ( int i = 0 ; i < 3 ; ++i ) {
- const QString key = QString( "quote%1-font" ).arg( i+1 );
+ const TQString key = TQString( "quote%1-font" ).arg( i+1 );
mQuoteFont[i] = fonts.readFontEntry( key, &defaultFont );
}
}
diff --git a/kmail/csshelper.h b/kmail/csshelper.h
index eaa82391..7015cec5 100644
--- a/kmail/csshelper.h
+++ b/kmail/csshelper.h
@@ -38,7 +38,7 @@ namespace KMail {
class CSSHelper : public KPIM::CSSHelper {
public:
- CSSHelper( const QPaintDeviceMetrics &pdm );
+ CSSHelper( const TQPaintDeviceMetrics &pdm );
};
} // namespace KMail
diff --git a/kmail/customtemplates.cpp b/kmail/customtemplates.cpp
index 4030862c..93b24e8f 100644
--- a/kmail/customtemplates.cpp
+++ b/kmail/customtemplates.cpp
@@ -22,18 +22,18 @@
#include <klocale.h>
#include <kglobal.h>
-#include <qpopupmenu.h>
-#include <qpushbutton.h>
-#include <qtextedit.h>
-#include <qlineedit.h>
-#include <qtoolbox.h>
+#include <tqpopupmenu.h>
+#include <tqpushbutton.h>
+#include <tqtextedit.h>
+#include <tqlineedit.h>
+#include <tqtoolbox.h>
#include <kdebug.h>
-#include <qfont.h>
+#include <tqfont.h>
#include <kiconloader.h>
#include <kpushbutton.h>
#include <klistview.h>
#include <klineedit.h>
-#include <qcombobox.h>
+#include <tqcombobox.h>
#include <kshortcut.h>
#include <kmessagebox.h>
#include <kkeybutton.h>
@@ -47,10 +47,10 @@
#include "customtemplates.h"
-CustomTemplates::CustomTemplates( QWidget *parent, const char *name )
+CustomTemplates::CustomTemplates( TQWidget *parent, const char *name )
:CustomTemplatesBase( parent, name ), mCurrentItem( 0 )
{
- QFont f = KGlobalSettings::fixedFont();
+ TQFont f = KGlobalSettings::fixedFont();
mEdit->setFont( f );
mAdd->setIconSet( BarIconSet( "add", KIcon::SizeSmall ) );
@@ -61,35 +61,35 @@ CustomTemplates::CustomTemplates( QWidget *parent, const char *name )
mEditFrame->setEnabled( false );
- connect( mEdit, SIGNAL( textChanged() ),
- this, SLOT( slotTextChanged( void ) ) );
+ connect( mEdit, TQT_SIGNAL( textChanged() ),
+ this, TQT_SLOT( slotTextChanged( void ) ) );
- connect( mInsertCommand, SIGNAL( insertCommand(QString, int) ),
- this, SLOT( slotInsertCommand(QString, int) ) );
+ connect( mInsertCommand, TQT_SIGNAL( insertCommand(TQString, int) ),
+ this, TQT_SLOT( slotInsertCommand(TQString, int) ) );
- connect( mAdd, SIGNAL( clicked() ),
- this, SLOT( slotAddClicked() ) );
- connect( mRemove, SIGNAL( clicked() ),
- this, SLOT( slotRemoveClicked() ) );
- connect( mList, SIGNAL( selectionChanged() ),
- this, SLOT( slotListSelectionChanged() ) );
- connect( mType, SIGNAL( activated( int ) ),
- this, SLOT( slotTypeActivated( int ) ) );
+ connect( mAdd, TQT_SIGNAL( clicked() ),
+ this, TQT_SLOT( slotAddClicked() ) );
+ connect( mRemove, TQT_SIGNAL( clicked() ),
+ this, TQT_SLOT( slotRemoveClicked() ) );
+ connect( mList, TQT_SIGNAL( selectionChanged() ),
+ this, TQT_SLOT( slotListSelectionChanged() ) );
+ connect( mType, TQT_SIGNAL( activated( int ) ),
+ this, TQT_SLOT( slotTypeActivated( int ) ) );
- connect( mKeyButton, SIGNAL( capturedShortcut( const KShortcut& ) ),
- this, SLOT( slotShortcutCaptured( const KShortcut& ) ) );
+ connect( mKeyButton, TQT_SIGNAL( capturedShortcut( const KShortcut& ) ),
+ this, TQT_SLOT( slotShortcutCaptured( const KShortcut& ) ) );
mReplyPix = KIconLoader().loadIcon( "mail_reply", KIcon::Small );
mReplyAllPix = KIconLoader().loadIcon( "mail_replyall", KIcon::Small );
mForwardPix = KIconLoader().loadIcon( "mail_forward", KIcon::Small );
mType->clear();
- mType->insertItem( QPixmap(), i18n( "Message->", "Universal" ), TUniversal );
+ mType->insertItem( TQPixmap(), i18n( "Message->", "Universal" ), TUniversal );
mType->insertItem( mReplyPix, i18n( "Message->", "Reply" ), TReply );
mType->insertItem( mReplyAllPix, i18n( "Message->", "Reply to All" ), TReplyAll );
mType->insertItem( mForwardPix, i18n( "Message->", "Forward" ), TForward );
- QString help =
+ TQString help =
i18n( "<qt>"
"<p>Here you can add, edit, and delete custom message "
"templates to use when you compose a reply or forwarding message. "
@@ -109,7 +109,7 @@ CustomTemplates::CustomTemplates( QWidget *parent, const char *name )
CustomTemplates::~CustomTemplates()
{
- QDictIterator<CustomTemplateItem> it(mItemList);
+ TQDictIterator<CustomTemplateItem> it(mItemList);
for ( ; it.current() ; ++it ) {
CustomTemplateItem *vitem = mItemList.take( it.currentKey() );
if ( vitem ) {
@@ -118,9 +118,9 @@ CustomTemplates::~CustomTemplates()
}
}
-QString CustomTemplates::indexToType( int index )
+TQString CustomTemplates::indexToType( int index )
{
- QString typeStr;
+ TQString typeStr;
switch ( index ) {
case TUniversal:
// typeStr = i18n( "Any" ); break;
@@ -146,18 +146,18 @@ void CustomTemplates::slotTextChanged()
void CustomTemplates::load()
{
- QStringList list = GlobalSettings::self()->customTemplates();
- for ( QStringList::iterator it = list.begin(); it != list.end(); ++it ) {
+ TQStringList list = GlobalSettings::self()->customTemplates();
+ for ( TQStringList::iterator it = list.begin(); it != list.end(); ++it ) {
CTemplates t(*it);
- // QString typeStr = indexToType( t.type() );
- QString typeStr;
+ // TQString typeStr = indexToType( t.type() );
+ TQString typeStr;
KShortcut shortcut( t.shortcut() );
CustomTemplateItem *vitem =
new CustomTemplateItem( *it, t.content(),
shortcut,
static_cast<Type>( t.type() ) );
mItemList.insert( *it, vitem );
- QListViewItem *item = new QListViewItem( mList, typeStr, *it, t.content() );
+ TQListViewItem *item = new TQListViewItem( mList, typeStr, *it, t.content() );
switch ( t.type() ) {
case TReply:
item->setPixmap( 0, mReplyPix );
@@ -169,7 +169,7 @@ void CustomTemplates::load()
item->setPixmap( 0, mForwardPix );
break;
default:
- item->setPixmap( 0, QPixmap() );
+ item->setPixmap( 0, TQPixmap() );
item->setText( 0, indexToType( t.type() ) );
break;
};
@@ -185,17 +185,17 @@ void CustomTemplates::save()
vitem->mShortcut = mKeyButton->shortcut();
}
}
- QStringList list;
- QListViewItemIterator lit( mList );
+ TQStringList list;
+ TQListViewItemIterator lit( mList );
while ( lit.current() ) {
list.append( (*lit)->text( 1 ) );
++lit;
}
- QDictIterator<CustomTemplateItem> it( mItemList );
+ TQDictIterator<CustomTemplateItem> it( mItemList );
for ( ; it.current() ; ++it ) {
// list.append( (*it)->mName );
CTemplates t( (*it)->mName );
- QString &content = (*it)->mContent;
+ TQString &content = (*it)->mContent;
if ( content.stripWhiteSpace().isEmpty() ) {
content = "%BLANK";
}
@@ -212,7 +212,7 @@ void CustomTemplates::save()
kmkernel->getKMMainWidget()->updateCustomTemplateMenus();
}
-void CustomTemplates::slotInsertCommand( QString cmd, int adjustCursor )
+void CustomTemplates::slotInsertCommand( TQString cmd, int adjustCursor )
{
int para, index;
mEdit->getCursorPosition( &para, &index );
@@ -225,14 +225,14 @@ void CustomTemplates::slotInsertCommand( QString cmd, int adjustCursor )
void CustomTemplates::slotAddClicked()
{
- QString str = mName->text();
+ TQString str = mName->text();
if ( !str.isEmpty() ) {
CustomTemplateItem *vitem = mItemList[ str ];
if ( !vitem ) {
vitem = new CustomTemplateItem( str, "", KShortcut::null(), TUniversal );
mItemList.insert( str, vitem );
- QListViewItem *item =
- new QListViewItem( mList, indexToType( TUniversal ), str, "" );
+ TQListViewItem *item =
+ new TQListViewItem( mList, indexToType( TUniversal ), str, "" );
mList->setSelected( item, true );
mKeyButton->setEnabled( false );
emit changed();
@@ -262,22 +262,22 @@ void CustomTemplates::slotListSelectionChanged()
vitem->mShortcut = mKeyButton->shortcut();
}
}
- QListViewItem *item = mList->selectedItem();
+ TQListViewItem *item = mList->selectedItem();
if ( item ) {
mEditFrame->setEnabled( true );
mCurrentItem = item;
CustomTemplateItem *vitem = mItemList[ mCurrentItem->text( 1 ) ];
if ( vitem ) {
// avoid emit changed()
- disconnect( mEdit, SIGNAL( textChanged() ),
- this, SLOT( slotTextChanged( void ) ) );
+ disconnect( mEdit, TQT_SIGNAL( textChanged() ),
+ this, TQT_SLOT( slotTextChanged( void ) ) );
mEdit->setText( vitem->mContent );
mKeyButton->setShortcut( vitem->mShortcut, false );
mType->setCurrentItem( vitem->mType );
- connect( mEdit, SIGNAL( textChanged() ),
- this, SLOT( slotTextChanged( void ) ) );
+ connect( mEdit, TQT_SIGNAL( textChanged() ),
+ this, TQT_SLOT( slotTextChanged( void ) ) );
if ( vitem->mType == TUniversal )
{
@@ -315,7 +315,7 @@ void CustomTemplates::slotTypeActivated( int index )
mCurrentItem->setPixmap( 0, mForwardPix );
break;
default:
- mCurrentItem->setPixmap( 0, QPixmap() );
+ mCurrentItem->setPixmap( 0, TQPixmap() );
break;
};
if ( index == TUniversal )
@@ -338,14 +338,14 @@ void CustomTemplates::slotShortcutCaptured( const KShortcut &shortcut )
bool assign = true;
bool customused = false;
// check if shortcut is already used for custom templates
- QDictIterator<CustomTemplateItem> it(mItemList);
+ TQDictIterator<CustomTemplateItem> it(mItemList);
for ( ; it.current() ; ++it ) {
if ( !mCurrentItem || (*it)->mName != mCurrentItem->text( 1 ) )
{
if ( (*it)->mShortcut == sc )
{
- QString title( I18N_NOOP("Key Conflict") );
- QString msg( I18N_NOOP("The selected shortcut is already used "
+ TQString title( I18N_NOOP("Key Conflict") );
+ TQString msg( I18N_NOOP("The selected shortcut is already used "
"for another custom template, "
"would you still like to continue with the assignment?" ) );
assign = ( KMessageBox::warningYesNo( this, msg, title )
@@ -361,8 +361,8 @@ void CustomTemplates::slotShortcutCaptured( const KShortcut &shortcut )
// check if shortcut is used somewhere else
if ( !customused && !sc.isNull() &&
!( kmkernel->getKMMainWidget()->shortcutIsValid( sc ) ) ) {
- QString title( I18N_NOOP("Key Conflict") );
- QString msg( I18N_NOOP("The selected shortcut is already used, "
+ TQString title( I18N_NOOP("Key Conflict") );
+ TQString msg( I18N_NOOP("The selected shortcut is already used, "
"would you still like to continue with the assignment?" ) );
assign = ( KMessageBox::warningYesNo( this, msg, title )
== KMessageBox::Yes );
diff --git a/kmail/customtemplates.h b/kmail/customtemplates.h
index a2b27678..dc454bf6 100644
--- a/kmail/customtemplates.h
+++ b/kmail/customtemplates.h
@@ -27,7 +27,7 @@
#include "templatesinsertcommand.h"
struct CustomTemplateItem;
-typedef QDict<CustomTemplateItem> CustomTemplateItemList;
+typedef TQDict<CustomTemplateItem> CustomTemplateItemList;
class KShortcut;
class CustomTemplates : public CustomTemplatesBase
@@ -40,17 +40,17 @@ class CustomTemplates : public CustomTemplatesBase
public:
- CustomTemplates( QWidget *parent = 0, const char *name = 0 );
+ CustomTemplates( TQWidget *parent = 0, const char *name = 0 );
~CustomTemplates();
void load();
void save();
- QString indexToType( int index );
+ TQString indexToType( int index );
public slots:
- void slotInsertCommand( QString cmd, int adjustCursor = 0 );
+ void slotInsertCommand( TQString cmd, int adjustCursor = 0 );
void slotTextChanged();
@@ -66,25 +66,25 @@ class CustomTemplates : public CustomTemplatesBase
protected:
- QListViewItem *mCurrentItem;
+ TQListViewItem *mCurrentItem;
CustomTemplateItemList mItemList;
- QPixmap mReplyPix;
- QPixmap mReplyAllPix;
- QPixmap mForwardPix;
+ TQPixmap mReplyPix;
+ TQPixmap mReplyAllPix;
+ TQPixmap mForwardPix;
};
struct CustomTemplateItem
{
CustomTemplateItem() {}
- CustomTemplateItem( const QString &name,
- const QString &content,
+ CustomTemplateItem( const TQString &name,
+ const TQString &content,
KShortcut &shortcut,
CustomTemplates::Type type ) :
mName( name ), mContent( content ), mShortcut(shortcut), mType( type ) {}
- QString mName, mContent;
+ TQString mName, mContent;
KShortcut mShortcut;
CustomTemplates::Type mType;
};
diff --git a/kmail/dcoptest.cpp b/kmail/dcoptest.cpp
index ecf51207..9887dc98 100644
--- a/kmail/dcoptest.cpp
+++ b/kmail/dcoptest.cpp
@@ -29,7 +29,7 @@ int main(int argc,char **argv)
DCOPRef ref = kmailStub.openComposer("to 2","","","Second test",
"DCOP ref call",0);
MailComposerIface_stub composerStub(ref.app(),ref.object());
- QCString data = "BEGIN:VCALENDAR\nEND:VCALENDAR";
+ TQCString data = "BEGIN:VCALENDAR\nEND:VCALENDAR";
composerStub.addAttachment("test.ics","7bit",data,"text","calendar","method",
"publish","attachement;");
composerStub.send(2);
diff --git a/kmail/dictionarycombobox.cpp b/kmail/dictionarycombobox.cpp
index 59e0affd..88b77623 100644
--- a/kmail/dictionarycombobox.cpp
+++ b/kmail/dictionarycombobox.cpp
@@ -38,20 +38,20 @@
#include <ksconfig.h>
#include <kdebug.h>
-#include <qstringlist.h>
+#include <tqstringlist.h>
namespace KMail {
- DictionaryComboBox::DictionaryComboBox( QWidget * parent, const char * name )
- : QComboBox( false, parent, name ),
+ DictionaryComboBox::DictionaryComboBox( TQWidget * parent, const char * name )
+ : TQComboBox( false, parent, name ),
mSpellConfig( 0 ),
mDefaultDictionary( 0 )
{
reloadCombo();
- connect( this, SIGNAL( activated( int ) ),
- this, SLOT( slotDictionaryChanged( int ) ) );
- connect( this, SIGNAL( dictionaryChanged( int ) ),
- mSpellConfig, SLOT( sSetDictionary( int ) ) );
+ connect( this, TQT_SIGNAL( activated( int ) ),
+ this, TQT_SLOT( slotDictionaryChanged( int ) ) );
+ connect( this, TQT_SIGNAL( dictionaryChanged( int ) ),
+ mSpellConfig, TQT_SLOT( sSetDictionary( int ) ) );
}
DictionaryComboBox::~DictionaryComboBox()
@@ -60,21 +60,21 @@ namespace KMail {
mSpellConfig = 0;
}
- QString DictionaryComboBox::currentDictionaryName() const
+ TQString DictionaryComboBox::currentDictionaryName() const
{
return currentText();
}
- QString DictionaryComboBox::currentDictionary() const
+ TQString DictionaryComboBox::currentDictionary() const
{
- QString dict = mDictionaries[ currentItem() ];
+ TQString dict = mDictionaries[ currentItem() ];
if ( dict.isEmpty() )
return "<default>";
else
return dict;
}
- void DictionaryComboBox::setCurrentByDictionaryName( const QString & name )
+ void DictionaryComboBox::setCurrentByDictionaryName( const TQString & name )
{
if ( name.isEmpty() )
return;
@@ -90,7 +90,7 @@ namespace KMail {
}
}
- void DictionaryComboBox::setCurrentByDictionary( const QString & dictionary )
+ void DictionaryComboBox::setCurrentByDictionary( const TQString & dictionary )
{
if ( !dictionary.isEmpty() ) {
// first handle the special case of the default dictionary
@@ -103,7 +103,7 @@ namespace KMail {
}
int i = 0;
- for ( QStringList::ConstIterator it = mDictionaries.begin();
+ for ( TQStringList::ConstIterator it = mDictionaries.begin();
it != mDictionaries.end();
++it, ++i ) {
if ( *it == dictionary ) {
diff --git a/kmail/dictionarycombobox.h b/kmail/dictionarycombobox.h
index 0e7a3e19..0fcbdceb 100644
--- a/kmail/dictionarycombobox.h
+++ b/kmail/dictionarycombobox.h
@@ -32,7 +32,7 @@
#ifndef _KMAIL_DICTIONARYCOMBOBOX_H_
#define _KMAIL_DICTIONARYCOMBOBOX_H_
-#include <qcombobox.h>
+#include <tqcombobox.h>
class KSpellConfig;
class QStringList;
@@ -45,16 +45,16 @@ namespace KMail {
* @author Ingo Kloecker <kloecker@kde.org>
**/
- class DictionaryComboBox : public QComboBox {
+ class DictionaryComboBox : public TQComboBox {
Q_OBJECT
public:
- DictionaryComboBox( QWidget * parent=0, const char * name=0 );
+ DictionaryComboBox( TQWidget * parent=0, const char * name=0 );
~DictionaryComboBox();
- QString currentDictionaryName() const;
- QString currentDictionary() const;
- void setCurrentByDictionaryName( const QString & dictionaryName );
- void setCurrentByDictionary( const QString & dictionary );
+ TQString currentDictionaryName() const;
+ TQString currentDictionary() const;
+ void setCurrentByDictionaryName( const TQString & dictionaryName );
+ void setCurrentByDictionary( const TQString & dictionary );
KSpellConfig* spellConfig() const;
@@ -63,7 +63,7 @@ namespace KMail {
* by user intervention or on setCurrentByDictionaryName() or on
* setCurrentByDictionary().
**/
- void dictionaryChanged( const QString & dictionary );
+ void dictionaryChanged( const TQString & dictionary );
void dictionaryChanged( int );
protected slots:
@@ -73,7 +73,7 @@ namespace KMail {
void reloadCombo();
protected:
- QStringList mDictionaries;
+ TQStringList mDictionaries;
KSpellConfig* mSpellConfig;
int mDefaultDictionary;
};
diff --git a/kmail/distributionlistdialog.cpp b/kmail/distributionlistdialog.cpp
index 9c8d6fd2..b591afd7 100644
--- a/kmail/distributionlistdialog.cpp
+++ b/kmail/distributionlistdialog.cpp
@@ -38,31 +38,31 @@
#include <kmessagebox.h>
#include <kinputdialog.h>
-#include <qlayout.h>
-#include <qlabel.h>
-#include <qlineedit.h>
+#include <tqlayout.h>
+#include <tqlabel.h>
+#include <tqlineedit.h>
class DistributionListItem : public QCheckListItem
{
public:
- DistributionListItem( QListView *list )
- : QCheckListItem( list, QString::null, CheckBox )
+ DistributionListItem( TQListView *list )
+ : TQCheckListItem( list, TQString::null, CheckBox )
{
}
- void setAddressee( const KABC::Addressee &a, const QString &email )
+ void setAddressee( const KABC::Addressee &a, const TQString &email )
{
mIsTransient = false;
init( a, email );
}
- void setTransientAddressee( const KABC::Addressee &a, const QString &email )
+ void setTransientAddressee( const KABC::Addressee &a, const TQString &email )
{
mIsTransient = true;
init( a, email );
}
- void init( const KABC::Addressee &a, const QString &email )
+ void init( const KABC::Addressee &a, const TQString &email )
{
mAddressee = a;
mEmail = email;
@@ -75,7 +75,7 @@ class DistributionListItem : public QCheckListItem
return mAddressee;
}
- QString email() const
+ TQString email() const
{
return mEmail;
}
@@ -87,31 +87,31 @@ class DistributionListItem : public QCheckListItem
private:
KABC::Addressee mAddressee;
- QString mEmail;
+ TQString mEmail;
bool mIsTransient;
};
-DistributionListDialog::DistributionListDialog( QWidget *parent )
+DistributionListDialog::DistributionListDialog( TQWidget *parent )
: KDialogBase( Plain, i18n("Save Distribution List"), User1 | Cancel,
User1, parent, 0, false, false, i18n("Save List") )
{
- QFrame *topFrame = plainPage();
+ TQFrame *topFrame = plainPage();
- QBoxLayout *topLayout = new QVBoxLayout( topFrame );
+ TQBoxLayout *topLayout = new TQVBoxLayout( topFrame );
topLayout->setSpacing( spacingHint() );
- QBoxLayout *titleLayout = new QHBoxLayout( topLayout );
+ TQBoxLayout *titleLayout = new TQHBoxLayout( topLayout );
- QLabel *label = new QLabel( i18n("Name:"), topFrame );
+ TQLabel *label = new TQLabel( i18n("Name:"), topFrame );
titleLayout->addWidget( label );
- mTitleEdit = new QLineEdit( topFrame );
+ mTitleEdit = new TQLineEdit( topFrame );
titleLayout->addWidget( mTitleEdit );
mTitleEdit->setFocus();
mRecipientsList = new KListView( topFrame );
- mRecipientsList->addColumn( QString::null );
+ mRecipientsList->addColumn( TQString::null );
mRecipientsList->addColumn( i18n("Name") );
mRecipientsList->addColumn( i18n("Email") );
topLayout->addWidget( mRecipientsList );
@@ -121,11 +121,11 @@ void DistributionListDialog::setRecipients( const Recipient::List &recipients )
{
Recipient::List::ConstIterator it;
for( it = recipients.begin(); it != recipients.end(); ++it ) {
- QStringList emails = KPIM::splitEmailAddrList( (*it).email() );
- QStringList::ConstIterator it2;
+ TQStringList emails = KPIM::splitEmailAddrList( (*it).email() );
+ TQStringList::ConstIterator it2;
for( it2 = emails.begin(); it2 != emails.end(); ++it2 ) {
- QString name;
- QString email;
+ TQString name;
+ TQString email;
KABC::Addressee::parseEmailAddress( *it2, name, email );
if ( !email.isEmpty() ) {
DistributionListItem *item = new DistributionListItem( mRecipientsList );
@@ -155,7 +155,7 @@ void DistributionListDialog::slotUser1()
KABC::AddressBook *ab = KABC::StdAddressBook::self( true );
- QListViewItem *i = mRecipientsList->firstChild();
+ TQListViewItem *i = mRecipientsList->firstChild();
while( i ) {
DistributionListItem *item = static_cast<DistributionListItem *>( i );
if ( item->isOn() ) {
@@ -178,12 +178,12 @@ void DistributionListDialog::slotUser1()
manager.load();
#endif
- QString name = mTitleEdit->text();
+ TQString name = mTitleEdit->text();
if ( name.isEmpty() ) {
bool ok = false;
name = KInputDialog::getText( i18n("New Distribution List"),
- i18n("Please enter name:"), QString::null, &ok, this );
+ i18n("Please enter name:"), TQString::null, &ok, this );
if ( !ok || name.isEmpty() )
return;
}
diff --git a/kmail/distributionlistdialog.h b/kmail/distributionlistdialog.h
index 092cf84c..84c96d5f 100644
--- a/kmail/distributionlistdialog.h
+++ b/kmail/distributionlistdialog.h
@@ -31,7 +31,7 @@ class KListView;
class DistributionListDialog : public KDialogBase
{
public:
- DistributionListDialog( QWidget *parent );
+ DistributionListDialog( TQWidget *parent );
void setRecipients( const Recipient::List & );
@@ -39,7 +39,7 @@ class DistributionListDialog : public KDialogBase
void slotUser1();
private:
- QLineEdit *mTitleEdit;
+ TQLineEdit *mTitleEdit;
KListView *mRecipientsList;
};
diff --git a/kmail/editorwatcher.cpp b/kmail/editorwatcher.cpp
index e9fec660..273c5997 100644
--- a/kmail/editorwatcher.cpp
+++ b/kmail/editorwatcher.cpp
@@ -27,7 +27,7 @@
#include <kprocess.h>
#include <kuserprofile.h>
-#include <qsocketnotifier.h>
+#include <tqsocketnotifier.h>
#include <cassert>
@@ -48,8 +48,8 @@
using namespace KMail;
-EditorWatcher::EditorWatcher(const KURL & url, const QString &mimeType, bool openWith, QObject * parent) :
- QObject( parent ),
+EditorWatcher::EditorWatcher(const KURL & url, const TQString &mimeType, bool openWith, TQObject * parent) :
+ TQObject( parent ),
mUrl( url ),
mMimeType( mimeType ),
mOpenWith( openWith ),
@@ -61,7 +61,7 @@ EditorWatcher::EditorWatcher(const KURL & url, const QString &mimeType, bool ope
mDone( false )
{
assert( mUrl.isLocalFile() );
- connect( &mTimer, SIGNAL(timeout()), SLOT(checkEditDone()) );
+ connect( &mTimer, TQT_SIGNAL(timeout()), TQT_SLOT(checkEditDone()) );
}
bool EditorWatcher::start()
@@ -71,7 +71,7 @@ bool EditorWatcher::start()
list.append( mUrl );
KService::Ptr offer = KServiceTypeProfile::preferredService( mMimeType, "Application" );
if ( mOpenWith || !offer ) {
- KOpenWithDlg dlg( list, i18n("Edit with:"), QString::null, 0 );
+ KOpenWithDlg dlg( list, i18n("Edit with:"), TQString::null, 0 );
if ( !dlg.exec() )
return false;
offer = dlg.service();
@@ -85,8 +85,8 @@ bool EditorWatcher::start()
if ( mInotifyFd > 0 ) {
mInotifyWatch = inotify_add_watch( mInotifyFd, mUrl.path().latin1(), IN_CLOSE | IN_OPEN | IN_MODIFY );
if ( mInotifyWatch >= 0 ) {
- QSocketNotifier *sn = new QSocketNotifier( mInotifyFd, QSocketNotifier::Read, this );
- connect( sn, SIGNAL(activated(int)), SLOT(inotifyEvent()) );
+ TQSocketNotifier *sn = new TQSocketNotifier( mInotifyFd, TQSocketNotifier::Read, this );
+ connect( sn, TQT_SIGNAL(activated(int)), TQT_SLOT(inotifyEvent()) );
mHaveInotify = true;
mFileModified = false;
}
@@ -96,10 +96,10 @@ bool EditorWatcher::start()
#endif
// start the editor
- QStringList params = KRun::processDesktopExec( *offer, list, false );
+ TQStringList params = KRun::processDesktopExec( *offer, list, false );
mEditor = new KProcess( this );
*mEditor << params;
- connect( mEditor, SIGNAL(processExited(KProcess*)), SLOT(editorExited()) );
+ connect( mEditor, TQT_SIGNAL(processExited(KProcess*)), TQT_SLOT(editorExited()) );
if ( !mEditor->start() )
return false;
mEditorRunning = true;
diff --git a/kmail/editorwatcher.h b/kmail/editorwatcher.h
index d7fc9e3e..e0d60905 100644
--- a/kmail/editorwatcher.h
+++ b/kmail/editorwatcher.h
@@ -21,9 +21,9 @@
#include <kurl.h>
-#include <qdatetime.h>
-#include <qobject.h>
-#include <qtimer.h>
+#include <tqdatetime.h>
+#include <tqobject.h>
+#include <tqtimer.h>
class KProcess;
@@ -39,7 +39,7 @@ class EditorWatcher : public QObject
{
Q_OBJECT
public:
- EditorWatcher( const KURL &url, const QString &mimeType, bool openWith, QObject *parent = 0 );
+ EditorWatcher( const KURL &url, const TQString &mimeType, bool openWith, TQObject *parent = 0 );
bool start();
bool fileChanged() const { return mFileModified; }
signals:
@@ -52,7 +52,7 @@ class EditorWatcher : public QObject
private:
KURL mUrl;
- QString mMimeType;
+ TQString mMimeType;
bool mOpenWith;
KProcess *mEditor;
@@ -65,8 +65,8 @@ class EditorWatcher : public QObject
bool mFileModified;
- QTimer mTimer;
- QTime mEditTime;
+ TQTimer mTimer;
+ TQTime mEditTime;
bool mError;
bool mDone;
diff --git a/kmail/encodingdetector.cpp b/kmail/encodingdetector.cpp
index e5881d6f..60913c9f 100644
--- a/kmail/encodingdetector.cpp
+++ b/kmail/encodingdetector.cpp
@@ -37,8 +37,8 @@
#include "encodingdetector_ja_p.h"
-#include <qregexp.h>
-#include <qtextcodec.h>
+#include <tqregexp.h>
+#include <tqtextcodec.h>
#include <kglobal.h>
#include <kcharsets.h>
@@ -320,7 +320,7 @@ enum MIB
MibUtf16LE = 1014
};
-static bool is16Bit(QTextCodec* codec)
+static bool is16Bit(TQTextCodec* codec)
{
switch (codec->mibEnum())
{
@@ -337,10 +337,10 @@ static bool is16Bit(QTextCodec* codec)
class EncodingDetectorPrivate
{
public:
- QTextCodec *m_codec;
- QTextDecoder *m_decoder; // utf16
- QTextCodec *m_defaultCodec;
- QCString m_storeDecoderName;
+ TQTextCodec *m_codec;
+ TQTextDecoder *m_decoder; // utf16
+ TQTextCodec *m_defaultCodec;
+ TQCString m_storeDecoderName;
EncodingDetector::EncodingChoiceSource m_source;
EncodingDetector::AutoDetectScript m_autoDetectLanguage;
@@ -351,10 +351,10 @@ public:
bool m_analyzeCalled : 1; //for decode()
int m_multiByte;
- QCString m_bufferForDefferedEncDetection;
+ TQCString m_bufferForDefferedEncDetection;
EncodingDetectorPrivate()
- : m_codec(QTextCodec::codecForMib(MibLatin1))
+ : m_codec(TQTextCodec::codecForMib(MibLatin1))
, m_decoder(m_codec->makeDecoder())
, m_defaultCodec(m_codec)
, m_source(EncodingDetector::DefaultEncoding)
@@ -367,7 +367,7 @@ public:
{
}
- EncodingDetectorPrivate(QTextCodec* codec,EncodingDetector::EncodingChoiceSource source, EncodingDetector::AutoDetectScript script)
+ EncodingDetectorPrivate(TQTextCodec* codec,EncodingDetector::EncodingChoiceSource source, EncodingDetector::AutoDetectScript script)
: m_codec(codec)
, m_decoder(m_codec->makeDecoder())
, m_defaultCodec(m_codec)
@@ -388,7 +388,7 @@ public:
};
-static QCString automaticDetectionForArabic( const unsigned char* ptr, int size )
+static TQCString automaticDetectionForArabic( const unsigned char* ptr, int size )
{
for ( int i = 0; i < size; ++i ) {
if ( ( ptr[ i ] >= 0x80 && ptr[ i ] <= 0x9F ) || ptr[ i ] == 0xA1 || ptr[ i ] == 0xA2 || ptr[ i ] == 0xA3
@@ -402,7 +402,7 @@ static QCString automaticDetectionForArabic( const unsigned char* ptr, int size
return "iso-8859-6";
}
-static QCString automaticDetectionForBaltic( const unsigned char* ptr, int size )
+static TQCString automaticDetectionForBaltic( const unsigned char* ptr, int size )
{
for ( int i = 0; i < size; ++i ) {
if ( ( ptr[ i ] >= 0x80 && ptr[ i ] <= 0x9E ) )
@@ -415,9 +415,9 @@ static QCString automaticDetectionForBaltic( const unsigned char* ptr, int size
return "iso-8859-13";
}
-static QCString automaticDetectionForCentralEuropean(const unsigned char* ptr, int size )
+static TQCString automaticDetectionForCentralEuropean(const unsigned char* ptr, int size )
{
- QCString charset;
+ TQCString charset;
for ( int i = 0; i < size; ++i ) {
if ( ptr[ i ] >= 0x80 && ptr[ i ] <= 0x9F ) {
if ( ptr[ i ] == 0x81 || ptr[ i ] == 0x83 || ptr[ i ] == 0x90 || ptr[ i ] == 0x98 )
@@ -447,7 +447,7 @@ static QCString automaticDetectionForCentralEuropean(const unsigned char* ptr, i
return charset.data();
}
-static QCString automaticDetectionForCyrillic( const unsigned char* ptr, int size)
+static TQCString automaticDetectionForCyrillic( const unsigned char* ptr, int size)
{
#ifdef DECODE_DEBUG
kWarning() << "EncodingDetector: Cyr heuristics";
@@ -565,8 +565,8 @@ static QCString automaticDetectionForCyrillic( const unsigned char* ptr, int siz
if (ibm866_small_range>cp1251_small_range+koi_small_range)
return "ibm866";
-// QCString koi_string = "koi8-u";
-// QCString cp1251_string = "cp1251";
+// TQCString koi_string = "koi8-u";
+// TQCString cp1251_string = "cp1251";
if (cp1251_st==0 && koi_st>1)
koi_score+=10;
@@ -643,7 +643,7 @@ static QCString automaticDetectionForCyrillic( const unsigned char* ptr, int siz
}
-static QCString automaticDetectionForGreek( const unsigned char* ptr, int size )
+static TQCString automaticDetectionForGreek( const unsigned char* ptr, int size )
{
for ( int i = 0; i < size; ++i ) {
if ( ptr[ i ] == 0x80 || ( ptr[ i ] >= 0x82 && ptr[ i ] <= 0x87 ) || ptr[ i ] == 0x89 || ptr[ i ] == 0x8B
@@ -656,7 +656,7 @@ static QCString automaticDetectionForGreek( const unsigned char* ptr, int size )
return "iso-8859-7";
}
-static QCString automaticDetectionForHebrew( const unsigned char* ptr, int size )
+static TQCString automaticDetectionForHebrew( const unsigned char* ptr, int size )
{
for ( int i = 0; i < size; ++i ) {
if ( ptr[ i ] == 0x80 || ( ptr[ i ] >= 0x82 && ptr[ i ] <= 0x89 ) || ptr[ i ] == 0x8B
@@ -672,7 +672,7 @@ static QCString automaticDetectionForHebrew( const unsigned char* ptr, int size
return "iso-8859-8-i";
}
-static QCString automaticDetectionForJapanese( const unsigned char* ptr, int size )
+static TQCString automaticDetectionForJapanese( const unsigned char* ptr, int size )
{
JapaneseCode kc;
@@ -692,7 +692,7 @@ static QCString automaticDetectionForJapanese( const unsigned char* ptr, int siz
return "";
}
-static QCString automaticDetectionForTurkish( const unsigned char* ptr, int size )
+static TQCString automaticDetectionForTurkish( const unsigned char* ptr, int size )
{
for ( int i = 0; i < size; ++i ) {
if ( ptr[ i ] == 0x80 || ( ptr[ i ] >= 0x82 && ptr[ i ] <= 0x8C ) || ( ptr[ i ] >= 0x91 && ptr[ i ] <= 0x9C ) || ptr[ i ] == 0x9F ) {
@@ -703,7 +703,7 @@ static QCString automaticDetectionForTurkish( const unsigned char* ptr, int size
return "iso-8859-9";
}
-static QCString automaticDetectionForWesternEuropean( const unsigned char* ptr, int size )
+static TQCString automaticDetectionForWesternEuropean( const unsigned char* ptr, int size )
{
uint nonansi_count=0;
for (int i=0; i<size; ++i)
@@ -765,7 +765,7 @@ static void skipComment(const char *&ptr, const char *pEnd)
}
// Returns the position of the encoding string.
-static int findXMLEncoding(const QCString &str, int &encodingLength)
+static int findXMLEncoding(const TQCString &str, int &encodingLength)
{
int len = str.length();
int pos = str.find("encoding");
@@ -878,7 +878,7 @@ EncodingDetector::EncodingDetector() : d(new EncodingDetectorPrivate)
{
}
-EncodingDetector::EncodingDetector(QTextCodec* codec, EncodingChoiceSource source, AutoDetectScript script) :
+EncodingDetector::EncodingDetector(TQTextCodec* codec, EncodingChoiceSource source, AutoDetectScript script) :
d(new EncodingDetectorPrivate(codec,source,script))
{
}
@@ -913,20 +913,20 @@ bool EncodingDetector::visuallyOrdered() const
return d->m_visualRTL;
}
-// const QTextCodec* EncodingDetector::codec() const
+// const TQTextCodec* EncodingDetector::codec() const
// {
// return d->m_codec;
// }
-QTextDecoder* EncodingDetector::decoder()
+TQTextDecoder* EncodingDetector::decoder()
{
return d->m_decoder;
}
bool EncodingDetector::setEncoding(const char *_encoding, EncodingChoiceSource type)
{
- QTextCodec *codec;
- QCString enc(_encoding);
+ TQTextCodec *codec;
+ TQCString enc(_encoding);
if(/*enc.isNull() || */enc.isEmpty())
{
if (type==DefaultEncoding)
@@ -960,8 +960,8 @@ bool EncodingDetector::setEncoding(const char *_encoding, EncodingChoiceSource t