From 397e818be13f2ccdf12a6bf9f7b760f30a591b93 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Fri, 12 Oct 2018 22:07:25 +0200 Subject: [PATCH] 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 --- CHANGELOG.md | 1 + desktop-widgets/tagwidget.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 61af13bce..2e6db2251 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,4 @@ +- Desktop: don't add dive-buddy or dive-master when tabbing through fields - Filter: don't recalculate all filters on dive list-modifying operations - Desktop: don't recalculate full dive list on dive list-modifying operations - Undo: implement undo/redo for all dive list-modifying operations 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); }