summaryrefslogtreecommitdiff
path: root/noncore/unsupported/mail2/composer.cpp
authortille <tille>2002-06-19 12:41:33 (UTC)
committer tille <tille>2002-06-19 12:41:33 (UTC)
commit2bcd7302e4e156ad5f389b23c01a690917abee01 (patch) (side-by-side diff)
tree25770523cbb36e7152f8a3a4c1650afab6fc45da /noncore/unsupported/mail2/composer.cpp
parentb55f69a46fd27ce26235029f702c0f3942fde68c (diff)
downloadopie-2bcd7302e4e156ad5f389b23c01a690917abee01.zip
opie-2bcd7302e4e156ad5f389b23c01a690917abee01.tar.gz
opie-2bcd7302e4e156ad5f389b23c01a690917abee01.tar.bz2
added ofiledialog for attachments, but did not yet remove attachdiag
Diffstat (limited to 'noncore/unsupported/mail2/composer.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/unsupported/mail2/composer.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/noncore/unsupported/mail2/composer.cpp b/noncore/unsupported/mail2/composer.cpp
index 72a7242..03dacae 100644
--- a/noncore/unsupported/mail2/composer.cpp
+++ b/noncore/unsupported/mail2/composer.cpp
@@ -2,28 +2,30 @@
#include <qmessagebox.h>
#include <qpopupmenu.h>
#include <qcombobox.h>
#include <qlineedit.h>
#include <qaction.h>
#include <qtimer.h>
#include <qlabel.h>
#include <qapplication.h>
#include <qpe/resource.h>
#include <qpe/config.h>
+#include <opie/ofiledialog.h>
+//#include "attachdiag.h"
+
#include "addresspicker.h"
#include "listviewplus.h"
#include "smtphandler.h"
-#include "attachdiag.h"
#include "composer.h"
#include "rename.h"
AttachViewItem::AttachViewItem(QListView *parent, Attachment &attachment)
: QListViewItem(parent), _attachment(attachment)
{
setPixmap(0, _attachment.docLnk().pixmap().isNull() ? Resource::loadPixmap("UnknownDocument-14") : _attachment.docLnk().pixmap());
setText(0, _attachment.newName().isEmpty() ? _attachment.fileName() : _attachment.newName());
setText(1, _attachment.description());
}
Composer::Composer(QWidget *parent, const char *name, WFlags fl, bool sendQueue)
@@ -385,25 +387,26 @@ void Composer::slotOpenAddressPicker()
}
} else if (to->isHidden() && cc->isHidden() && !bcc->isHidden()) {
if (bcc->text().isEmpty()) {
bcc->setText(AddressPicker::getNames());
} else {
bcc->setText(bcc->text() + ", " + AddressPicker::getNames());
}
}
}
void Composer::slotAddAttach()
{
- DocLnk lnk = AttachDiag::getFile(this);
+ DocLnk lnk = OFileDialog::getOpenFileName( 1,"/");
+// DocLnk lnk = AttachDiag::getFile(this);
if (lnk.name().isEmpty()) return;
Attachment attachment;
attachment.setFileName(lnk.file());
attachment.setNewName(lnk.name());
attachment.setDocLnk(lnk);
(void) new AttachViewItem(attachView, attachment);
}
void Composer::slotDelAttach()
{