Refactor MemoEdit

This commit is contained in:
Aditya Kulkarni
2019-03-22 12:44:40 -07:00
parent 38998078ba
commit 9dd6821178
10 changed files with 282 additions and 28 deletions

22
src/memoedit.h Normal file
View File

@@ -0,0 +1,22 @@
#ifndef MEMOEDIT_H
#define MEMOEDIT_H
#include "precompiled.h"
class MemoEdit : public QPlainTextEdit
{
public:
MemoEdit(QWidget* parent);
void setMaxLen(int len);
void setLenDisplayLabel(QLabel* label);
void setAcceptButton(QPushButton* button);
void includeReplyTo(QString replyToAddress);
private:
int maxlen = 512;
QLabel* lenDisplayLabel = nullptr;
QPushButton* acceptButton = nullptr;
};
#endif // MEMOEDIT_H