aboutsummaryrefslogtreecommitdiff
path: root/examples/MenuFactory.qml
diff options
context:
space:
mode:
Diffstat (limited to 'examples/MenuFactory.qml')
-rw-r--r--examples/MenuFactory.qml33
1 files changed, 0 insertions, 33 deletions
diff --git a/examples/MenuFactory.qml b/examples/MenuFactory.qml
deleted file mode 100644
index faecd9b..0000000
--- a/examples/MenuFactory.qml
+++ /dev/null
@@ -1,33 +0,0 @@
-import QtQuick 1.1
-import Ubuntu.Components 0.1
-import Ubuntu.Components.ListItems 0.1 as ListItem
-
-Loader {
- property variant menu
- //height: childrenRect.height
-
- onMenuChanged: {
- if (menu) {
- if (menu.linkSection)
- source = "MenuSection.qml"
- else if (menu.linkSubMenu)
- source = "SubMenu.qml"
- else
- source = "Menu.qml";
- }
-
- console.debug("Load: " + source)
- }
-
- onStatusChanged: {
- if (status == Loader.Ready) {
- if (menu.linkSection)
- item.menu = menu
- else if (menu.linkSubMenu)
- item.menu = menu
- else if (menu)
- item.menu = menu
- }
- }
-}
-