qt: Add missing placeholders (#3575)

* qt: Add more placeholder in ReceiveCoinsDialog

* qt: Add placeholder for filter line edit in MasternodeList

* qt: Add more placerholder in SignVerifyMessageDialog

* qt: Removes a dot

* qt: Adjust placeholder phrasing in ReceiveCoinsDialog

* Apply suggestions from code review

Co-authored-by: UdjinM6 <UdjinM6@users.noreply.github.com>

* qt: Align wording of placeholders with the corresponding tooltip

Co-authored-by: UdjinM6 <UdjinM6@users.noreply.github.com>
This commit is contained in:
dustinface 2020-07-27 09:32:21 +02:00 committed by GitHub
parent bf4e5fa33c
commit 0041a011ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 0 deletions

View File

@ -77,6 +77,8 @@ MasternodeList::MasternodeList(QWidget* parent) :
ui->tableWidgetMasternodesDIP3->setContextMenuPolicy(Qt::CustomContextMenu); ui->tableWidgetMasternodesDIP3->setContextMenuPolicy(Qt::CustomContextMenu);
ui->filterLineEditDIP3->setPlaceholderText(tr("Filter by any property (e.g. address or protx hash)"));
QAction* copyProTxHashAction = new QAction(tr("Copy ProTx Hash"), this); QAction* copyProTxHashAction = new QAction(tr("Copy ProTx Hash"), this);
QAction* copyCollateralOutpointAction = new QAction(tr("Copy Collateral Outpoint"), this); QAction* copyCollateralOutpointAction = new QAction(tr("Copy Collateral Outpoint"), this);
contextMenuDIP3 = new QMenu(this); contextMenuDIP3 = new QMenu(this);

View File

@ -32,6 +32,9 @@ ReceiveCoinsDialog::ReceiveCoinsDialog(QWidget* parent) :
ui->label_2, ui->label_2,
ui->label_3}, GUIUtil::FontWeight::Normal, 15); ui->label_3}, GUIUtil::FontWeight::Normal, 15);
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 // context menu actions
QAction *copyURIAction = new QAction(tr("Copy URI"), this); QAction *copyURIAction = new QAction(tr("Copy URI"), this);
QAction *copyLabelAction = new QAction(tr("Copy label"), this); QAction *copyLabelAction = new QAction(tr("Copy label"), this);

View File

@ -31,8 +31,13 @@ SignVerifyMessageDialog::SignVerifyMessageDialog(QWidget* parent) :
pageButtons.addButton(ui->btnVerifyMessage, pageButtons.buttons().size()); pageButtons.addButton(ui->btnVerifyMessage, pageButtons.buttons().size());
connect(&pageButtons, SIGNAL(buttonClicked(int)), this, SLOT(showPage(int))); connect(&pageButtons, SIGNAL(buttonClicked(int)), this, SLOT(showPage(int)));
ui->messageIn_SM->setPlaceholderText(tr("Enter a message to be signed"));
ui->signatureOut_SM->setPlaceholderText(tr("Click \"Sign Message\" to generate signature")); ui->signatureOut_SM->setPlaceholderText(tr("Click \"Sign Message\" to generate signature"));
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
ui->addressBookButton_SM->setIcon(QIcon(":/icons/address-book")); ui->addressBookButton_SM->setIcon(QIcon(":/icons/address-book"));
ui->pasteButton_SM->setIcon(QIcon(":/icons/editpaste")); ui->pasteButton_SM->setIcon(QIcon(":/icons/editpaste"));
ui->copySignatureButton_SM->setIcon(QIcon(":/icons/editcopy")); ui->copySignatureButton_SM->setIcon(QIcon(":/icons/editcopy"));