qrc and serachBarWidget
[mdictionary] / src / mdictionary / qml / SearchBarWidget.qml
1 import Qt 4.7
2
3 Rectangle {
4     id: searchBarWidget
5
6     SystemPalette { id: myPalette; colorGroup: SystemPalette.Active }
7     color : myPalette.window;
8
9     MyTextLineEdit{
10         id: inputSearchText
11         width: (searchBarWidget.width - (searchBarWidget.height*3.5 + searchButton.width + 9));
12         height: searchBarWidget.height
13         anchors.left: searchBarWidget.left
14         IconButton {
15             id: clearButton;
16             width:  inputSearchText.height-6;
17             height: inputSearchText.height-6;
18             anchors.rightMargin: 4
19             anchors.right: parent.right
20             anchors.verticalCenter: parent.verticalCenter
21             enabled: true;
22             pathToIcon: "/home/jakub/go-previous.png";
23         }
24     }
25
26     Item {
27         id: buttonsBox
28         width: searchBarWidget.height*3.5 + searchButton.width + 9
29         height: searchBarWidget.height
30         anchors.right: parent.right
31         anchors.verticalCenter: parent.verticalCenter
32
33         Button {
34             id: searchButton
35             width: 100
36             height: searchBarWidget.height;
37             anchors.rightMargin: 3
38             anchors.right: historyButton3.left
39             anchors.verticalCenter: parent.verticalCenter
40             textInButton: "Search"
41         }
42
43         IconButton {
44             id: historyButton1;
45             width:  searchBarWidget.height
46             height: searchBarWidget.height
47             anchors.right: parent.right
48             anchors.verticalCenter: parent.verticalCenter
49             enabled: true;
50             pathToIcon: "/home/jakub/go-previous.png";
51         }
52
53         IconButton {
54             id: historyButton2;
55             width:  searchBarWidget.height
56             height: searchBarWidget.height
57             anchors.rightMargin: 3
58             anchors.right: historyButton1.left
59             anchors.verticalCenter: parent.verticalCenter
60             enabled: true;
61             pathToIcon: "/home/jakub/go-previous.png";
62         }
63
64         IconButton {
65             id: historyButton3;
66             width:  searchBarWidget.height
67             height: searchBarWidget.height
68             anchors.rightMargin: 3
69             anchors.right: historyButton2.left
70             anchors.verticalCenter: parent.verticalCenter
71             enabled: true;
72             pathToIcon: "/home/jakub/go-previous.png";
73         }
74     }
75 }