Use focus policy setting from widget constructor

Since we use tags widget for several input fields (tags, buddy,
divemaster), it makes sense to keep focus policy setting in one place.

Signed-off-by: Sergey Starosek <sergey.starosek@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Sergey Starosek 2014-01-19 22:02:24 +02:00 committed by Dirk Hohndel
parent ec1088f2cc
commit c8807c2ad2

View file

@ -31,7 +31,6 @@ MainTab::MainTab(QWidget *parent) : QTabWidget(parent),
editMode(NONE)
{
ui.setupUi(this);
ui.tagWidget->setFocusPolicy(Qt::StrongFocus); // Don't get focus by 'Wheel'
ui.cylinders->setModel(cylindersModel);
ui.weights->setModel(weightModel);
closeMessage();