From 8084d002de5e310491eec7fac0713ef29d0cf30f Mon Sep 17 00:00:00 2001 From: conber Date: Tue, 06 Aug 2002 16:32:49 +0000 Subject: ui improvements --- (limited to 'noncore/unsupported/mail2/composer.cpp') diff --git a/noncore/unsupported/mail2/composer.cpp b/noncore/unsupported/mail2/composer.cpp index 52ebbdd..cb80299 100644 --- a/noncore/unsupported/mail2/composer.cpp +++ b/noncore/unsupported/mail2/composer.cpp @@ -12,8 +12,8 @@ #include #include -//#include "attachdiag.h" +#include "mailstatusbar.h" #include "addresspicker.h" #include "listviewplus.h" #include "smtphandler.h" @@ -32,7 +32,7 @@ Composer::Composer(QWidget *parent, const char *name, WFlags fl, bool sendQueue) : ComposerBase(parent, name, fl), _inLoop(false) { _sendQueued = sendQueue; - abort->setEnabled(false); + status->setStopEnabled(false); to->setFocus(); connect(sendmail, SIGNAL(activated()), SLOT(slotSendMail())); @@ -154,12 +154,12 @@ void Composer::slotSendMail() MailFactory::genMail(header, message, smail, this); if (header.isNull() || message.isNull()) return; // Aborted. - abort->setEnabled(true); + status->setStopEnabled(true); SmtpHandler *handler = new SmtpHandler(header, message, accountsLoaded[from->currentItem()], to->text()); connect(handler, SIGNAL(finished()), SLOT(slotSendFinished())); connect(handler, SIGNAL(error(const QString &)), SLOT(slotSendError(const QString &))); - connect(handler, SIGNAL(status(const QString &)), status, SLOT(setText(const QString &))); + connect(handler, SIGNAL(status(const QString &)), status, SLOT(setStatusText(const QString &))); } void Composer::slotSendQueued() @@ -248,7 +248,7 @@ void Composer::slotSendQueued() effSendCount++; connect(handler, SIGNAL(finished()), SLOT(slotSendQueuedFinished())); connect(handler, SIGNAL(error(const QString &)), SLOT(slotSendQueuedError(const QString &))); - connect(handler, SIGNAL(status(const QString &)), status, SLOT(setText(const QString &))); + connect(handler, SIGNAL(status(const QString &)), status, SLOT(setStatusText(const QString &))); } if (effSendCount < _toSend) @@ -305,7 +305,7 @@ void Composer::slotQueueMail() void Composer::slotSendError(const QString &error) { - status->setText(tr("Error occoured during sending.")); + status->setStatusText(tr("Error occoured during sending.")); QMessageBox::warning(this, tr("Error"), tr("

%1setText(tr("Error occoured during sending.")); + status->setStatusText(tr("Error occoured during sending.")); QMessageBox::warning(this, tr("Error"), tr("

%1The mail was sent successfully.

"), tr("Ok")); - status->setText(QString(0)); - abort->setEnabled(false); + status->setStatusText(QString(0)); + status->setStopEnabled(false); } void Composer::slotSendQueuedFinished() -- cgit v0.9.0.2