Fix typo in method name
Summary: It was consistently wrong so it worked before, but not having a typo is better. Test Plan: Compiles, grepped that it's not invokable/public Reviewers: #plasma, graesslin Reviewed By: #plasma, graesslin Subscribers: kwin Tags: #kwin Differential Revision: https://phabricator.kde.org/D2266
This commit is contained in:
parent
b32cdc5653
commit
1ca9390253
2 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue