From 38aebf72748c47039ed9caaa7e5ad700d7cf4b88 Mon Sep 17 00:00:00 2001
From: Charles <18726788+csharpee@users.noreply.github.com>
Date: Mon, 8 Jun 2020 20:06:40 -0400
Subject: [PATCH] beginning integration formemo counter of limited characters;
changing from QLineEdit to QTextEdit for wrapping of text
---
src/chatmodel.cpp | 2 +-
src/contactrequest.ui | 15 ++++++++++++++-
2 files changed, 15 insertions(+), 2 deletions(-)
diff --git a/src/chatmodel.cpp b/src/chatmodel.cpp
index 2fcbbf6..c3f5f08 100644
--- a/src/chatmodel.cpp
+++ b/src/chatmodel.cpp
@@ -734,7 +734,7 @@ QObject::connect(request.newZaddr, &QPushButton::clicked, [&] () {
QString addr = request.zaddr->text();
QString myAddr = request.myzaddr->text().trimmed();
- QString memo = request.memorequest->text().trimmed();
+ QString memo = request.memorequest->toPlainText().trimmed();
QString avatar = QString(":/icons/res/") + request.comboBoxAvatar->currentText() + QString(".png");
QString label = request.labelRequest->text().trimmed();
diff --git a/src/contactrequest.ui b/src/contactrequest.ui
index d8ca0a6..91328db 100644
--- a/src/contactrequest.ui
+++ b/src/contactrequest.ui
@@ -432,12 +432,25 @@
-
-
+
Add a memo to your request
+ -
+
+
+
+ 0
+ 0
+
+
+
+ 0/235
+
+
+