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 "lineedit.h"
|
||||||
|
|
||||||
#include <QCoreApplication>
|
|
||||||
#include <QPainter>
|
#include <QPainter>
|
||||||
#include <QIcon>
|
#include <QIcon>
|
||||||
#include <QGraphicsSceneResizeEvent>
|
#include <QGraphicsSceneResizeEvent>
|
||||||
@ -211,7 +210,7 @@ void LineEdit::focusInEvent(QFocusEvent *event)
|
|||||||
QGraphicsProxyWidget::focusInEvent(event);
|
QGraphicsProxyWidget::focusInEvent(event);
|
||||||
if (!nativeWidget()->hasFocus()) {
|
if (!nativeWidget()->hasFocus()) {
|
||||||
// as of Qt 4.7, apparently we have a bug here in QGraphicsProxyWidget
|
// 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