File tree Expand file tree Collapse file tree 3 files changed +6
-19
lines changed Expand file tree Collapse file tree 3 files changed +6
-19
lines changed Original file line number Diff line number Diff line change 114
114
<iconset resource =" ../bitcoin.qrc" >
115
115
<normaloff >:/icons/receiving_addresses</normaloff >:/icons/receiving_addresses</iconset >
116
116
</property >
117
+ <property name =" autoDefault" >
118
+ <bool >false</bool >
119
+ </property >
120
+ <property name =" default" >
121
+ <bool >true</bool >
122
+ </property >
117
123
</widget >
118
124
</item >
119
125
<item >
Original file line number Diff line number Diff line change @@ -251,22 +251,6 @@ void ReceiveCoinsDialog::resizeEvent(QResizeEvent *event)
251
251
QWidget::resizeEvent (event);
252
252
}
253
253
254
- void ReceiveCoinsDialog::keyPressEvent (QKeyEvent *event)
255
- {
256
- if (event->key () == Qt::Key_Return)
257
- {
258
- // press return -> submit form
259
- if (ui->reqLabel ->hasFocus () || ui->reqAmount ->hasFocus () || ui->reqMessage ->hasFocus ())
260
- {
261
- event->ignore ();
262
- on_receiveButton_clicked ();
263
- return ;
264
- }
265
- }
266
-
267
- this ->QDialog ::keyPressEvent (event);
268
- }
269
-
270
254
QModelIndex ReceiveCoinsDialog::selectedRow ()
271
255
{
272
256
if (!model || !model->getRecentRequestsTableModel () || !ui->recentRequestsView ->selectionModel ())
Original file line number Diff line number Diff line change @@ -49,9 +49,6 @@ public Q_SLOTS:
49
49
void reject () override ;
50
50
void accept () override ;
51
51
52
- protected:
53
- virtual void keyPressEvent (QKeyEvent *event) override ;
54
-
55
52
private:
56
53
Ui::ReceiveCoinsDialog *ui;
57
54
GUIUtil::TableViewLastColumnResizingFixer *columnResizingFixer;
You can’t perform that action at this time.
0 commit comments