28 lines
599 B
C++
28 lines
599 B
C++
// Copyright 2019-2023 The Hush developers
|
|
// Released under the GPLv3
|
|
#ifndef MEMOEDIT_H
|
|
#define MEMOEDIT_H
|
|
|
|
#include "precompiled.h"
|
|
|
|
class MemoEdit : public QPlainTextEdit {
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
MemoEdit(QWidget* parent);
|
|
|
|
void setMaxLen(int len);
|
|
void setLenDisplayLabel(QLabel* label);
|
|
void setAcceptButton(QPushButton* button);
|
|
void includeReplyTo(QString replyToAddress);
|
|
void updateDisplay();
|
|
|
|
private:
|
|
int maxlen = 512;
|
|
QLabel* lenDisplayLabel = nullptr;
|
|
QPushButton* acceptButton = nullptr;
|
|
};
|
|
|
|
#endif // MEMOEDIT_H
|