Commit 5e479d68 authored by Andrey Butirsky's avatar Andrey Butirsky
Browse files

impr: Keyboard Layout DBus API: expose switchToNextLayout() method

P-W part:
"Keyboard Layout plugin: passthrough DBus switchToNextLayout() method
to QML applet"
parent 6db2401a
......@@ -211,7 +211,7 @@ void KeyboardDaemon::switchToNextLayout()
msg << Flags::getShortText(newLayout, keyboardConfig);
msg << Flags::getLongText(newLayout, rules);
......@@ -52,7 +52,6 @@ class Q_DECL_EXPORT KeyboardDaemon : public KDEDModule
void setupTrayIcon();
private Q_SLOTS:
void switchToNextLayout();
void configureKeyboard();
void configureMouse();
void layoutChanged();
......@@ -60,6 +59,7 @@ private Q_SLOTS:
bool setLayout(QAction* action);
public Q_SLOTS:
Q_SCRIPTABLE void switchToNextLayout();
Q_SCRIPTABLE bool setLayout(const QString& layout);
Q_SCRIPTABLE QString getCurrentLayout();
Q_SCRIPTABLE QString getCurrentLayoutLongName() const;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment