summaryrefslogtreecommitdiffstats
path: root/kmail/configuredialog.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-02-16 20:17:18 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-02-16 20:17:18 +0000
commitf4fae92b6768541e2952173c3d4b09040f95bf7e (patch)
treed8c5d93232235cd635f3310b4d95490df181ba2d /kmail/configuredialog.cpp
parent125c0a08265b75a133644d3b55f47e37c919f45d (diff)
downloadtdepim-f4fae92b6768541e2952173c3d4b09040f95bf7e.tar.gz
tdepim-f4fae92b6768541e2952173c3d4b09040f95bf7e.zip
Moved kpilot from kdepim to applications, as the core Trinity libraries should not contain hardware-dependent software
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1221127 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kmail/configuredialog.cpp')
-rw-r--r--kmail/configuredialog.cpp218
1 files changed, 109 insertions, 109 deletions
diff --git a/kmail/configuredialog.cpp b/kmail/configuredialog.cpp
index 4378c325d..c5824eadc 100644
--- a/kmail/configuredialog.cpp
+++ b/kmail/configuredialog.cpp
@@ -167,7 +167,7 @@ namespace {
void populateButtonGroup( TQButtonGroup * g, const EnumConfigEntry & e ) {
g->setTitle( i18n( e.desc ) );
- g->layout()->setSpacing( KDialog::spacingHint() );
+ g->tqlayout()->setSpacing( KDialog::spacingHint() );
for ( int i = 0 ; i < e.numItems ; ++i )
g->insert( new TQRadioButton( i18n( e.items[i].desc ), g ), i );
}
@@ -233,9 +233,9 @@ ConfigureDialog::ConfigureDialog( TQWidget *parent, const char *name, bool modal
// the KCMultiDialog starts with the size of the first kcm, not
// the largest one. This way at least after the first showing of
// the largest kcm the size is kept.
- KConfigGroup geometry( KMKernel::config(), "Geometry" );
- int width = geometry.readNumEntry( "ConfigureDialogWidth" );
- int height = geometry.readNumEntry( "ConfigureDialogHeight" );
+ KConfigGroup tqgeometry( KMKernel::config(), "Geometry" );
+ int width = tqgeometry.readNumEntry( "ConfigureDialogWidth" );
+ int height = tqgeometry.readNumEntry( "ConfigureDialogHeight" );
if ( width != 0 && height != 0 ) {
setMinimumSize( width, height );
}
@@ -243,9 +243,9 @@ ConfigureDialog::ConfigureDialog( TQWidget *parent, const char *name, bool modal
}
void ConfigureDialog::hideEvent( TQHideEvent *ev ) {
- KConfigGroup geometry( KMKernel::config(), "Geometry" );
- geometry.writeEntry( "ConfigureDialogWidth", width() );
- geometry.writeEntry( "ConfigureDialogHeight",height() );
+ KConfigGroup tqgeometry( KMKernel::config(), "Geometry" );
+ tqgeometry.writeEntry( "ConfigureDialogWidth", width() );
+ tqgeometry.writeEntry( "ConfigureDialogHeight",height() );
KDialogBase::hideEvent( ev );
}
@@ -281,7 +281,7 @@ void ConfigureDialog::slotUser2() {
// * *
// *************************************************************
TQString IdentityPage::helpAnchor() const {
- return TQString::fromLatin1("configure-identity");
+ return TQString::tqfromLatin1("configure-identity");
}
IdentityPage::IdentityPage( TQWidget * parent, const char * name )
@@ -480,7 +480,7 @@ void IdentityPage::slotRenameIdentity( TQListViewItem * i,
TQString newName = s.stripWhiteSpace();
if ( !newName.isEmpty() &&
- !kmkernel->identityManager()->shadowIdentities().contains( newName ) ) {
+ !kmkernel->identityManager()->shadowIdentities().tqcontains( newName ) ) {
KPIM::Identity & ident = item->identity();
ident.setIdentityName( newName );
emit changed(true);
@@ -552,7 +552,7 @@ void IdentityPage::slotUpdateTransportCombo( const TQStringList & sl )
// * *
// *************************************************************
TQString AccountsPage::helpAnchor() const {
- return TQString::fromLatin1("configure-accounts");
+ return TQString::tqfromLatin1("configure-accounts");
}
AccountsPage::AccountsPage( TQWidget * parent, const char * name )
@@ -578,7 +578,7 @@ AccountsPage::AccountsPage( TQWidget * parent, const char * name )
}
TQString AccountsPage::SendingTab::helpAnchor() const {
- return TQString::fromLatin1("configure-accounts-sending");
+ return TQString::tqfromLatin1("configure-accounts-sending");
}
AccountsPageSendingTab::AccountsPageSendingTab( TQWidget * parent, const char * name )
@@ -597,9 +597,9 @@ AccountsPageSendingTab::AccountsPageSendingTab( TQWidget * parent, const char *
// label: zero stretch ### FIXME more
vlay->addWidget( new TQLabel( i18n("Outgoing accounts (add at least one):"), this ) );
- // hbox layout: stretch 10, spacing inherited from vlay
+ // hbox tqlayout: stretch 10, spacing inherited from vlay
hlay = new TQHBoxLayout();
- vlay->addLayout( hlay, 10 ); // high stretch b/c of the groupbox's sizeHint
+ vlay->addLayout( hlay, 10 ); // high stretch b/c of the groupbox's tqsizeHint
// transport list: left widget in hlay; stretch 1
// ### FIXME: allow inline renaming of the account:
@@ -614,7 +614,7 @@ AccountsPageSendingTab::AccountsPageSendingTab( TQWidget * parent, const char *
this, TQT_SLOT(slotModifySelectedTransport()) );
hlay->addWidget( mTransportList, 1 );
- // a vbox layout for the buttons: zero stretch, spacing inherited from hlay
+ // a vbox tqlayout for the buttons: zero stretch, spacing inherited from hlay
btn_vlay = new TQVBoxLayout( hlay );
// "add..." button: stretch 0
@@ -653,8 +653,8 @@ AccountsPageSendingTab::AccountsPageSendingTab( TQWidget * parent, const char *
i18n("Common Options"), this );
vlay->addWidget(group);
- // a grid layout for the contents of the "common options" group box
- glay = new TQGridLayout( group->layout(), 5, 3, KDialog::spacingHint() );
+ // a grid tqlayout for the contents of the "common options" group box
+ glay = new TQGridLayout( group->tqlayout(), 5, 3, KDialog::spacingHint() );
glay->setColStretch( 2, 10 );
// "confirm before send" check box:
@@ -787,10 +787,10 @@ void AccountsPage::SendingTab::slotAddTransport()
KMTransportInfo *transportInfo = new KMTransportInfo();
switch ( transportType ) {
case 0: // smtp
- transportInfo->type = TQString::fromLatin1("smtp");
+ transportInfo->type = TQString::tqfromLatin1("smtp");
break;
case 1: // sendmail
- transportInfo->type = TQString::fromLatin1("sendmail");
+ transportInfo->type = TQString::tqfromLatin1("sendmail");
transportInfo->name = i18n("Sendmail");
transportInfo->host = _PATH_SENDMAIL; // ### FIXME: use const, not #define
break;
@@ -1026,7 +1026,7 @@ void AccountsPage::SendingTab::doLoadOther() {
buffer[255] = 0;
else
buffer[0] = 0;
- str = TQString::fromLatin1( *buffer ? buffer : "localhost" );
+ str = TQString::tqfromLatin1( *buffer ? buffer : "localhost" );
}
mDefaultDomainEdit->setText( str );
}
@@ -1053,7 +1053,7 @@ void AccountsPage::SendingTab::save() {
}
TQString AccountsPage::ReceivingTab::helpAnchor() const {
- return TQString::fromLatin1("configure-accounts-receiving");
+ return TQString::tqfromLatin1("configure-accounts-receiving");
}
AccountsPageReceivingTab::AccountsPageReceivingTab( TQWidget * parent, const char * name )
@@ -1071,7 +1071,7 @@ AccountsPageReceivingTab::AccountsPageReceivingTab( TQWidget * parent, const cha
// label: zero stretch
vlay->addWidget( new TQLabel( i18n("Incoming accounts (add at least one):"), this ) );
- // hbox layout: stretch 10, spacing inherited from vlay
+ // hbox tqlayout: stretch 10, spacing inherited from vlay
hlay = new TQHBoxLayout();
vlay->addLayout( hlay, 10 ); // high stretch to suppress groupbox's growing
@@ -1088,7 +1088,7 @@ AccountsPageReceivingTab::AccountsPageReceivingTab( TQWidget * parent, const cha
this, TQT_SLOT(slotModifySelectedAccount()) );
hlay->addWidget( mAccountList, 1 );
- // a vbox layout for the buttons: zero stretch, spacing inherited from hlay
+ // a vbox tqlayout for the buttons: zero stretch, spacing inherited from hlay
btn_vlay = new TQVBoxLayout( hlay );
// "add..." button: stretch 0
@@ -1123,11 +1123,11 @@ AccountsPageReceivingTab::AccountsPageReceivingTab( TQWidget * parent, const cha
// "New Mail Notification" group box: stretch 0
group = new TQVGroupBox( i18n("New Mail Notification"), this );
vlay->addWidget( group );
- group->layout()->setSpacing( KDialog::spacingHint() );
+ group->tqlayout()->setSpacing( KDialog::spacingHint() );
// "beep on new mail" check box:
mBeepNewMailCheck = new TQCheckBox(i18n("&Beep"), group );
- mBeepNewMailCheck->setSizePolicy( TQSizePolicy( TQSizePolicy::MinimumExpanding,
+ mBeepNewMailCheck->tqsetSizePolicy( TQSizePolicy( TQSizePolicy::MinimumExpanding,
TQSizePolicy::Fixed ) );
connect( mBeepNewMailCheck, TQT_SIGNAL( stateChanged( int ) ),
this, TQT_SLOT( slotEmitChanged( void ) ) );
@@ -1135,7 +1135,7 @@ AccountsPageReceivingTab::AccountsPageReceivingTab( TQWidget * parent, const cha
// "Detailed new mail notification" check box
mVerboseNotificationCheck =
new TQCheckBox( i18n( "Deta&iled new mail notification" ), group );
- mVerboseNotificationCheck->setSizePolicy( TQSizePolicy( TQSizePolicy::MinimumExpanding,
+ mVerboseNotificationCheck->tqsetSizePolicy( TQSizePolicy( TQSizePolicy::MinimumExpanding,
TQSizePolicy::Fixed ) );
TQToolTip::add( mVerboseNotificationCheck,
i18n( "Show for each folder the number of newly arrived "
@@ -1147,7 +1147,7 @@ AccountsPageReceivingTab::AccountsPageReceivingTab( TQWidget * parent, const cha
// "Other Actions" button:
mOtherNewMailActionsButton = new TQPushButton( i18n("Other Actio&ns"), group );
- mOtherNewMailActionsButton->setSizePolicy( TQSizePolicy( TQSizePolicy::Fixed,
+ mOtherNewMailActionsButton->tqsetSizePolicy( TQSizePolicy( TQSizePolicy::Fixed,
TQSizePolicy::Fixed ) );
connect( mOtherNewMailActionsButton, TQT_SIGNAL(clicked()),
this, TQT_SLOT(slotEditNotifications()) );
@@ -1223,13 +1223,13 @@ void AccountsPage::ReceivingTab::slotAddAccount() {
default:
// ### FIXME: How should this happen???
- // replace with assert.
+ // tqreplace with assert.
KMessageBox::sorry( this, i18n("Unknown account type selected") );
return;
}
KMAccount *account
- = kmkernel->acctMgr()->create( TQString::fromLatin1( accountType ) );
+ = kmkernel->acctMgr()->create( TQString::tqfromLatin1( accountType ) );
if ( !account ) {
// ### FIXME: Give the user more information. Is this error
// recoverable?
@@ -1478,7 +1478,7 @@ void AccountsPage::ReceivingTab::save() {
// * *
// *************************************************************
TQString AppearancePage::helpAnchor() const {
- return TQString::fromLatin1("configure-appearance");
+ return TQString::tqfromLatin1("configure-appearance");
}
AppearancePage::AppearancePage( TQWidget * parent, const char * name )
@@ -1525,7 +1525,7 @@ AppearancePage::AppearancePage( TQWidget * parent, const char * name )
TQString AppearancePage::FontsTab::helpAnchor() const {
- return TQString::fromLatin1("configure-appearance-fonts");
+ return TQString::tqfromLatin1("configure-appearance-fonts");
}
static const struct {
@@ -1694,7 +1694,7 @@ void AppearancePage::FontsTab::save() {
}
TQString AppearancePage::ColorsTab::helpAnchor() const {
- return TQString::fromLatin1("configure-appearance-colors");
+ return TQString::tqfromLatin1("configure-appearance-colors");
}
@@ -1857,7 +1857,7 @@ void AppearancePage::ColorsTab::save() {
}
TQString AppearancePage::LayoutTab::helpAnchor() const {
- return TQString::fromLatin1("configure-appearance-layout");
+ return TQString::tqfromLatin1("configure-appearance-tqlayout");
}
static const EnumConfigEntryItem folderListModes[] = {
@@ -1941,33 +1941,33 @@ AppearancePageLayoutTab::AppearancePageLayoutTab( TQWidget * parent, const char
void AppearancePage::LayoutTab::doLoadOther() {
const KConfigGroup reader( KMKernel::config(), "Reader" );
- const KConfigGroup geometry( KMKernel::config(), "Geometry" );
+ const KConfigGroup tqgeometry( KMKernel::config(), "Geometry" );
- loadWidget( mFolderListGroup, geometry, folderListMode );
+ loadWidget( mFolderListGroup, tqgeometry, folderListMode );
loadWidget( mMIMETreeLocationGroup, reader, mimeTreeLocation );
loadWidget( mMIMETreeModeGroup, reader, mimeTreeMode );
- loadWidget( mReaderWindowModeGroup, geometry, readerWindowMode );
+ loadWidget( mReaderWindowModeGroup, tqgeometry, readerWindowMode );
mFavoriteFolderViewCB->setChecked( GlobalSettings::self()->enableFavoriteFolderView() );
}
void AppearancePage::LayoutTab::installProfile( KConfig * profile ) {
const KConfigGroup reader( profile, "Reader" );
- const KConfigGroup geometry( profile, "Geometry" );
+ const KConfigGroup tqgeometry( profile, "Geometry" );
- loadProfile( mFolderListGroup, geometry, folderListMode );
+ loadProfile( mFolderListGroup, tqgeometry, folderListMode );
loadProfile( mMIMETreeLocationGroup, reader, mimeTreeLocation );
loadProfile( mMIMETreeModeGroup, reader, mimeTreeMode );
- loadProfile( mReaderWindowModeGroup, geometry, readerWindowMode );
+ loadProfile( mReaderWindowModeGroup, tqgeometry, readerWindowMode );
}
void AppearancePage::LayoutTab::save() {
KConfigGroup reader( KMKernel::config(), "Reader" );
- KConfigGroup geometry( KMKernel::config(), "Geometry" );
+ KConfigGroup tqgeometry( KMKernel::config(), "Geometry" );
- saveButtonGroup( mFolderListGroup, geometry, folderListMode );
+ saveButtonGroup( mFolderListGroup, tqgeometry, folderListMode );
saveButtonGroup( mMIMETreeLocationGroup, reader, mimeTreeLocation );
saveButtonGroup( mMIMETreeModeGroup, reader, mimeTreeMode );
- saveButtonGroup( mReaderWindowModeGroup, geometry, readerWindowMode );
+ saveButtonGroup( mReaderWindowModeGroup, tqgeometry, readerWindowMode );
GlobalSettings::self()->setEnableFavoriteFolderView( mFavoriteFolderViewCB->isChecked() );
}
@@ -1976,7 +1976,7 @@ void AppearancePage::LayoutTab::save() {
//
TQString AppearancePage::HeadersTab::helpAnchor() const {
- return TQString::fromLatin1("configure-appearance-headers");
+ return TQString::tqfromLatin1("configure-appearance-headers");
}
static const struct {
@@ -2004,7 +2004,7 @@ AppearancePageHeadersTab::AppearancePageHeadersTab( TQWidget * parent, const cha
// "General Options" group:
group = new TQVButtonGroup( i18n( "General Options" ), this );
- group->layout()->setSpacing( KDialog::spacingHint() );
+ group->tqlayout()->setSpacing( KDialog::spacingHint() );
mMessageSizeCheck = new TQCheckBox( i18n("Display messa&ge sizes"), group );
@@ -2030,7 +2030,7 @@ AppearancePageHeadersTab::AppearancePageHeadersTab( TQWidget * parent, const cha
// "Message Header Threading Options" group:
mNestingPolicy =
new TQVButtonGroup( i18n("Threaded Message List Options"), this );
- mNestingPolicy->layout()->setSpacing( KDialog::spacingHint() );
+ mNestingPolicy->tqlayout()->setSpacing( KDialog::spacingHint() );
mNestingPolicy->insert(
new TQRadioButton( i18n("Always &keep threads open"),
@@ -2053,11 +2053,11 @@ AppearancePageHeadersTab::AppearancePageHeadersTab( TQWidget * parent, const cha
// "Date Display" group:
mDateDisplay = new TQVButtonGroup( i18n("Date Display"), this );
- mDateDisplay->layout()->setSpacing( KDialog::spacingHint() );
+ mDateDisplay->tqlayout()->setSpacing( KDialog::spacingHint() );
for ( int i = 0 ; i < numDateDisplayConfig ; i++ ) {
TQString buttonLabel = i18n(dateDisplayConfig[i].displayName);
- if ( buttonLabel.contains("%1") )
+ if ( buttonLabel.tqcontains("%1") )
buttonLabel = buttonLabel.arg( DateFormatter::formatCurrentDate( dateDisplayConfig[i].dateDisplay ) );
radio = new TQRadioButton( buttonLabel, mDateDisplay );
mDateDisplay->insert( radio, i );
@@ -2094,8 +2094,8 @@ AppearancePageHeadersTab::AppearancePageHeadersTab( TQWidget * parent, const cha
"<li>ss - the seconds with a leading zero (00-59)</li>"
"<li>z - the milliseconds without leading zeroes (0-999)</li>"
"<li>zzz - the milliseconds with leading zeroes (000-999)</li>"
- "<li>AP - switch to AM/PM display. AP will be replaced by either \"AM\" or \"PM\".</li>"
- "<li>ap - switch to AM/PM display. ap will be replaced by either \"am\" or \"pm\".</li>"
+ "<li>AP - switch to AM/PM display. AP will be tqreplaced by either \"AM\" or \"PM\".</li>"
+ "<li>ap - switch to AM/PM display. ap will be tqreplaced by either \"am\" or \"pm\".</li>"
"<li>Z - time zone in numeric form (-0500)</li>"
"</ul>"
"<p><strong>All other input characters will be ignored."
@@ -2115,16 +2115,16 @@ AppearancePageHeadersTab::AppearancePageHeadersTab( TQWidget * parent, const cha
void AppearancePage::HeadersTab::doLoadOther() {
KConfigGroup general( KMKernel::config(), "General" );
- KConfigGroup geometry( KMKernel::config(), "Geometry" );
+ KConfigGroup tqgeometry( KMKernel::config(), "Geometry" );
// "General Options":
- mNestedMessagesCheck->setChecked( geometry.readBoolEntry( "nestedMessages", false ) );
+ mNestedMessagesCheck->setChecked( tqgeometry.readBoolEntry( "nestedMessages", false ) );
mMessageSizeCheck->setChecked( general.readBoolEntry( "showMessageSize", false ) );
mCryptoIconsCheck->setChecked( general.readBoolEntry( "showCryptoIcons", false ) );
mAttachmentCheck->setChecked( general.readBoolEntry( "showAttachmentIcon", true ) );
// "Message Header Threading Options":
- int num = geometry.readNumEntry( "nestingPolicy", 3 );
+ int num = tqgeometry.readNumEntry( "nestingPolicy", 3 );
if ( num < 0 || num > 3 ) num = 3;
mNestingPolicy->setButton( num );
@@ -2152,10 +2152,10 @@ void AppearancePage::HeadersTab::setDateDisplay( int num, const TQString & forma
void AppearancePage::HeadersTab::installProfile( KConfig * profile ) {
KConfigGroup general( profile, "General" );
- KConfigGroup geometry( profile, "Geometry" );
+ KConfigGroup tqgeometry( profile, "Geometry" );
- if ( geometry.hasKey( "nestedMessages" ) )
- mNestedMessagesCheck->setChecked( geometry.readBoolEntry( "nestedMessages" ) );
+ if ( tqgeometry.hasKey( "nestedMessages" ) )
+ mNestedMessagesCheck->setChecked( tqgeometry.readBoolEntry( "nestedMessages" ) );
if ( general.hasKey( "showMessageSize" ) )
mMessageSizeCheck->setChecked( general.readBoolEntry( "showMessageSize" ) );
@@ -2164,8 +2164,8 @@ void AppearancePage::HeadersTab::installProfile( KConfig * profile ) {
if ( general.hasKey( "showAttachmentIcon" ) )
mAttachmentCheck->setChecked( general.readBoolEntry( "showAttachmentIcon" ) );
- if ( geometry.hasKey( "nestingPolicy" ) ) {
- int num = geometry.readNumEntry( "nestingPolicy" );
+ if ( tqgeometry.hasKey( "nestingPolicy" ) ) {
+ int num = tqgeometry.readNumEntry( "nestingPolicy" );
if ( num < 0 || num > 3 ) num = 3;
mNestingPolicy->setButton( num );
}
@@ -2177,16 +2177,16 @@ void AppearancePage::HeadersTab::installProfile( KConfig * profile ) {
void AppearancePage::HeadersTab::save() {
KConfigGroup general( KMKernel::config(), "General" );
- KConfigGroup geometry( KMKernel::config(), "Geometry" );
+ KConfigGroup tqgeometry( KMKernel::config(), "Geometry" );
- if ( geometry.readBoolEntry( "nestedMessages", false )
+ if ( tqgeometry.readBoolEntry( "nestedMessages", false )
!= mNestedMessagesCheck->isChecked() ) {
int result = KMessageBox::warningContinueCancel( this,
i18n("Changing the global threading setting will override "
"all folder specific values."),
TQString::null, KStdGuiItem::cont(), "threadOverride" );
if ( result == KMessageBox::Continue ) {
- geometry.writeEntry( "nestedMessages", mNestedMessagesCheck->isChecked() );
+ tqgeometry.writeEntry( "nestedMessages", mNestedMessagesCheck->isChecked() );
// remove all threadMessagesOverride keys from all [Folder-*] groups:
TQStringList groups = KMKernel::config()->groupList().grep( TQRegExp("^Folder-") );
kdDebug(5006) << "groups.count() == " << groups.count() << endl;
@@ -2197,7 +2197,7 @@ void AppearancePage::HeadersTab::save() {
}
}
- geometry.writeEntry( "nestingPolicy",
+ tqgeometry.writeEntry( "nestingPolicy",
mNestingPolicy->id( mNestingPolicy->selected() ) );
general.writeEntry( "showMessageSize", mMessageSizeCheck->isChecked() );
general.writeEntry( "showCryptoIcons", mCryptoIconsCheck->isChecked() );
@@ -2246,7 +2246,7 @@ static const BoolConfigEntry showCurrentTime = {
};
TQString AppearancePage::ReaderTab::helpAnchor() const {
- return TQString::fromLatin1("configure-appearance-reader");
+ return TQString::tqfromLatin1("configure-appearance-reader");
}
AppearancePageReaderTab::AppearancePageReaderTab( TQWidget * parent,
@@ -2276,7 +2276,7 @@ AppearancePageReaderTab::AppearancePageReaderTab( TQWidget * parent,
connect( mShowSpamStatusCheck, TQT_SIGNAL ( stateChanged( int ) ),
this, TQT_SLOT( slotEmitChanged() ) );
- // "replace smileys by emoticons" check box;
+ // "tqreplace smileys by emoticons" check box;
populateCheckBox( mShowEmoticonsCheck = new TQCheckBox( this ), showEmoticons );
vlay->addWidget( mShowEmoticonsCheck );
connect( mShowEmoticonsCheck, TQT_SIGNAL ( stateChanged( int ) ),
@@ -2367,7 +2367,7 @@ void AppearancePage::ReaderTab::readCurrentFallbackCodec()
TQStringList::ConstIterator it( encodings.begin() );
TQStringList::ConstIterator end( encodings.end() );
TQString currentEncoding = GlobalSettings::self()->fallbackCharacterEncoding();
- currentEncoding = currentEncoding.replace( "iso ", "iso-", false );
+ currentEncoding = currentEncoding.tqreplace( "iso ", "iso-", false );
///kdDebug(5006) << "Looking for encoding: " << currentEncoding << endl;
int i = 0;
int indexOfLatin9 = 0;
@@ -2472,7 +2472,7 @@ void AppearancePage::ReaderTab::installProfile( KConfig * /* profile */ ) {
TQString AppearancePage::SystemTrayTab::helpAnchor() const {
- return TQString::fromLatin1("configure-appearance-systemtray");
+ return TQString::tqfromLatin1("configure-appearance-systemtray");
}
AppearancePageSystemTrayTab::AppearancePageSystemTrayTab( TQWidget * parent,
@@ -2490,7 +2490,7 @@ AppearancePageSystemTrayTab::AppearancePageSystemTrayTab( TQWidget * parent,
// System tray modes
mSystemTrayGroup = new TQVButtonGroup( i18n("System Tray Mode"), this );
- mSystemTrayGroup->layout()->setSpacing( KDialog::spacingHint() );
+ mSystemTrayGroup->tqlayout()->setSpacing( KDialog::spacingHint() );
vlay->addWidget( mSystemTrayGroup );
connect( mSystemTrayGroup, TQT_SIGNAL( clicked( int ) ),
this, TQT_SLOT( slotEmitChanged( void ) ) );
@@ -2537,7 +2537,7 @@ void AppearancePage::SystemTrayTab::save() {
// *************************************************************
TQString ComposerPage::helpAnchor() const {
- return TQString::fromLatin1("configure-composer");
+ return TQString::tqfromLatin1("configure-composer");
}
ComposerPage::ComposerPage( TQWidget * parent, const char * name )
@@ -2596,7 +2596,7 @@ ComposerPage::ComposerPage( TQWidget * parent, const char * name )
}
TQString ComposerPage::GeneralTab::helpAnchor() const {
- return TQString::fromLatin1("configure-composer-general");
+ return TQString::tqfromLatin1("configure-composer-general");
}
ComposerPageGeneralTab::ComposerPageGeneralTab( TQWidget * parent, const char * name )
@@ -2766,7 +2766,7 @@ ComposerPageGeneralTab::ComposerPageGeneralTab( TQWidget * parent, const char *
// The "external editor" group:
group = new TQVGroupBox( i18n("External Editor"), this );
- group->layout()->setSpacing( KDialog::spacingHint() );
+ group->tqlayout()->setSpacing( KDialog::spacingHint() );
mExternalEditorCheck = new TQCheckBox(
GlobalSettings::self()->useExternalEditorItem()->label(),
@@ -2796,7 +2796,7 @@ ComposerPageGeneralTab::ComposerPageGeneralTab( TQWidget * parent, const char *
connect( mExternalEditorCheck, TQT_SIGNAL(toggled(bool)),
mEditorRequester, TQT_SLOT(setEnabled(bool)) );
- label = new TQLabel( i18n("<b>%f</b> will be replaced with the "
+ label = new TQLabel( i18n("<b>%f</b> will be tqreplaced with the "
"filename to edit."), group );
label->setEnabled( false ); // see above
connect( mExternalEditorCheck, TQT_SIGNAL(toggled(bool)),
@@ -2910,7 +2910,7 @@ void ComposerPage::GeneralTab::slotConfigureCompletionOrder( )
}
TQString ComposerPage::PhrasesTab::helpAnchor() const {
- return TQString::fromLatin1("configure-composer-phrases");
+ return TQString::tqfromLatin1("configure-composer-phrases");
}
ComposerPagePhrasesTab::ComposerPagePhrasesTab( TQWidget * parent, const char * name )
@@ -3020,7 +3020,7 @@ void ComposerPage::PhrasesTab::saveActiveLanguageItem() {
void ComposerPage::PhrasesTab::slotNewLanguage()
{
- NewLanguageDialog dialog( mLanguageList, parentWidget(), "New", true );
+ NewLanguageDialog dialog( mLanguageList, tqparentWidget(), "New", true );
if ( dialog.exec() == TQDialog::Accepted ) slotAddNewLanguage( dialog.language() );
}
@@ -3122,7 +3122,7 @@ void ComposerPage::PhrasesTab::save() {
}
TQString ComposerPage::TemplatesTab::helpAnchor() const {
- return TQString::fromLatin1("configure-composer-templates");
+ return TQString::tqfromLatin1("configure-composer-templates");
}
ComposerPageTemplatesTab::ComposerPageTemplatesTab( TQWidget * parent, const char * name )
@@ -3146,7 +3146,7 @@ void ComposerPage::TemplatesTab::save() {
}
TQString ComposerPage::CustomTemplatesTab::helpAnchor() const {
- return TQString::fromLatin1("configure-composer-custom-templates");
+ return TQString::tqfromLatin1("configure-composer-custom-templates");
}
ComposerPageCustomTemplatesTab::ComposerPageCustomTemplatesTab( TQWidget * parent, const char * name )
@@ -3170,7 +3170,7 @@ void ComposerPage::CustomTemplatesTab::save() {
}
TQString ComposerPage::SubjectTab::helpAnchor() const {
- return TQString::fromLatin1("configure-composer-subject");
+ return TQString::tqfromLatin1("configure-composer-subject");
}
ComposerPageSubjectTab::ComposerPageSubjectTab( TQWidget * parent, const char * name )
@@ -3185,12 +3185,12 @@ ComposerPageSubjectTab::ComposerPageSubjectTab( TQWidget * parent, const char *
vlay = new TQVBoxLayout( this, KDialog::marginHint(), KDialog::spacingHint() );
group = new TQVGroupBox( i18n("Repl&y Subject Prefixes"), this );
- group->layout()->setSpacing( KDialog::spacingHint() );
+ group->tqlayout()->setSpacing( KDialog::spacingHint() );
// row 0: help text:
label = new TQLabel( i18n("Recognize any sequence of the following prefixes\n"
"(entries are case-insensitive regular expressions):"), group );
- label->setAlignment( AlignLeft|WordBreak );
+ label->tqsetAlignment( AlignLeft|WordBreak );
// row 1, string list editor:
SimpleStringListEditor::ButtonCode buttonCode =
@@ -3203,7 +3203,7 @@ ComposerPageSubjectTab::ComposerPageSubjectTab( TQWidget * parent, const char *
connect( mReplyListEditor, TQT_SIGNAL( changed( void ) ),
this, TQT_SLOT( slotEmitChanged( void ) ) );
- // row 2: "replace [...]" check box:
+ // row 2: "tqreplace [...]" check box:
mReplaceReplyPrefixCheck = new TQCheckBox(
GlobalSettings::self()->replaceReplyPrefixItem()->label(),
group, "kcfg_ReplaceReplyPrefix" );
@@ -3214,12 +3214,12 @@ ComposerPageSubjectTab::ComposerPageSubjectTab( TQWidget * parent, const char *
group = new TQVGroupBox( i18n("For&ward Subject Prefixes"), this );
- group->layout()->setSpacing( KDialog::marginHint() );
+ group->tqlayout()->setSpacing( KDialog::marginHint() );
// row 0: help text:
label= new TQLabel( i18n("Recognize any sequence of the following prefixes\n"
"(entries are case-insensitive regular expressions):"), group );
- label->setAlignment( AlignLeft|WordBreak );
+ label->tqsetAlignment( AlignLeft|WordBreak );
// row 1: string list editor
mForwardListEditor =
@@ -3231,7 +3231,7 @@ ComposerPageSubjectTab::ComposerPageSubjectTab( TQWidget * parent, const char *
connect( mForwardListEditor, TQT_SIGNAL( changed( void ) ),
this, TQT_SLOT( slotEmitChanged( void ) ) );
- // row 3: "replace [...]" check box:
+ // row 3: "tqreplace [...]" check box:
mReplaceForwardPrefixCheck = new TQCheckBox(
GlobalSettings::self()->replaceForwardPrefixItem()->label(),
group, "kcfg_ReplaceForwardPrefix" );
@@ -3254,7 +3254,7 @@ void ComposerPage::SubjectTab::save() {
}
TQString ComposerPage::CharsetTab::helpAnchor() const {
- return TQString::fromLatin1("configure-composer-charset");
+ return TQString::tqfromLatin1("configure-composer-charset");
}
ComposerPageCharsetTab::ComposerPageCharsetTab( TQWidget * parent, const char * name )
@@ -3268,8 +3268,8 @@ ComposerPageCharsetTab::ComposerPageCharsetTab( TQWidget * parent, const char *
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);
+ "tqcontains all required characters."), this );
+ label->tqsetAlignment( WordBreak);
vlay->addWidget( label );
mCharsetListEditor =
@@ -3297,13 +3297,13 @@ void ComposerPage::CharsetTab::slotVerifyCharset( TQString & charset ) {
// KCharsets::codecForName("us-ascii") returns "iso-8859-1" (cf. Bug #49812)
// therefore we have to treat this case specially
- if ( charset.lower() == TQString::fromLatin1("us-ascii") ) {
- charset = TQString::fromLatin1("us-ascii");
+ if ( charset.lower() == TQString::tqfromLatin1("us-ascii") ) {
+ charset = TQString::tqfromLatin1("us-ascii");
return;
}
- if ( charset.lower() == TQString::fromLatin1("locale") ) {
- charset = TQString::fromLatin1("%1 (locale)")
+ if ( charset.lower() == TQString::tqfromLatin1("locale") ) {
+ charset = TQString::tqfromLatin1("%1 (locale)")
.arg( TQCString( kmkernel->networkCodec()->mimeName() ).lower() );
return;
}
@@ -3311,7 +3311,7 @@ void ComposerPage::CharsetTab::slotVerifyCharset( TQString & charset ) {
bool ok = false;
TQTextCodec *codec = KGlobal::charsets()->codecForName( charset, ok );
if ( ok && codec ) {
- charset = TQString::fromLatin1( codec->mimeName() ).lower();
+ charset = TQString::tqfromLatin1( codec->mimeName() ).lower();
return;
}
@@ -3325,7 +3325,7 @@ void ComposerPage::CharsetTab::doLoadOther() {
TQStringList charsets = composer.readListEntry( "pref-charsets" );
for ( TQStringList::Iterator it = charsets.begin() ;
it != charsets.end() ; ++it )
- if ( (*it) == TQString::fromLatin1("locale") ) {
+ if ( (*it) == TQString::tqfromLatin1("locale") ) {
TQCString cset = kmkernel->networkCodec()->mimeName();
KPIM::kAsciiToLower( cset.data() );
(*it) = TQString("%1 (locale)").arg( cset );
@@ -3349,7 +3349,7 @@ void ComposerPage::CharsetTab::save() {
}
TQString ComposerPage::HeadersTab::helpAnchor() const {
- return TQString::fromLatin1("configure-composer-headers");
+ return TQString::tqfromLatin1("configure-composer-headers");
}
ComposerPageHeadersTab::ComposerPageHeadersTab( TQWidget * parent, const char * name )
@@ -3564,7 +3564,7 @@ void ComposerPage::HeadersTab::save() {
}
TQString ComposerPage::AttachmentsTab::helpAnchor() const {
- return TQString::fromLatin1("configure-composer-attachments");
+ return TQString::tqfromLatin1("configure-composer-attachments");
}
ComposerPageAttachmentsTab::ComposerPageAttachmentsTab( TQWidget * parent,
@@ -3601,7 +3601,7 @@ ComposerPageAttachmentsTab::ComposerPageAttachmentsTab( TQWidget * parent,
// "Attachment key words" label and string list editor
label = new TQLabel( i18n("Recognize any of the following key words as "
"intention to attach a file:"), this );
- label->setAlignment( AlignLeft|WordBreak );
+ label->tqsetAlignment( AlignLeft|WordBreak );
vlay->addWidget( label );
SimpleStringListEditor::ButtonCode buttonCode =
@@ -3629,11 +3629,11 @@ void ComposerPage::AttachmentsTab::doLoadFromGlobalSettings() {
TQStringList attachWordsList = GlobalSettings::self()->attachmentKeywords();
if ( attachWordsList.isEmpty() ) {
// default value
- attachWordsList << TQString::fromLatin1("attachment")
- << TQString::fromLatin1("attached");
- if ( TQString::fromLatin1("attachment") != i18n("attachment") )
+ attachWordsList << TQString::tqfromLatin1("attachment")
+ << TQString::tqfromLatin1("attached");
+ if ( TQString::tqfromLatin1("attachment") != i18n("attachment") )
attachWordsList << i18n("attachment");
- if ( TQString::fromLatin1("attached") != i18n("attached") )
+ if ( TQString::tqfromLatin1("attached") != i18n("attached") )
attachWordsList << i18n("attached");
}
@@ -3669,7 +3669,7 @@ void ComposerPageAttachmentsTab::slotOutlookCompatibleClicked()
// * *
// *************************************************************
TQString SecurityPage::helpAnchor() const {
- return TQString::fromLatin1("configure-security");
+ return TQString::tqfromLatin1("configure-security");
}
SecurityPage::SecurityPage( TQWidget * parent, const char * name )
@@ -3716,7 +3716,7 @@ void SecurityPage::installProfile( KConfig * profile ) {
}
TQString SecurityPage::GeneralTab::helpAnchor() const {
- return TQString::fromLatin1("configure-security-reading");
+ return TQString::tqfromLatin1("configure-security-reading");
}
SecurityPageGeneralTab::SecurityPageGeneralTab( TQWidget * parent, const char * name )
@@ -3798,7 +3798,7 @@ SecurityPageGeneralTab::SecurityPageGeneralTab( TQWidget * parent, const char *
// "HTML Messages" group box:
group = new TQVGroupBox( i18n( "HTML Messages" ), this );
- group->layout()->setSpacing( KDialog::spacingHint() );
+ group->tqlayout()->setSpacing( KDialog::spacingHint() );
mHtmlMailCheck = new TQCheckBox( i18n("Prefer H&TML to plain text"), group );
TQWhatsThis::add( mHtmlMailCheck, htmlWhatsThis );
@@ -3822,14 +3822,14 @@ SecurityPageGeneralTab::SecurityPageGeneralTab( TQWidget * parent, const char *
// encrypted messages group
group = new TQVGroupBox( i18n("Encrypted Messages"), this );
- group->layout()->setSpacing( KDialog::spacingHint() );
+ group->tqlayout()->setSpacing( KDialog::spacingHint() );
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 TQVGroupBox( i18n("Message Disposition Notifications"), this );
- group->layout()->setSpacing( KDialog::spacingHint() );
+ group->tqlayout()->setSpacing( KDialog::spacingHint() );
// "ignore", "ask", "deny", "always send" radiobutton line:
@@ -3897,7 +3897,7 @@ SecurityPageGeneralTab::SecurityPageGeneralTab( TQWidget * parent, const char *
// "Attached keys" group box:
group = new TQVGroupBox( i18n( "Certificate && Key Bundle Attachments" ), this );
- group->layout()->setSpacing( KDialog::spacingHint() );
+ group->tqlayout()->setSpacing( KDialog::spacingHint() );
mAutomaticallyImportAttachedKeysCheck = new TQCheckBox( i18n("Automatically import keys and certificates"), group );
connect( mAutomaticallyImportAttachedKeysCheck, TQT_SIGNAL(toggled(bool)), TQT_SLOT(slotEmitChanged()) );
@@ -3993,7 +3993,7 @@ void SecurityPage::GeneralTab::save() {
TQString SecurityPage::ComposerCryptoTab::helpAnchor() const {
- return TQString::fromLatin1("configure-security-composing");
+ return TQString::tqfromLatin1("configure-security-composing");
}
SecurityPageComposerCryptoTab::SecurityPageComposerCryptoTab( TQWidget * parent, const char * name )
@@ -4068,7 +4068,7 @@ void SecurityPage::ComposerCryptoTab::save() {
}
TQString SecurityPage::WarningTab::helpAnchor() const {
- return TQString::fromLatin1("configure-security-warnings");
+ return TQString::tqfromLatin1("configure-security-warnings");
}
SecurityPageWarningTab::SecurityPageWarningTab( TQWidget * parent, const char * name )
@@ -4177,7 +4177,7 @@ void SecurityPage::WarningTab::slotReenableAllWarningsClicked() {
////
TQString SecurityPage::SMimeTab::helpAnchor() const {
- return TQString::fromLatin1("configure-security-smime-validation");
+ return TQString::tqfromLatin1("configure-security-smime-validation");
}
SecurityPageSMimeTab::SecurityPageSMimeTab( TQWidget * parent, const char * name )
@@ -4495,7 +4495,7 @@ Kleo::CryptoConfigEntry* SMIMECryptoConfigEntries::configEntry( const char* comp
////
TQString SecurityPage::CryptPlugTab::helpAnchor() const {
- return TQString::fromLatin1("configure-security-crypto-backends");
+ return TQString::tqfromLatin1("configure-security-crypto-backends");
}
SecurityPageCryptPlugTab::SecurityPageCryptPlugTab( TQWidget * parent, const char * name )
@@ -4528,7 +4528,7 @@ void SecurityPage::CryptPlugTab::save() {
// * *
// *************************************************************
TQString MiscPage::helpAnchor() const {
- return TQString::fromLatin1("configure-misc");
+ return TQString::tqfromLatin1("configure-misc");
}
MiscPage::MiscPage( TQWidget * parent, const char * name )
@@ -4543,7 +4543,7 @@ MiscPage::MiscPage( TQWidget * parent, const char * name )
}
TQString MiscPage::FolderTab::helpAnchor() const {
- return TQString::fromLatin1("configure-misc-folders");
+ return TQString::tqfromLatin1("configure-misc-folders");
}
MiscPageFolderTab::MiscPageFolderTab( TQWidget * parent, const char * name )
@@ -4797,7 +4797,7 @@ void MiscPage::FolderTab::save() {
}
TQString MiscPage::GroupwareTab::helpAnchor() const {
- return TQString::fromLatin1("configure-misc-groupware");
+ return TQString::tqfromLatin1("configure-misc-groupware");
}
MiscPageGroupwareTab::MiscPageGroupwareTab( TQWidget* parent, const char* name )