rollback to qtquick 1.0 to compatible with qtlib 4.7 maemo5 fremantle pr 1.3
[lichviet] / qml / LichViet / ToolBarSingle.qml
1 /*
2 Copyright (C) 2011  by Cuong Le <metacuong@gmail.com>
3
4 This program is free software: you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation, either version 2 of the License, or
7 (at your option) any later version.
8
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12 GNU General Public License for more details.
13
14 You should have received a copy of the GNU General Public License
15 along with this program.  If not, see <http://www.gnu.org/licenses/>
16 */
17
18 import QtQuick 1.0
19
20 Item {
21     id: toolbar
22
23     property alias button1Label: button1.text
24
25     opacity: 0.8
26
27     signal button1Clicked
28
29     Rectangle {
30         color:"#7373b1"
31         width: parent.width
32         height: parent.height + 14
33
34         radius: 4
35     }
36
37     Button {
38         id:button1
39         anchors.right: parent.right
40         anchors.rightMargin: 5
41         y: 5
42         width: 140
43         height: 42
44         onClicked: toolbar.button1Clicked();
45     }
46
47 }