2 Copyright 2010 Tobias Koenig <tokoe@kde.org>
4 This library is free software; you can redistribute it and/or modify it
5 under the terms of the GNU Library General Public License as published by
6 the Free Software Foundation; either version 2 of the License, or (at your
7 option) any later version.
9 This library is distributed in the hope that it will be useful, but WITHOUT
10 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
12 License for more details.
14 You should have received a copy of the GNU Library General Public License
15 along with this library; see the file COPYING.LIB. If not, write to the
16 Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
20import org.kde.pim.mobileui 4.5 as KPIM
25 color : palette.window
29 colorGroup: QML.SystemPalette.Active
34 anchors.top : parent.top
35 anchors.left : parent.left
36 anchors.leftMargin : 15
37 height : text == "" ? 0 : 20
38 text : dialogController.descriptionText
40 verticalAlignment : QML.Text.AlignVCenter
45 anchors.top : descriptionText.bottom
46 anchors.topMargin : 20
47 anchors.left : parent.left
48 anchors.leftMargin : 15
49 anchors.right : parent.right
50 anchors.rightMargin : 15
51 anchors.bottom : filterLine.top
53 boundsBehavior : QML.Flickable.StopAtBounds
55 model : collectionModel
57 delegate : QML.Rectangle {
58 width : listView.width
63 color : "lightsteelblue"
64 opacity : QML.ListView.isCurrentItem ? 0.30 : 0
70 anchors.leftMargin : 15
72 verticalAlignment : QML.Text.AlignVCenter
77 onClicked : listView.currentIndex = model.index
82 target : dialogController
84 onSelectionChanged : listView.currentIndex = row
87 onCurrentIndexChanged : dialogController.setCurrentIndex( currentIndex )
93 anchors.left : parent.left
94 anchors.leftMargin : 20
95 anchors.right : parent.right
96 anchors.rightMargin : 20
97 anchors.bottom : okButton.top
98 anchors.bottomMargin : 5
101 height : text == "" ? 0 : 20
102 opacity : text == "" ? 0 : 1
104 onTextChanged : dialogController.setFilterText( text )
107 anchors.fill : parent
108 anchors.leftMargin : -5
109 anchors.rightMargin : -5
111 color : "lightsteelblue"
119 anchors.right : okButton.left
120 anchors.rightMargin : 100
121 anchors.bottom : parent.bottom
124 buttonText : createButtonText
125 onClicked : dialogController.createClicked()
126 enabled : dialogController.createButtonEnabled
127 visible : dialogController.createButtonVisible
132 anchors.right : cancelButton.left
133 anchors.bottom : parent.bottom
136 buttonText : okButtonText
137 onClicked : dialogController.okClicked()
138 enabled : dialogController.okButtonEnabled
143 anchors.right : parent.right
144 anchors.rightMargin: 15
145 anchors.bottom : parent.bottom
148 buttonText : cancelButtonText
149 onClicked : dialogController.cancelClicked()
150 enabled : dialogController.cancelButtonEnabled