diff options
Diffstat (limited to 'desktop-widgets/tagwidget.cpp')
-rw-r--r-- | desktop-widgets/tagwidget.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/desktop-widgets/tagwidget.cpp b/desktop-widgets/tagwidget.cpp index 6673b23ac..b09507537 100644 --- a/desktop-widgets/tagwidget.cpp +++ b/desktop-widgets/tagwidget.cpp @@ -211,3 +211,11 @@ void TagWidget::fixPopupPosition(int delta) m_completer->popup()->setGeometry(toGlobal.x(), toGlobal.y() + delta +10, toGlobal.width(), toGlobal.height()); } } + +// Since we capture enter / return / tab, we never send an editingFinished() signal. +// Therefore, override the focusOutEvent() +void TagWidget::focusOutEvent(QFocusEvent *ev) +{ + GroupedLineEdit::focusOutEvent(ev); + emit editingFinished(); +} |