Skip to content

Commit da6ae1c

Browse files
committed
Merge #65: Set tab focus behavior
500a6d2 qml: Set tab focus behavior (João Barbosa) Pull request description: Sets tab focus behavior to iterate all controls and widgets. Can be tested after adding some controls to the scene. ACKs for top commit: hebasto: ACK 500a6d2 Tree-SHA512: d5b232e6f79bd97f4d2a968c66fa131f0137cb8eb5a3446d61ae1a09e5790fbbfe6b93d25b2fc03d406d0c12a147792adbf623bdedf4035443f5630f7d9c4244
2 parents 9f2f92c + 500a6d2 commit da6ae1c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/qml/bitcoin.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
#include <QQmlContext>
3434
#include <QQuickWindow>
3535
#include <QString>
36+
#include <QStyleHints>
3637
#include <QUrl>
3738

3839
QT_BEGIN_NAMESPACE
@@ -97,6 +98,7 @@ int QmlGuiMain(int argc, char* argv[])
9798
Q_INIT_RESOURCE(bitcoin_qml);
9899

99100
QGuiApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
101+
QGuiApplication::styleHints()->setTabFocusBehavior(Qt::TabFocusAllControls);
100102
QGuiApplication app(argc, argv);
101103

102104
auto handler_message_box = ::uiInterface.ThreadSafeMessageBox_connect(InitErrorMessageBox);

0 commit comments

Comments
 (0)