From 397e818be13f2ccdf12a6bf9f7b760f30a591b93 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Fri, 12 Oct 2018 22:07:25 +0200 Subject: 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 --- desktop-widgets/tagwidget.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'desktop-widgets/tagwidget.cpp') 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); } -- cgit v1.2.3-70-g09d2