Commit 26505e14 authored by Andrey Butirsky's avatar Andrey Butirsky
Browse files

refactor: keyboard layout applet: return to Properties-based QML API

As all layouts names are now stored in Property on client side, there is
no need for KeyboardLayoutDBusInterface::getLayoutLongName() method any
parent c0d724b5
...@@ -222,11 +222,6 @@ uint KeyboardLayoutDBusInterface::getLayout() const ...@@ -222,11 +222,6 @@ uint KeyboardLayoutDBusInterface::getLayout() const
return m_xkb->currentLayout(); return m_xkb->currentLayout();
} }
QString KeyboardLayoutDBusInterface::getLayoutLongName() const
return translatedLayout(m_xkb->layoutName());
QVector<KeyboardLayoutDBusInterface::LayoutNames> KeyboardLayoutDBusInterface::getLayoutsList() const QVector<KeyboardLayoutDBusInterface::LayoutNames> KeyboardLayoutDBusInterface::getLayoutsList() const
{ {
// TODO: - should be handled by layout applet itself, it has nothing to do with KWin // TODO: - should be handled by layout applet itself, it has nothing to do with KWin
...@@ -86,7 +86,6 @@ public Q_SLOTS: ...@@ -86,7 +86,6 @@ public Q_SLOTS:
void switchToPreviousLayout(); void switchToPreviousLayout();
bool setLayout(uint index); bool setLayout(uint index);
uint getLayout() const; uint getLayout() const;
QString getLayoutLongName() const;
QVector<LayoutNames> getLayoutsList() const; QVector<LayoutNames> getLayoutsList() 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