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>
This commit is contained in:
Berthold Stoeger 2018-10-12 22:07:25 +02:00 committed by Jan Mulder
parent 7697003498
commit 397e818be1
2 changed files with 2 additions and 0 deletions

View file

@ -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

View file

@ -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);
}