int priority;
};
+#ifdef CONFIG_WIN32
+class EventFilter : public QAbstractNativeEventFilter
+{
+public:
+ virtual bool nativeEventFilter(const QByteArray &eventType, void *message, long *res) Q_DECL_OVERRIDE;
+};
+
+EventFilter *eventFilter = NULL;
+
+bool EventFilter::nativeEventFilter(const QByteArray &eventType, void *message, long *res)
+{
+ if (eventType == "windows_generic_MSG") {
+ MSG *msg = static_cast<MSG *>(message);
+ if (msg->message == WM_ERASEBKGND) {
+ qt5_graphic_hw_invalidate();
+ }
+ }
+
+ return false;
+}
+#endif
+
void qt5_gui_init(void)
{
QCoreApplication::setApplicationName("Tizen Emulator");
mruInfo.sync();
/* clean up */
+#ifdef CONFIG_WIN32
+ delete eventFilter;
+#endif
qt5App->flush();
mainwindow->closeController();
qInstallMessageHandler(qMessageOutput);
qDebug() << "* Qt plugin library path:" << QCoreApplication::libraryPaths();
+
+#ifdef CONFIG_WIN32
+ eventFilter = new EventFilter();
+ qt5App->installNativeEventFilter(eventFilter);
+#endif
}
void qt5_prepare(void)