|
Last change
on this file since 6ce4d02 was
6ce4d02,
checked in by Martin Kolman <martin.kolman@…>, 15 months ago
|
|
update icon paths
code cleanup
|
-
Property mode set to
100644
|
|
File size:
1.3 KB
|
| Line | |
|---|
| 1 | import QtQuick 1.1 |
|---|
| 2 | import com.nokia.meego 1.0 |
|---|
| 3 | |
|---|
| 4 | // map, ui, POI, navigation, network, debug |
|---|
| 5 | |
|---|
| 6 | |
|---|
| 7 | |
|---|
| 8 | IconGridPage { |
|---|
| 9 | function getPage(menu){ |
|---|
| 10 | if (menu = "mapDialog") { |
|---|
| 11 | singleSelectionDialog.open() |
|---|
| 12 | } |
|---|
| 13 | } |
|---|
| 14 | |
|---|
| 15 | model : ListModel { |
|---|
| 16 | id : testModel |
|---|
| 17 | ListElement { |
|---|
| 18 | caption : "Layer" |
|---|
| 19 | icon : "map_layers.png" |
|---|
| 20 | menu : "mapDialog" |
|---|
| 21 | } |
|---|
| 22 | ListElement { |
|---|
| 23 | caption : "Download" |
|---|
| 24 | icon : "download.png" |
|---|
| 25 | menu : "" |
|---|
| 26 | } |
|---|
| 27 | } |
|---|
| 28 | |
|---|
| 29 | |
|---|
| 30 | SelectionDialog { |
|---|
| 31 | id: singleSelectionDialog |
|---|
| 32 | titleText: "Dialog Header #1" |
|---|
| 33 | //selectedIndex: 1 |
|---|
| 34 | |
|---|
| 35 | onSelectedIndexChanged : { |
|---|
| 36 | rWin.setLayer(model.get(selectedIndex).name) |
|---|
| 37 | //rWin.pageStack.pop() |
|---|
| 38 | rWin.pageStack.pop() |
|---|
| 39 | accept() |
|---|
| 40 | } |
|---|
| 41 | |
|---|
| 42 | model: ListModel { |
|---|
| 43 | ListElement { name: "mapnik" } |
|---|
| 44 | ListElement { name: "gmap" } |
|---|
| 45 | ListElement { name: "gsat" } |
|---|
| 46 | ListElement { name: "gover" } |
|---|
| 47 | ListElement { name: "g8bit" } |
|---|
| 48 | ListElement { name: "vmap" } |
|---|
| 49 | ListElement { name: "vsat" } |
|---|
| 50 | ListElement { name: "ymap" } |
|---|
| 51 | ListElement { name: "ysat" } |
|---|
| 52 | ListElement { name: "yover" } |
|---|
| 53 | ListElement { name: "cycle" } |
|---|
| 54 | ListElement { name: "cz_mtb" } |
|---|
| 55 | } |
|---|
| 56 | } |
|---|
| 57 | } |
|---|
Note: See
TracBrowser
for help on using the repository browser.