on xenial help sign in
improve param naming
commite8c058e32640992543bc3421693be0f8cb8cd393 authorMichael Zanetti <michael.zanetti@canonical.com> dateWed 13 Jan 2016, 19:48 (11 years ago) parent69344b9
1 file changed+2−2
plugins/Utils/inputeventgenerator.cpp+2−2
plugins/Utils/inputeventgenerator.cpp+2−2
@@ -25,10 +25,10 @@ InputEventGenerator::InputEventGenerator(QQuickItem *parent)
2525{
2626}
2727
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)
2929{
3030 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);
3232 ev.setTimestamp(timestamp);
3333 QCoreApplication::sendEvent(window(), &ev);
3434}