setting it directly works as well, and doesn't require dipping into QCoreApplication's API
svn path=/trunk/KDE/kdelibs/; revision=1175312
This commit is contained in:
parent
1fc68e3ef9
commit
9300be394e
@ -19,7 +19,6 @@
|
||||
|
||||
#include "lineedit.h"
|
||||
|
||||
#include <QCoreApplication>
|
||||
#include <QPainter>
|
||||
#include <QIcon>
|
||||
#include <QGraphicsSceneResizeEvent>
|
||||
@ -211,7 +210,7 @@ void LineEdit::focusInEvent(QFocusEvent *event)
|
||||
QGraphicsProxyWidget::focusInEvent(event);
|
||||
if (!nativeWidget()->hasFocus()) {
|
||||
// as of Qt 4.7, apparently we have a bug here in QGraphicsProxyWidget
|
||||
QCoreApplication::sendEvent(nativeWidget(), event);
|
||||
nativeWidget()->setFocus(event->reason());
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user