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 114114 <iconset resource =" ../bitcoin.qrc" >
115115 <normaloff >:/icons/receiving_addresses</normaloff >:/icons/receiving_addresses</iconset >
116116 </property >
117+ <property name =" autoDefault" >
118+ <bool >false</bool >
119+ </property >
120+ <property name =" default" >
121+ <bool >true</bool >
122+ </property >
117123 </widget >
118124 </item >
119125 <item >
Original file line number Diff line number Diff line change @@ -251,22 +251,6 @@ void ReceiveCoinsDialog::resizeEvent(QResizeEvent *event)
251251 QWidget::resizeEvent (event);
252252}
253253
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-
270254QModelIndex ReceiveCoinsDialog::selectedRow ()
271255{
272256 if (!model || !model->getRecentRequestsTableModel () || !ui->recentRequestsView ->selectionModel ())
Original file line number Diff line number Diff line change @@ -49,9 +49,6 @@ public Q_SLOTS:
4949 void reject () override ;
5050 void accept () override ;
5151
52- protected:
53- virtual void keyPressEvent (QKeyEvent *event) override ;
54-
5552private:
5653 Ui::ReceiveCoinsDialog *ui;
5754 GUIUtil::TableViewLastColumnResizingFixer *columnResizingFixer;
You can’t perform that action at this time.
0 commit comments