add a clear all button to the sign message page
This commit is contained in:
parent
e099e1568a
commit
65c2ad687f
@ -101,12 +101,12 @@
|
|||||||
<italic>true</italic>
|
<italic>true</italic>
|
||||||
</font>
|
</font>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
|
||||||
<string>Click "Sign Message" to get signature</string>
|
|
||||||
</property>
|
|
||||||
<property name="readOnly">
|
<property name="readOnly">
|
||||||
<bool>true</bool>
|
<bool>true</bool>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="placeholderText">
|
||||||
|
<string>Click "Sign Message" to get signature</string>
|
||||||
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
@ -139,6 +139,20 @@
|
|||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QPushButton" name="clearButton">
|
||||||
|
<property name="toolTip">
|
||||||
|
<string>Reset all sign message fields</string>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>Clear all</string>
|
||||||
|
</property>
|
||||||
|
<property name="icon">
|
||||||
|
<iconset resource="../bitcoin.qrc">
|
||||||
|
<normaloff>:/icons/remove</normaloff>:/icons/remove</iconset>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<spacer name="horizontalSpacer">
|
<spacer name="horizontalSpacer">
|
||||||
<property name="orientation">
|
<property name="orientation">
|
||||||
|
@ -105,3 +105,10 @@ void MessagePage::on_signMessage_clicked()
|
|||||||
ui->signature->setText(QString::fromStdString(EncodeBase64(&vchSig[0], vchSig.size())));
|
ui->signature->setText(QString::fromStdString(EncodeBase64(&vchSig[0], vchSig.size())));
|
||||||
ui->signature->setFont(GUIUtil::bitcoinAddressFont());
|
ui->signature->setFont(GUIUtil::bitcoinAddressFont());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void MessagePage::on_clearButton_clicked()
|
||||||
|
{
|
||||||
|
ui->signFrom->clear();
|
||||||
|
ui->message->clear();
|
||||||
|
ui->signature->clear();
|
||||||
|
}
|
||||||
|
@ -33,6 +33,7 @@ private slots:
|
|||||||
|
|
||||||
void on_signMessage_clicked();
|
void on_signMessage_clicked();
|
||||||
void on_copyToClipboard_clicked();
|
void on_copyToClipboard_clicked();
|
||||||
|
void on_clearButton_clicked();
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // MESSAGEPAGE_H
|
#endif // MESSAGEPAGE_H
|
||||||
|
Loading…
Reference in New Issue
Block a user