-rw-r--r-- | kmicromail/composemail.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/kmicromail/composemail.cpp b/kmicromail/composemail.cpp index 4bc4441..81d7b52 100644 --- a/kmicromail/composemail.cpp +++ b/kmicromail/composemail.cpp | |||
@@ -33,24 +33,24 @@ | |||
33 | #include <kfiledialog.h> | 33 | #include <kfiledialog.h> |
34 | //#include <qpe/resource.h> | 34 | //#include <qpe/resource.h> |
35 | #include <qpe/global.h> | 35 | #include <qpe/global.h> |
36 | //#include <qpe/contact.h> | 36 | //#include <qpe/contact.h> |
37 | 37 | ||
38 | 38 | ||
39 | #include <qcombobox.h> | 39 | #include <qcombobox.h> |
40 | #include <qcheckbox.h> | 40 | #include <qcheckbox.h> |
41 | #include <qiconset.h> | 41 | #include <qicon.h> |
42 | #include <qtimer.h> | 42 | #include <qtimer.h> |
43 | #include <qmessagebox.h> | 43 | #include <qmessagebox.h> |
44 | #include <qpushbutton.h> | 44 | #include <qpushbutton.h> |
45 | #include <qmultilineedit.h> | 45 | #include <q3multilineedit.h> |
46 | #include <qlabel.h> | 46 | #include <qlabel.h> |
47 | #include <qtabwidget.h> | 47 | #include <qtabwidget.h> |
48 | #include <qlistview.h> | 48 | #include <q3listview.h> |
49 | 49 | ||
50 | //using namespace Opie::Core; | 50 | //using namespace Opie::Core; |
51 | //using namespace Opie::Ui; | 51 | //using namespace Opie::Ui; |
52 | ComposeMail::ComposeMail( Settings *sett, QWidget *parent, const char *name, bool modal ) | 52 | ComposeMail::ComposeMail( Settings *sett, QWidget *parent, const char *name, bool modal ) |
53 | : ComposeMailUI( parent, name, modal ) | 53 | : ComposeMailUI( parent, name, modal ) |
54 | { | 54 | { |
55 | 55 | ||
56 | topLevelWidget()->setCaption( i18n("Compose mail - Click OK to send ->") ); | 56 | topLevelWidget()->setCaption( i18n("Compose mail - Click OK to send ->") ); |
@@ -120,33 +120,33 @@ ComposeMail::ComposeMail( Settings *sett, QWidget *parent, const char *name, boo | |||
120 | connect( ccButton, SIGNAL( clicked() ), SLOT( pickAddressCC() ) ); | 120 | connect( ccButton, SIGNAL( clicked() ), SLOT( pickAddressCC() ) ); |
121 | connect( bccButton, SIGNAL( clicked() ), SLOT( pickAddressBCC() ) ); | 121 | connect( bccButton, SIGNAL( clicked() ), SLOT( pickAddressBCC() ) ); |
122 | connect( replyButton, SIGNAL( clicked() ), SLOT( pickAddressReply() ) ); | 122 | connect( replyButton, SIGNAL( clicked() ), SLOT( pickAddressReply() ) ); |
123 | connect( addButton, SIGNAL( clicked() ), SLOT( addAttachment() ) ); | 123 | connect( addButton, SIGNAL( clicked() ), SLOT( addAttachment() ) ); |
124 | connect( deleteButton, SIGNAL( clicked() ), SLOT( removeAttachment() ) ); | 124 | connect( deleteButton, SIGNAL( clicked() ), SLOT( removeAttachment() ) ); |
125 | connect( SaveButton, SIGNAL( clicked() ), SLOT( saveAsDraft()) ); | 125 | connect( SaveButton, SIGNAL( clicked() ), SLOT( saveAsDraft()) ); |
126 | mMail = 0; | 126 | mMail = 0; |
127 | warnAttach = true; | 127 | warnAttach = true; |
128 | QIconSet icon; | 128 | QIcon icon; |
129 | //icon = SmallIcon("fileexport"); | 129 | //icon = SmallIcon("fileexport"); |
130 | icon = SmallIcon("filesave"); | 130 | icon = SmallIcon("filesave"); |
131 | SaveButton->setIconSet (icon ) ; | 131 | SaveButton->setIconSet (icon ) ; |
132 | if ( QApplication::desktop()->width() < 320 ) { | 132 | if ( QApplication::desktop()->width() < 320 ) { |
133 | SaveButton->setText ("") ; | 133 | SaveButton->setText ("") ; |
134 | SaveButton->setMaximumSize ( SaveButton->sizeHint().height(),SaveButton->sizeHint().height()) ; | 134 | SaveButton->setMaximumSize ( SaveButton->sizeHint().height(),SaveButton->sizeHint().height()) ; |
135 | } | 135 | } |
136 | else | 136 | else |
137 | SaveButton->setText (i18n("Save")); | 137 | SaveButton->setText (i18n("Save")); |
138 | #ifndef DESKTOP_VERSION | 138 | #ifndef DESKTOP_VERSION |
139 | QPEApplication::setStylusOperation( message, QPEApplication::RightOnHold ); | 139 | QPEApplication::setStylusOperation( message, QPEApplication::RightOnHold ); |
140 | QPEApplication::setStylusOperation( senderNameEdit, QPEApplication::RightOnHold ); | 140 | QPEApplication::setStylusOperation( senderNameEdit, QPEApplication::RightOnHold ); |
141 | QPEApplication::setStylusOperation( subjectLine, QPEApplication::RightOnHold ); | 141 | QPEApplication::setStylusOperation( subjectLine, QPEApplication::RightOnHold ); |
142 | #endif | 142 | #endif |
143 | message->setFont ( KOPrefs::instance()->mComposeFont ); | 143 | message->setFont ( KOPrefs::instance()->mComposeFont ); |
144 | message->setWordWrap (QMultiLineEdit::WidgetWidth); | 144 | message->setWordWrap (Q3MultiLineEdit::WidgetWidth); |
145 | if ( smtpAccounts.count() > 0 ) { | 145 | if ( smtpAccounts.count() > 0 ) { |
146 | fillValues( smtpAccountBox->currentItem() ); | 146 | fillValues( smtpAccountBox->currentItem() ); |
147 | } else { | 147 | } else { |
148 | QMessageBox::information( 0, i18n( "Problem" ), | 148 | QMessageBox::information( 0, i18n( "Problem" ), |
149 | i18n( "Please create an\nSMTP account first.\nThe SMTP is needed\nfor sending mail.\n" ), | 149 | i18n( "Please create an\nSMTP account first.\nThe SMTP is needed\nfor sending mail.\n" ), |
150 | i18n( "Ok" ) ); | 150 | i18n( "Ok" ) ); |
151 | return; | 151 | return; |
152 | } | 152 | } |
@@ -529,18 +529,18 @@ void ComposeMail::reEditMail(const RecMailP¤t) | |||
529 | subjectLine->setText( data->getSubject()); | 529 | subjectLine->setText( data->getSubject()); |
530 | toLine->setText(data->To().join(",")); | 530 | toLine->setText(data->To().join(",")); |
531 | ccLine->setText(data->CC().join(",")); | 531 | ccLine->setText(data->CC().join(",")); |
532 | bccLine->setText(data->Bcc().join(",")); | 532 | bccLine->setText(data->Bcc().join(",")); |
533 | replyLine->setText(data->Replyto()); | 533 | replyLine->setText(data->Replyto()); |
534 | setCharset(body->getCharset()); | 534 | setCharset(body->getCharset()); |
535 | } | 535 | } |
536 | 536 | ||
537 | AttachViewItem::AttachViewItem( QListView *parent, Attachment *att ) | 537 | AttachViewItem::AttachViewItem( Q3ListView *parent, Attachment *att ) |
538 | : QListViewItem( parent ) | 538 | : Q3ListViewItem( parent ) |
539 | { | 539 | { |
540 | attachment = att; | 540 | attachment = att; |
541 | if ( !attachment->getPixmap().isNull() ) | 541 | if ( !attachment->getPixmap().isNull() ) |
542 | setPixmap( 0,attachment->getPixmap() ); | 542 | setPixmap( 0,attachment->getPixmap() ); |
543 | setText( 0, att->getName().isEmpty() ? att->getFileName() : att->getName() ); | 543 | setText( 0, att->getName().isEmpty() ? att->getFileName() : att->getName() ); |
544 | setText( 1, QString::number( att->getSize() ) ); | 544 | setText( 1, QString::number( att->getSize() ) ); |
545 | } | 545 | } |
546 | 546 | ||