mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-23 10:22:48 +00:00
plasma: move event object to the scope it is used in in Plasma::LineEdit::focusOutEvent()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
614568e372
commit
b55dab289f
1 changed files with 1 additions and 1 deletions
|
@ -181,10 +181,10 @@ void LineEdit::focusOutEvent(QFocusEvent *event)
|
|||
applet->setStatus(Plasma::UnknownStatus);
|
||||
}
|
||||
|
||||
QEvent closeEvent(QEvent::CloseSoftwareInputPanel);
|
||||
if (qApp) {
|
||||
if (QGraphicsView *view = qobject_cast<QGraphicsView*>(qApp->focusWidget())) {
|
||||
if (view->scene() && view->scene() == scene()) {
|
||||
QEvent closeEvent(QEvent::CloseSoftwareInputPanel);
|
||||
QApplication::sendEvent(view, &closeEvent);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue