From 3511d69609dbfb4b67958fd0ebeb718a674077d9 Mon Sep 17 00:00:00 2001 From: Konstantin Akimov Date: Thu, 26 May 2022 16:17:39 +0700 Subject: [PATCH] qt: adds more setPlaceholderText by form .ui instead code aproach --- src/qt/forms/governancelist.ui | 3 +++ src/qt/forms/masternodelist.ui | 3 +++ src/qt/forms/receivecoinsdialog.ui | 6 ++++++ src/qt/forms/signverifymessagedialog.ui | 6 +++--- src/qt/governancelist.cpp | 1 - src/qt/masternodelist.cpp | 1 - src/qt/receivecoinsdialog.cpp | 3 --- src/qt/signverifymessagedialog.cpp | 5 ----- 8 files changed, 15 insertions(+), 13 deletions(-) diff --git a/src/qt/forms/governancelist.ui b/src/qt/forms/governancelist.ui index c9766e0693..69e0a4c8b2 100644 --- a/src/qt/forms/governancelist.ui +++ b/src/qt/forms/governancelist.ui @@ -63,6 +63,9 @@ Filter proposal list + + Filter by Title + diff --git a/src/qt/forms/masternodelist.ui b/src/qt/forms/masternodelist.ui index 51b72ad014..1eaa7d66e8 100644 --- a/src/qt/forms/masternodelist.ui +++ b/src/qt/forms/masternodelist.ui @@ -63,6 +63,9 @@ Filter masternode list + + Filter by any property (e.g. address or protx hash) + diff --git a/src/qt/forms/receivecoinsdialog.ui b/src/qt/forms/receivecoinsdialog.ui index 8a0233444e..27e0d3a5c7 100644 --- a/src/qt/forms/receivecoinsdialog.ui +++ b/src/qt/forms/receivecoinsdialog.ui @@ -49,6 +49,9 @@ An optional label to associate with the new receiving address. + + Enter a label to associate with the new receiving address + @@ -56,6 +59,9 @@ An optional message to attach to the payment request, which will be displayed when the request is opened.<br>Note: The message will not be sent with the payment over the Dash network. + + Enter a message to attach to the payment request + diff --git a/src/qt/forms/signverifymessagedialog.ui b/src/qt/forms/signverifymessagedialog.ui index 18936f5316..55deb5f350 100644 --- a/src/qt/forms/signverifymessagedialog.ui +++ b/src/qt/forms/signverifymessagedialog.ui @@ -119,7 +119,7 @@ Enter the message you want to sign here - Enter the message you want to sign here + Enter a message to be signed @@ -279,7 +279,7 @@ The signed message to verify - The signed message to verify + Enter a message to be verified @@ -289,7 +289,7 @@ The signature given when the message was signed - The signature given when the message was signed + Enter a signature for the message to be verified diff --git a/src/qt/governancelist.cpp b/src/qt/governancelist.cpp index c61f1089c1..5c0bade59c 100644 --- a/src/qt/governancelist.cpp +++ b/src/qt/governancelist.cpp @@ -312,7 +312,6 @@ GovernanceList::GovernanceList(QWidget* parent) : // Set up filtering. proposalModelProxy->setFilterKeyColumn(ProposalModel::Column::TITLE); // filter by title column... - ui->filterLineEdit->setPlaceholderText(tr("Filter by Title")); connect(ui->filterLineEdit, &QLineEdit::textChanged, proposalModelProxy, &QSortFilterProxyModel::setFilterFixedString); // Changes to number of rows should update proposal count display. diff --git a/src/qt/masternodelist.cpp b/src/qt/masternodelist.cpp index aeec0ac306..79a32638e6 100644 --- a/src/qt/masternodelist.cpp +++ b/src/qt/masternodelist.cpp @@ -84,7 +84,6 @@ MasternodeList::MasternodeList(QWidget* parent) : ui->tableWidgetMasternodesDIP3->setContextMenuPolicy(Qt::CustomContextMenu); - ui->filterLineEditDIP3->setPlaceholderText(tr("Filter by any property (e.g. address or protx hash)")); ui->checkBoxMyMasternodesOnly->setEnabled(false); QAction* copyProTxHashAction = new QAction(tr("Copy ProTx Hash"), this); diff --git a/src/qt/receivecoinsdialog.cpp b/src/qt/receivecoinsdialog.cpp index 321763bad0..fd040ff0c2 100644 --- a/src/qt/receivecoinsdialog.cpp +++ b/src/qt/receivecoinsdialog.cpp @@ -31,9 +31,6 @@ ReceiveCoinsDialog::ReceiveCoinsDialog(QWidget* parent) : ui->label_3}, GUIUtil::FontWeight::Normal, 15); GUIUtil::updateFonts(); - ui->reqLabel->setPlaceholderText(tr("Enter a label to associate with the new receiving address")); - ui->reqMessage->setPlaceholderText(tr("Enter a message to attach to the payment request")); - // context menu actions QAction *copyURIAction = new QAction(tr("Copy URI"), this); QAction* copyAddressAction = new QAction(tr("Copy address"), this); diff --git a/src/qt/signverifymessagedialog.cpp b/src/qt/signverifymessagedialog.cpp index 3428ea582a..57091062f7 100644 --- a/src/qt/signverifymessagedialog.cpp +++ b/src/qt/signverifymessagedialog.cpp @@ -33,11 +33,6 @@ SignVerifyMessageDialog::SignVerifyMessageDialog(QWidget* parent) : pageButtons->addButton(ui->btnVerifyMessage, pageButtons->buttons().size()); connect(pageButtons, QOverload::of(&QButtonGroup::buttonClicked), this, &SignVerifyMessageDialog::showPage); - ui->messageIn_SM->setPlaceholderText(tr("Enter a message to be signed")); - - ui->messageIn_VM->setPlaceholderText(tr("Enter a message to be verified")); - ui->signatureIn_VM->setPlaceholderText(tr("Enter a signature for the message to be verified")); - // These icons are needed on Mac also GUIUtil::setIcon(ui->addressBookButton_SM, "address-book"); GUIUtil::setIcon(ui->pasteButton_SM, "editpaste");