diff --git a/src/memodialog.ui b/src/memodialog.ui index 82fccbb..ce76908 100644 --- a/src/memodialog.ui +++ b/src/memodialog.ui @@ -6,22 +6,15 @@ 0 0 - 520 - 168 + 542 + 202 Memo - - - - Memo - - - - + 0 / 512 @@ -31,7 +24,7 @@ - + Qt::Horizontal @@ -41,9 +34,40 @@ - + + + + + Memo + + + + + + + + + Add From Address + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + diff --git a/src/sendtab.cpp b/src/sendtab.cpp index 1950f52..66f988d 100644 --- a/src/sendtab.cpp +++ b/src/sendtab.cpp @@ -292,13 +292,18 @@ void MainWindow::memoButtonClicked(int number) { }); + // Insert From Address button + QObject::connect(memoDialog.btnInsertFrom, &QPushButton::clicked, [=] () { + memoDialog.memoTxt->setPlainText(memoDialog.memoTxt->toPlainText() + + "\n" + tr("From") + ":\n" + ui->inputsCombo->currentText()); + }); + memoDialog.memoTxt->setPlainText(currentMemo); memoDialog.memoTxt->setFocus(); if (dialog.exec() == QDialog::Accepted) { memoTxt->setText(memoDialog.memoTxt->toPlainText()); } - } void MainWindow::removeExtraAddresses() {