[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [kdeplasma-addons/plasma/sreich/kickoff-netrunner] applets/kickoff-netrunner/package/contents/ui: di
From: Shaun Reich <shaun.reich () kdemail ! net>
Date: 2012-02-20 2:59:20
Message-ID: 20120220025920.2F1FEA60BE () git ! kde ! org
[Download RAW message or body]
Git commit 0c33899a557adbc5a2a3f69ce6ef007d226b9e76 by Shaun Reich.
Committed on 20/02/2012 at 03:58.
Pushed by sreich into branch 'plasma/sreich/kickoff-netrunner'.
display some of settings/. it works. sort of.
i emphasize sort of, because i'm not entirely sure yet *how* it's
working. looking at plasmaengineexplorer, i've got to be missing
something. also, it's not showing what i want and the engine doesn't
seem to be *too* well designed :/
M +24 -3 applets/kickoff-netrunner/package/contents/ui/ContentPanes.qml
http://commits.kde.org/kdeplasma-addons/0c33899a557adbc5a2a3f69ce6ef007d226b9e76
diff --git a/applets/kickoff-netrunner/package/contents/ui/ContentPanes.qml \
b/applets/kickoff-netrunner/package/contents/ui/ContentPanes.qml index \
acda1ab..0fff963 100644
--- a/applets/kickoff-netrunner/package/contents/ui/ContentPanes.qml
+++ b/applets/kickoff-netrunner/package/contents/ui/ContentPanes.qml
@@ -62,6 +62,28 @@ Item {
}
}
+ PlasmaCore.DataSource {
+ id: appsSource
+ engine: "apps"
+ onSourceAdded: connectSource(source)
+ onSourceRemoved: disconnectSource(source)
+
+ Component.onCompleted: {
+ connectedSources = sources
+ }
+ }
+
+ PlasmaCore.DataModel {
+ id: settingsAppsModel
+ dataSource: appsSource
+
+ sourceFilter: "[Settingsmenu/.]*"
+
+ Component.onCompleted: {
+ print("SOURCES:" + sources);
+ }
+ }
+
states: [
State {
name: "Net"
@@ -73,13 +95,12 @@ Item {
}
},
-
State {
name: "Settings"
PropertyChanges {
target: pane1
- // model: placesModel
- iconSource: "icon"
+ model: settingsAppsModel
+ iconSource: "iconName"
textSource: "name"
}
},
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic