Changeset View
Changeset View
Standalone View
Standalone View
plugins/notifications/sendreplydialog.cpp
Context not available. | |||||
29 | 29 | | |||
---|---|---|---|---|---|
30 | SendReplyDialog::SendReplyDialog(const QString& originalMessage, const QString& replyId, const QString& topicName, QWidget* parent) | 30 | SendReplyDialog::SendReplyDialog(const QString& originalMessage, const QString& replyId, const QString& topicName, QWidget* parent) | ||
31 | : QDialog(parent) | 31 | : QDialog(parent) | ||
32 | , mReplyId(replyId) | 32 | , m_replyId(replyId) | ||
33 | { | 33 | { | ||
34 | QVBoxLayout* layout = new QVBoxLayout; | 34 | QVBoxLayout* layout = new QVBoxLayout; | ||
35 | 35 | | |||
Context not available. | |||||
38 | textView->setText(topicName + ": \n" + originalMessage); | 38 | textView->setText(topicName + ": \n" + originalMessage); | ||
39 | layout->addWidget(textView); | 39 | layout->addWidget(textView); | ||
40 | 40 | | |||
41 | mTextEdit = new QTextEdit(this); | 41 | m_textEdit = new QTextEdit(this); | ||
42 | layout->addWidget(mTextEdit); | 42 | layout->addWidget(m_textEdit); | ||
43 | 43 | | |||
44 | QPushButton* sendButton = new QPushButton(i18n("Send"), this); | 44 | QPushButton* sendButton = new QPushButton(i18n("Send"), this); | ||
45 | connect(sendButton, &QAbstractButton::clicked, this, &SendReplyDialog::sendButtonClicked); | 45 | connect(sendButton, &QAbstractButton::clicked, this, &SendReplyDialog::sendButtonClicked); | ||
Context not available. | |||||
54 | 54 | | |||
55 | void SendReplyDialog::sendButtonClicked() | 55 | void SendReplyDialog::sendButtonClicked() | ||
56 | { | 56 | { | ||
57 | Q_EMIT sendReply(mReplyId, mTextEdit->toPlainText()); | 57 | Q_EMIT sendReply(m_replyId, m_textEdit->toPlainText()); | ||
58 | close(); | 58 | close(); | ||
59 | } | 59 | } | ||
60 | 60 | | |||
Context not available. |