6 border.color: "#000666";
7 // property int maxValue:500;
8 // property int minValue:0;
9 property alias value:text1.text
10 property bool expanded: false
12 function show(Boolean){
13 //mozna jeszcze to w tle ukrywać
17 signal valueSelected(string selected); //?
19 // function stringToInt(string){
22 // for (var i=string.length-1;i>=0;i--){
23 // value+=(string.charCodeAt(i)-48)*pow10;
36 width: rectangle1.width-15
37 height: rectangle1.height*0.6;
39 anchors.centerIn: parent
40 font.pixelSize: rectangle1.height * .5;
41 onTextChanged: {} //stub, tu reakcja na zmianę wyboru z listy
47 // width: rectangle1.width-15
48 // height: rectangle1.height*0.6;
50 // anchors.centerIn: parent
51 // validator: IntValidator{bottom: minValue; top: maxValue;}
52 // transformOrigin: Item.Left
53 // selectByMouse: true;
54 // font.pixelSize: rectangle1.height * .5;
55 // onCursorPositionChanged: moveCursorSelection(cursorPosition);
56 // onTextChanged: rectangle1.valueChange(stringToInt(text_input1.text));
59 // text=stringToInt(text);
66 height: parent.height;
67 anchors.centerIn: parent;
78 anchors.right: parent.right
79 anchors.top: parent.top
80 anchors.rightMargin: 2
82 source: "qrc:/button/up_enable.png";
90 anchors.right: parent.right
91 anchors.bottom: parent.bottom
92 anchors.rightMargin: 2
93 anchors.bottomMargin: 2
94 source: "qrc:/button/down_enable.png";
102 rectangle1.show(!rectangle1.expanded)
111 property string selected: startValue//inicjowane z cpp
113 function selectedValue(nr, value) {
116 rectangle1.show(false)
119 anchors.left: parent.left
120 anchors.verticalCenter: parent.verticalCenter
121 highlightResizeSpeed: 1000
127 width: rectangle1.width
128 height: contentText.height
135 list1.selectedValue(number, content)
139 list1.currentIndex = number
148 anchors.verticalCenter: parent.verticalCenter
149 anchors.leftMargin: 5
161 when: rectangle1.expanded = false
162 PropertyChanges { target: list1; z: 0; visible: false }
163 PropertyChanges {target: listMouseArea; z: 1 }
167 when: rectangle1.expanded = true
168 PropertyChanges { target: list1; z: 10; visible: true }
169 PropertyChanges {target: listMouseArea; z: 11 }