add sending ability for HushChat tab

This commit is contained in:
DenioD
2020-04-27 23:10:42 +02:00
parent b79334a497
commit 38a1d6966a
5 changed files with 253 additions and 20 deletions

View File

@@ -116,4 +116,22 @@ class ChatModel
void addMessage(ChatItem item);
void addMessage(long timestamp, ChatItem item);
};
class ChatMemoEdit : public QPlainTextEdit
{
public:
ChatMemoEdit(QWidget* parent);
void setMaxLen(int len);
void setLenDisplayLabel(QLabel* label);
void setSendChatButton(QPushButton* button);
void includeReplyTo(QString replyToAddress);
void updateDisplay();
private:
int maxlen = 512;
QLabel* lenDisplayLabel = nullptr;
QPushButton* sendChatButton = nullptr;
};
#endif