diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2014-01-29 14:41:41 +0100 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2014-01-29 14:41:41 +0100 |
commit | 69d03bc6e2c97d19b4e23a36205db3fe72bb7c8a (patch) | |
tree | 67e69856c314e5ef8bcf31d975eaa7ced7a11c7a /src/qt | |
parent | 79fb0557cf3b72cac6c7db2b5389a48ac8ab4e22 (diff) |
qt: Fix tab order in send and receive tab
Diffstat (limited to 'src/qt')
-rw-r--r-- | src/qt/bitcoinamountfield.cpp | 3 | ||||
-rw-r--r-- | src/qt/forms/receivecoinsdialog.ui | 5 | ||||
-rw-r--r-- | src/qt/sendcoinsdialog.cpp | 7 |
3 files changed, 10 insertions, 5 deletions
diff --git a/src/qt/bitcoinamountfield.cpp b/src/qt/bitcoinamountfield.cpp index 1698595188..c1f2f18d45 100644 --- a/src/qt/bitcoinamountfield.cpp +++ b/src/qt/bitcoinamountfield.cpp @@ -116,7 +116,8 @@ bool BitcoinAmountField::eventFilter(QObject *object, QEvent *event) QWidget *BitcoinAmountField::setupTabChain(QWidget *prev) { QWidget::setTabOrder(prev, amount); - return amount; + QWidget::setTabOrder(amount, unit); + return unit; } qint64 BitcoinAmountField::value(bool *valid_out) const diff --git a/src/qt/forms/receivecoinsdialog.ui b/src/qt/forms/receivecoinsdialog.ui index e5a8812711..3e1a8bccc7 100644 --- a/src/qt/forms/receivecoinsdialog.ui +++ b/src/qt/forms/receivecoinsdialog.ui @@ -245,6 +245,9 @@ <property name="contextMenuPolicy"> <enum>Qt::CustomContextMenu</enum> </property> + <property name="tabKeyNavigation"> + <bool>false</bool> + </property> <property name="sortingEnabled"> <bool>true</bool> </property> @@ -312,8 +315,8 @@ <tabstop>reqAmount</tabstop> <tabstop>reqMessage</tabstop> <tabstop>reuseAddress</tabstop> - <tabstop>clearButton</tabstop> <tabstop>receiveButton</tabstop> + <tabstop>clearButton</tabstop> <tabstop>recentRequestsView</tabstop> <tabstop>showRequestButton</tabstop> <tabstop>removeRequestButton</tabstop> diff --git a/src/qt/sendcoinsdialog.cpp b/src/qt/sendcoinsdialog.cpp index e2d7dc9bd3..c3a4e4a0db 100644 --- a/src/qt/sendcoinsdialog.cpp +++ b/src/qt/sendcoinsdialog.cpp @@ -325,9 +325,10 @@ QWidget *SendCoinsDialog::setupTabChain(QWidget *prev) prev = entry->setupTabChain(prev); } } - QWidget::setTabOrder(prev, ui->addButton); - QWidget::setTabOrder(ui->addButton, ui->sendButton); - return ui->sendButton; + QWidget::setTabOrder(prev, ui->sendButton); + QWidget::setTabOrder(ui->sendButton, ui->clearButton); + QWidget::setTabOrder(ui->clearButton, ui->addButton); + return ui->addButton; } void SendCoinsDialog::setAddress(const QString &address) |