#include "application_p.h"
-#include <QtWidgets/qapplication.h>
+#include <QtCore/qcoreapplication.h>
#include <QtDBus/qdbuspendingreply.h>
#include <qdebug.h>
delete event.second;
} else {
QPair<QObject*, QKeyEvent*> event = keyEvents.dequeue();
- QApplication::postEvent(event.first, event.second);
+ QCoreApplication::postEvent(event.first, event.second);
}
}
qWarning() << QStringLiteral("QSpiApplication::keyEventError ") << error.name() << error.message();
while (!keyEvents.isEmpty()) {
QPair<QObject*, QKeyEvent*> event = keyEvents.dequeue();
- QApplication::postEvent(event.first, event.second);
+ QCoreApplication::postEvent(event.first, event.second);
}
}