19 lines
384 B
C++
19 lines
384 B
C++
#include "EmailDetails.hpp"
|
|
|
|
EmailDetails::EmailDetails(QWidget *parent)
|
|
: QWidget(parent) {
|
|
t = new QTextEdit;
|
|
|
|
auto *lay = new QVBoxLayout;
|
|
|
|
lay->addWidget(t);
|
|
setLayout(lay);
|
|
|
|
resize(800, 600);
|
|
}
|
|
|
|
void EmailDetails::setMail(const Email &m) {
|
|
setWindowTitle(QString::fromStdString(m.title()));
|
|
t->setPlainText(QString::fromStdString(m.message()));
|
|
}
|