[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [kde-workspace] plasma/generic/applets/devicenotifier/package/contents/ui: Use
From:       David Edmundson <kde () davidedmundson ! co ! uk>
Date:       2014-02-10 16:41:33
Message-ID: E1WCtvJ-0007nr-PC () scm ! kde ! org
[Download RAW message or body]

Git commit ac559db439c0f298a8c6c49a66405977a46e4a15 by David Edmundson.
Committed on 10/02/2014 at 16:03.
Pushed by davidedmundson into branch 'master'.

Use QtQuickControls for device notifier config

M  +22   -15   plasma/generic/applets/devicenotifier/package/contents/ui/co=
nfigGeneral.qml

http://commits.kde.org/kde-workspace/ac559db439c0f298a8c6c49a66405977a46e4a=
15

diff --git a/plasma/generic/applets/devicenotifier/package/contents/ui/conf=
igGeneral.qml b/plasma/generic/applets/devicenotifier/package/contents/ui/c=
onfigGeneral.qml
index ec95fd5..d5f10af 100644
--- a/plasma/generic/applets/devicenotifier/package/contents/ui/configGener=
al.qml
+++ b/plasma/generic/applets/devicenotifier/package/contents/ui/configGener=
al.qml
@@ -17,9 +17,10 @@
  */
 =

 import QtQuick 2.0
+import QtQuick.Controls 1.1 as Controls
+import QtQuick.Layouts 1.1 as Layouts
 =

 import org.kde.plasma.core 2.0 as PlasmaCore
-import org.kde.plasma.components 2.0 as PlasmaComponents
 =

 =

 Item {
@@ -33,18 +34,24 @@ Item {
     property alias cfg_nonRemovableDevices: nonRemovableOnly.checked
     property alias cfg_allDevices: allDevices.checked
 =

-     PlasmaComponents.ButtonColumn {
-            PlasmaComponents.RadioButton {
-		id: removableOnly
-                text: "Removable devices only"
-            }
-            PlasmaComponents.RadioButton {
-		id: nonRemovableOnly
-                text: "Non-removable devices only"
-            }
-            PlasmaComponents.RadioButton {
-		id: allDevices
-                text: "All devices"
-            }
+    Layouts.ColumnLayout {
+        Controls.ExclusiveGroup{
+            id: deviceFilter
         }
-}
\ No newline at end of file
+        Controls.RadioButton {
+            id: removableOnly
+            text: "Removable devices only"
+            exclusiveGroup: deviceFilter
+        }
+        Controls.RadioButton {
+            id: nonRemovableOnly
+            text: "Non-removable devices only"
+            exclusiveGroup: deviceFilter
+        }
+        Controls.RadioButton {
+            id: allDevices
+            text: "All devices"
+            exclusiveGroup: deviceFilter
+        }
+    }
+}

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic