diff --git a/scripting/scripting.cpp b/scripting/scripting.cpp index b63bee6cb5..f35bb795f8 100644 --- a/scripting/scripting.cpp +++ b/scripting/scripting.cpp @@ -286,7 +286,7 @@ void KWin::Script::installScriptFunctions(QScriptEngine* engine) unregisterScreenEdgeFunction(this, engine, kwinUnregisterScreenEdge); // add user actions menu register function - regesterUserActionsMenuFunction(this, engine, kwinRegisterUserActionsMenu); + registerUserActionsMenuFunction(this, engine, kwinRegisterUserActionsMenu); // add assertions QScriptValue assertTrueFunc = engine->newFunction(kwinAssertTrue); engine->globalObject().setProperty(QStringLiteral("assertTrue"), assertTrueFunc); diff --git a/scripting/scriptingutils.h b/scripting/scriptingutils.h index 2dc25d9837..aef8d2d624 100644 --- a/scripting/scriptingutils.h +++ b/scripting/scriptingutils.h @@ -303,7 +303,7 @@ inline void unregisterScreenEdgeFunction(QObject *parent, QScriptEngine *engine, engine->globalObject().setProperty(QStringLiteral("unregisterScreenEdge"), shortcutFunc); } -inline void regesterUserActionsMenuFunction(QObject *parent, QScriptEngine *engine, QScriptEngine::FunctionSignature function) +inline void registerUserActionsMenuFunction(QObject *parent, QScriptEngine *engine, QScriptEngine::FunctionSignature function) { QScriptValue shortcutFunc = engine->newFunction(function); shortcutFunc.setData(engine->newQObject(parent));