Changeset View
Changeset View
Standalone View
Standalone View
lookandfeel/contents/components/KeyboardLayoutButton.qml
Show All 21 Lines | |||||
22 | 22 | | |||
23 | import org.kde.plasma.components 2.0 as PlasmaComponents | 23 | import org.kde.plasma.components 2.0 as PlasmaComponents | ||
24 | 24 | | |||
25 | import org.kde.plasma.workspace.keyboardlayout 1.0 | 25 | import org.kde.plasma.workspace.keyboardlayout 1.0 | ||
26 | 26 | | |||
27 | PlasmaComponents.ToolButton { | 27 | PlasmaComponents.ToolButton { | ||
28 | id: kbLayoutButton | 28 | id: kbLayoutButton | ||
29 | 29 | | |||
30 | iconName: "input-keyboard" | ||||
30 | implicitWidth: minimumWidth | 31 | implicitWidth: minimumWidth | ||
31 | text: layout.currentLayoutDisplayName | 32 | text: layout.currentLayoutDisplayName | ||
32 | 33 | | |||
33 | Accessible.name: i18ndc("plasma_lookandfeel_org.kde.lookandfeel", "Button to change keyboard layout", "Switch layout") | 34 | Accessible.name: i18ndc("plasma_lookandfeel_org.kde.lookandfeel", "Button to change keyboard layout", "Switch layout") | ||
34 | 35 | | |||
35 | visible: layout.layouts.length > 1 | 36 | visible: layout.layouts.length > 1 | ||
36 | 37 | | |||
37 | onClicked: layout.nextLayout() | 38 | onClicked: layout.nextLayout() | ||
Show All 10 Lines |