equal
deleted
inserted
replaced
37 ** |
37 ** |
38 ** $QT_END_LICENSE$ |
38 ** $QT_END_LICENSE$ |
39 ** |
39 ** |
40 ****************************************************************************/ |
40 ****************************************************************************/ |
41 #include "messagingex.h" |
41 #include "messagingex.h" |
42 #include "QMessageFilter.h" |
42 #include "qmessagefilter.h" |
43 #include <QFileDialog> |
43 #include <QFileDialog> |
44 |
44 |
45 MessagingEx::MessagingEx(QWidget* parent) |
45 MessagingEx::MessagingEx(QWidget* parent) |
46 : QMainWindow(parent) |
46 : QMainWindow(parent) |
47 { |
47 { |
65 statusAccountComboBox->addItem(QString("%1 - %2").arg(i+1).arg(account.name()),account.id().toString()); |
65 statusAccountComboBox->addItem(QString("%1 - %2").arg(i+1).arg(account.name()),account.id().toString()); |
66 senderAccountComboBox->addItem(QString("%1 - %2").arg(i+1).arg(account.name()),account.id().toString()); |
66 senderAccountComboBox->addItem(QString("%1 - %2").arg(i+1).arg(account.name()),account.id().toString()); |
67 priorityAccountComboBox->addItem(QString("%1 - %2").arg(i+1).arg(account.name()),account.id().toString()); |
67 priorityAccountComboBox->addItem(QString("%1 - %2").arg(i+1).arg(account.name()),account.id().toString()); |
68 } |
68 } |
69 connect(accountComboBox_2,SIGNAL(currentIndexChanged(int)),this,SLOT(sortParentAccountId())); |
69 connect(accountComboBox_2,SIGNAL(currentIndexChanged(int)),this,SLOT(sortParentAccountId())); |
|
70 |
|
71 timestampdateTimeEdit->setDateTime(QDateTime::currentDateTime()); |
|
72 receptiondateTimeEdit->setDateTime(QDateTime::currentDateTime()); |
70 } |
73 } |
71 |
74 |
72 void MessagingEx::createMenus() |
75 void MessagingEx::createMenus() |
73 { |
76 { |
74 QAction* sendAction = new QAction(tr("Send"), this); |
77 QAction* sendAction = new QAction(tr("Send"), this); |
781 QStandardItemModel* standardModel = new QStandardItemModel(this); |
784 QStandardItemModel* standardModel = new QStandardItemModel(this); |
782 messageListView->setModel(standardModel); |
785 messageListView->setModel(standardModel); |
783 stackedWidget->setCurrentIndex(12); |
786 stackedWidget->setCurrentIndex(12); |
784 for (int i=0; i < ids.count(); i++) { |
787 for (int i=0; i < ids.count(); i++) { |
785 QMessage message = m_manager.message(ids[i]); |
788 QMessage message = m_manager.message(ids[i]); |
786 QString from = message.from().recipient(); |
789 QString from = message.from().addressee(); |
787 QString subject = message.subject(); |
790 QString subject = message.subject(); |
788 if (subject.length() == 0) { |
791 if (subject.length() == 0) { |
789 subject = message.textContent(); |
792 subject = message.textContent(); |
790 } |
793 } |
791 // QString body = QString(message.textContent().left(20)); |
794 // QString body = QString(message.textContent().left(20)); |