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:
Aaron J. Seigo 2010-09-14 17:41:10 +00:00
parent 1fc68e3ef9
commit 9300be394e

View File

@ -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());
}
}