2 import com.nokia.meego 1.0
3 import 'UIConstants.js' as UI
8 property Item targetTab
10 height: bottomItem.height + importButton.height + UI.DEFAULT_MARGIN * 2
14 anchors.topMargin: UI.DEFAULT_MARGIN / 2
16 GradientStop { position: 0.0; color: Qt.lighter("#76221d") }
17 GradientStop { position: 1.0; color: Qt.lighter("#bd543d") }
23 anchors.bottom: importButton.top
24 anchors.left: parent.left
25 anchors.right: parent.right
26 height: UI.LIST_ITEM_HEIGHT_SMALL
30 anchors.left: parent.left
31 anchors.leftMargin: UI.DEFAULT_MARGIN
32 iconSource: "image://theme/icon-m-toolbar-down"
33 onClicked: targetTab.moveDownFamily()
34 enabled: targetTab !== null &&
35 (targetTab.listView.currentIndex >= 0 &&
36 targetTab.listView.currentIndex < targetTab.listView.count - 1) &&
37 (!targetTab.listView.model.get(targetTab.listView.currentIndex+1).header)
42 anchors.horizontalCenter: parent.horizontalCenter
43 iconSource: "image://theme/icon-m-toolbar-delete"
44 onClicked: targetTab.removeFamily()
45 enabled: targetTab !== null && targetTab.listView.currentIndex >= 0
50 anchors.right: parent.right
51 anchors.rightMargin: UI.DEFAULT_MARGIN
52 iconSource: "image://theme/icon-m-toolbar-up"
53 onClicked: targetTab.moveUpFamily()
54 enabled: targetTab !== null && (targetTab.listView.currentIndex > 0) && (!targetTab.listView.model.get(targetTab.listView.currentIndex-1).header)
60 anchors.horizontalCenter: parent.horizontalCenter
61 anchors.bottom: parent.bottom
62 anchors.bottomMargin: UI.DEFAULT_MARGIN
63 text: qsTr("Import System Settings")
66 controller.importSystemSettings(targetTab.family)
68 enabled: targetTab !== null