summaryrefslogtreecommitdiffstats
path: root/src/widget/wbeatspinbox.cpp
diff options
context:
space:
mode:
authorbe_ <be.0@gmx.com>2017-03-19 02:02:19 -0500
committerbe_ <be.0@gmx.com>2017-03-19 02:36:21 -0500
commitce9678b37351fd6cefe8152ad1557101b26d6c5a (patch)
treec923db468e697ff334c3bb031ddf6192491e660b /src/widget/wbeatspinbox.cpp
parent5f957d09d385d4792c130683c9934b57030c4687 (diff)
prevent tab focusing of WBeatSpinBox
Diffstat (limited to 'src/widget/wbeatspinbox.cpp')
-rw-r--r--src/widget/wbeatspinbox.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/widget/wbeatspinbox.cpp b/src/widget/wbeatspinbox.cpp
index 49af3f6dbc..d27181b128 100644
--- a/src/widget/wbeatspinbox.cpp
+++ b/src/widget/wbeatspinbox.cpp
@@ -16,6 +16,9 @@ WBeatSpinBox::WBeatSpinBox(QWidget * parent,
setDecimals(decimals);
setMinimum(minimum);
setMaximum(maximum);
+ // Prevent this widget from getting focused with tab
+ // to avoid interfering with using the library via keyboard.
+ setFocusPolicy(Qt::ClickFocus);
connect(this, SIGNAL(valueChanged(double)),
this, SLOT(slotSpinboxValueChanged(double)));