diff options
Diffstat (limited to 'qt-ui/tagwidget.cpp')
-rw-r--r-- | qt-ui/tagwidget.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/qt-ui/tagwidget.cpp b/qt-ui/tagwidget.cpp index dc78c8997..e7585dff1 100644 --- a/qt-ui/tagwidget.cpp +++ b/qt-ui/tagwidget.cpp @@ -27,6 +27,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. + setFocusPolicy(Qt::StrongFocus); } void TagWidget::setCompleter(QCompleter *completer) @@ -187,3 +188,8 @@ void TagWidget::keyPressEvent(QKeyEvent *e) { } } +void TagWidget::wheelEvent(QWheelEvent *event) { + if (hasFocus()) { + GroupedLineEdit::wheelEvent(event); + } +} |