aboutsummaryrefslogtreecommitdiff
path: root/examples/main.qml
diff options
context:
space:
mode:
Diffstat (limited to 'examples/main.qml')
-rw-r--r--examples/main.qml43
1 files changed, 0 insertions, 43 deletions
diff --git a/examples/main.qml b/examples/main.qml
deleted file mode 100644
index 0615a63..0000000
--- a/examples/main.qml
+++ /dev/null
@@ -1,43 +0,0 @@
-import QtQuick 1.1
-import QMenuModel 1.0
-import Ubuntu.Components 0.1
-import Ubuntu.Components.ListItems 0.1 as ListItem
-
-Rectangle {
- id: main
-
- height: 800
- width: 480
- color: "#eeeeee"
-
- function loadMainMenu(menu) {
- mainMenu.model = menu
- }
-
- QDBusMenuModel {
- id: menuModel
- busType: 1
- busName: "com.ubuntu.networksettings"
- objectPath: "/com/ubuntu/networksettings"
- onStatusChanged: {
- console.log("Menu model status update: " + status)
- }
- }
-
- ListView {
- id: mainMenu
- anchors.fill: parent
- model: menuModel
-
- delegate: MenuFactory {
- width: parent.width
- menu: model
- }
-
- Component.onCompleted: {
- menuModel.start()
- }
- }
-}
-
-