diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2018-10-12 22:07:25 +0200 |
---|---|---|
committer | Jan Mulder <jlmulder@xs4all.nl> | 2018-10-13 10:06:41 +0200 |
commit | 397e818be13f2ccdf12a6bf9f7b760f30a591b93 (patch) | |
tree | b2f9d6bd47e2418ee0833a2a223ec2243e138c9f /desktop-widgets/tagwidget.cpp | |
parent | 769700349845678b049c830eb2d1ca8c42004b68 (diff) | |
download | subsurface-397e818be13f2ccdf12a6bf9f7b760f30a591b93.tar.gz |
Desktop: enable tab-changes-focus for TagWidget
When tabbing through the dive-info screen, a dive-master and a
dive-buddy would be added. The reason is that pressing tab would
be interpreted as a text-input. Disable this behavior by calling
setTabChangesFocus(true) in the TagWidget constructor.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'desktop-widgets/tagwidget.cpp')
-rw-r--r-- | desktop-widgets/tagwidget.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/desktop-widgets/tagwidget.cpp b/desktop-widgets/tagwidget.cpp index b88f967d2..61277109a 100644 --- a/desktop-widgets/tagwidget.cpp +++ b/desktop-widgets/tagwidget.cpp @@ -26,6 +26,7 @@ TagWidget::TagWidget(QWidget *parent) : GroupedLineEdit(parent), m_completer(NUL addColor(QColor(Qt::green).darker(120)); addColor(QColor(Qt::blue).darker(120)); } // light text. get a dark background. + setTabChangesFocus(true); setFocusPolicy(Qt::StrongFocus); } |