File tree Expand file tree Collapse file tree 3 files changed +25
-3
lines changed Expand file tree Collapse file tree 3 files changed +25
-3
lines changed Original file line number Diff line number Diff line change 101
101
<italic >true</italic >
102
102
</font >
103
103
</property >
104
- <property name =" text" >
105
- <string >Click " Sign Message" to get signature</string >
106
- </property >
107
104
<property name =" readOnly" >
108
105
<bool >true</bool >
109
106
</property >
107
+ <property name =" placeholderText" >
108
+ <string >Click " Sign Message" to get signature</string >
109
+ </property >
110
110
</widget >
111
111
</item >
112
112
<item >
139
139
</property >
140
140
</widget >
141
141
</item >
142
+ <item >
143
+ <widget class =" QPushButton" name =" clearButton" >
144
+ <property name =" toolTip" >
145
+ <string >Reset all sign message fields</string >
146
+ </property >
147
+ <property name =" text" >
148
+ <string >Clear all</string >
149
+ </property >
150
+ <property name =" icon" >
151
+ <iconset resource =" ../bitcoin.qrc" >
152
+ <normaloff >:/icons/remove</normaloff >:/icons/remove</iconset >
153
+ </property >
154
+ </widget >
155
+ </item >
142
156
<item >
143
157
<spacer name =" horizontalSpacer" >
144
158
<property name =" orientation" >
Original file line number Diff line number Diff line change @@ -105,3 +105,10 @@ void MessagePage::on_signMessage_clicked()
105
105
ui->signature ->setText (QString::fromStdString (EncodeBase64 (&vchSig[0 ], vchSig.size ())));
106
106
ui->signature ->setFont (GUIUtil::bitcoinAddressFont ());
107
107
}
108
+
109
+ void MessagePage::on_clearButton_clicked ()
110
+ {
111
+ ui->signFrom ->clear ();
112
+ ui->message ->clear ();
113
+ ui->signature ->clear ();
114
+ }
Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ private slots:
33
33
34
34
void on_signMessage_clicked ();
35
35
void on_copyToClipboard_clicked ();
36
+ void on_clearButton_clicked ();
36
37
};
37
38
38
39
#endif // MESSAGEPAGE_H
You can’t perform that action at this time.
0 commit comments