on xenial help sign in
improve param naming
e8c058eMichael Zanetti
plugins/Utils/inputeventgenerator.cpp+2−2
@@ -25,10 +25,10 @@ InputEventGenerator::InputEventGenerator(QQuickItem *parent)
25{
25{
26}
26}
27
27
28−void InputEventGenerator::generateKeyEvent(Qt::Key key, bool pressed, Qt::KeyboardModifiers modifier, quint64 timestamp, quint32 nativeScanCode, const QString &text)
28+void InputEventGenerator::generateKeyEvent(Qt::Key key, bool pressed, Qt::KeyboardModifiers modifiers, quint64 timestamp, quint32 nativeScanCode, const QString &text)
29{
29{
30 QEvent::Type type = pressed ? QEvent::KeyPress : QEvent::KeyRelease;
30 QEvent::Type type = pressed ? QEvent::KeyPress : QEvent::KeyRelease;
31− QKeyEvent ev(type, key, modifier, nativeScanCode, 0, 0, text);
31+ QKeyEvent ev(type, key, modifiers, nativeScanCode, 0, 0, text);
32 ev.setTimestamp(timestamp);
32 ev.setTimestamp(timestamp);
33 QCoreApplication::sendEvent(window(), &ev);
33 QCoreApplication::sendEvent(window(), &ev);
34}
34}