From 023e0e82dd8bf6421d12492a2dd25534fc43ad31 Mon Sep 17 00:00:00 2001 From: zautrix Date: Sat, 06 Nov 2004 23:30:02 +0000 Subject: many ompi fixes --- (limited to 'kmicromail/koprefsdialog.cpp') diff --git a/kmicromail/koprefsdialog.cpp b/kmicromail/koprefsdialog.cpp index c878fc9..4abf859 100644 --- a/kmicromail/koprefsdialog.cpp +++ b/kmicromail/koprefsdialog.cpp @@ -141,13 +141,16 @@ void KOPrefsDialog::setupMailTab() KPrefsDialogWidBool* ttt = addWidBool(i18n("View mail as html"), &(KOPrefs::instance()->mViewAsHtml),topFrame); - topLayout->addMultiCellWidget(ttt->checkBox(),0,0,0,1); - - + topLayout->addMultiCellWidget(ttt->checkBox(),0,0,0,1); + + ttt = addWidBool(i18n("Send mails later"), - &(KOPrefs::instance()->mSendLater),topFrame); - topLayout->addMultiCellWidget(ttt->checkBox(),1,1,0,1); - + &(KOPrefs::instance()->mSendLater),topFrame); + topLayout->addMultiCellWidget(ttt->checkBox(),1,1,0,1); + mCodecEdit = new QLineEdit(topFrame); + topLayout->addMultiCellWidget( new QLabel(mCodecEdit, i18n("User defined codec for new mails:"), topFrame),2,2,0,1); + topLayout->addMultiCellWidget(mCodecEdit,3,3,0,1); + topLayout->addMultiCellWidget( new QLabel(0, i18n("Example: iso-8859-15"), topFrame),4,4,0,1); } void KOPrefsDialog::setupFontsTab() @@ -195,13 +198,15 @@ void KOPrefsDialog::usrReadConfig() mNameEdit->setText(KOPrefs::instance()->mName); mEmailEdit->setText(KOPrefs::instance()->mEmail); + mCodecEdit->setText(KOPrefs::instance()->mSendCodec); kdelibcfg->readConfig(); } void KOPrefsDialog::usrWriteConfig() { KOPrefs::instance()->mName = mNameEdit->text(); KOPrefs::instance()->mEmail = mEmailEdit->text(); - kdelibcfg->writeConfig(); + KOPrefs::instance()->mSendCodec = mCodecEdit->text(); + kdelibcfg->writeConfig(); } -- cgit v0.9.0.2