Refactor MemoEdit
This commit is contained in:
22
src/memoedit.h
Normal file
22
src/memoedit.h
Normal 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
|
||||
Reference in New Issue
Block a user