[PATCH] Use focus policy setting from widget constructor
Sergey Starosek
sergey.starosek at gmail.com
Sun Jan 19 12:02:24 UTC 2014
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 at gmail.com>
---
qt-ui/maintab.cpp | 1 -
1 file changed, 1 deletion(-)
diff --git a/qt-ui/maintab.cpp b/qt-ui/maintab.cpp
index af01813..fc836f4 100644
--- a/qt-ui/maintab.cpp
+++ b/qt-ui/maintab.cpp
@@ -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();
--
1.8.3.2
More information about the subsurface
mailing list