Commit 7c6dcd77 authored by Nate Graham's avatar Nate Graham
Browse files

[Workspace KCM] Clean up QML import names and versions

parent b9ffcf0b
...@@ -16,9 +16,9 @@ ...@@ -16,9 +16,9 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/ */
import QtQuick 2.7 import QtQuick 2.7
import QtQuick.Controls 2.4 as Controls import QtQuick.Controls 2.5 as QQC2
import QtQuick.Layouts 1.3 import QtQuick.Layouts 1.3
import org.kde.kirigami 2.4 as Kirigami import org.kde.kirigami 2.5 as Kirigami
import org.kde.kcm 1.2 as KCM import org.kde.kcm 1.2 as KCM
import org.kde.plasma.core 2.0 as PlasmaCore import org.kde.plasma.core 2.0 as PlasmaCore
...@@ -32,7 +32,7 @@ KCM.SimpleKCM { ...@@ -32,7 +32,7 @@ KCM.SimpleKCM {
id: formLayout id: formLayout
// Visual behavior settings // Visual behavior settings
Controls.CheckBox { QQC2.CheckBox {
id: showToolTips id: showToolTips
Kirigami.FormData.label: i18n("Visual behavior:") Kirigami.FormData.label: i18n("Visual behavior:")
text: i18n("Display informational tooltips on mouse hover") text: i18n("Display informational tooltips on mouse hover")
...@@ -40,7 +40,7 @@ KCM.SimpleKCM { ...@@ -40,7 +40,7 @@ KCM.SimpleKCM {
onCheckedChanged: kcm.toolTip = checked onCheckedChanged: kcm.toolTip = checked
} }
Controls.CheckBox { QQC2.CheckBox {
id: showVisualFeedback id: showVisualFeedback
text: i18n("Display visual feedback for status changes") text: i18n("Display visual feedback for status changes")
checked: kcm.visualFeedback checked: kcm.visualFeedback
...@@ -58,13 +58,13 @@ KCM.SimpleKCM { ...@@ -58,13 +58,13 @@ KCM.SimpleKCM {
Kirigami.FormData.label: i18n("Animation speed:") Kirigami.FormData.label: i18n("Animation speed:")
Kirigami.FormData.buddyFor: slider Kirigami.FormData.buddyFor: slider
Controls.Slider { QQC2.Slider {
id: slider id: slider
Layout.fillWidth: true Layout.fillWidth: true
from: -4 from: -4
to: 4 to: 4
stepSize: 1 stepSize: 1
snapMode: Controls.Slider.SnapAlways snapMode: QQC2.Slider.SnapAlways
onMoved: { onMoved: {
if(value === to) { if(value === to) {
kcm.animationDurationFactor = 0; kcm.animationDurationFactor = 0;
...@@ -79,13 +79,13 @@ KCM.SimpleKCM { ...@@ -79,13 +79,13 @@ KCM.SimpleKCM {
} }
} }
RowLayout { RowLayout {
Controls.Label { QQC2.Label {
text: i18nc("Animation speed", "Slow") text: i18nc("Animation speed", "Slow")
} }
Item { Item {
Layout.fillWidth: true Layout.fillWidth: true
} }
Controls.Label { QQC2.Label {
text: i18nc("Animation speed", "Instant") text: i18nc("Animation speed", "Instant")
} }
} }
...@@ -103,7 +103,7 @@ KCM.SimpleKCM { ...@@ -103,7 +103,7 @@ KCM.SimpleKCM {
// Click behavior settings // Click behavior settings
Controls.RadioButton { QQC2.RadioButton {
id: singleClick id: singleClick
Kirigami.FormData.label: i18n("Click behavior:") Kirigami.FormData.label: i18n("Click behavior:")
text: i18n("Single-click to open files and folders") text: i18n("Single-click to open files and folders")
...@@ -111,7 +111,7 @@ KCM.SimpleKCM { ...@@ -111,7 +111,7 @@ KCM.SimpleKCM {
onCheckedChanged: kcm.singleClick = checked onCheckedChanged: kcm.singleClick = checked
} }
Controls.RadioButton { QQC2.RadioButton {
id: doubleClick id: doubleClick
text: i18n("Double-click to open files and folders (single click to select)") text: i18n("Double-click to open files and folders (single click to select)")
} }
......
Markdown is supported
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