Change-Id: Ia044bb738469fdd2c9ecc6154ac51851db3e0e7f
Reviewed-on: http://codereview.qt.nokia.com/4270
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
#include "qsgitem.h"
#include "qsgcanvas.h"
+#include <QtWidgets/QGraphicsSceneMouseEvent>
#include "private/qsgfocusscope_p.h"
#include "../../../shared/util.h"
#include <QDebug>
void hoverEventInParent();
private:
- void ensureFocus(QWidget *w) {
+
+ void ensureFocus(QWindow *w) {
w->show();
- qApp->setActiveWindow(w);
+ w->requestActivateWindow();
qApp->processEvents();
#ifdef Q_WS_X11