This needs a review from @laanwj, as I simply tried to figure out what I needed to add via some copy & paste from the source and trial and error. I hope I'm on track tough.
This addresses #943!
104 | @@ -105,3 +105,10 @@ void MessagePage::on_signMessage_clicked() 105 | ui->signature->setText(QString::fromStdString(EncodeBase64(&vchSig[0], vchSig.size()))); 106 | ui->signature->setFont(GUIUtil::bitcoinAddressFont()); 107 | } 108 | + 109 | +void MessagePage::on_clearButton_clicked() 110 | +{ 111 | + ui->signFrom->clear(); 112 | + ui->message->clear(); 113 | + ui->signature->setText(tr("Click \"Sign Message\" to get signature"));
I'd prefer also doing ui->signature->clear(), then defining this help message as "Placeholder text" in the ui file. This has the same functionality, but also shades the help text in grey (and with the difference that the message isn't repeated twice in the code).
I didn't know that clear() restores the default text, so yes your suggestion is much nicer. Will re-work this.
Updated to reflect laanwjs suggestion. After an ACK I will merge both commits.
ACK
Rebased to be a single commit, no further code-changes.