diff --git a/scripting/widget.cpp b/scripting/widget.cpp index d4f93f2be..7d93929fd 100644 --- a/scripting/widget.cpp +++ b/scripting/widget.cpp @@ -82,7 +82,7 @@ void Widget::remove() void Widget::setGlobalShortcut(const QString &shortcut) { if (d->applet) { - d->applet.data()->setGlobalShortcut(KShortcut(shortcut)); + d->applet.data()->setGlobalShortcut(QKeySequence(shortcut)); } }