2
* Copyright (C) 2013 Canonical, Ltd.
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; version 3.
8
* This program is distributed in the hope that it will be useful,
9
* but WITHOUT ANY WARRANTY; without even the implied warranty of
10
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
* GNU General Public License for more details.
13
* You should have received a copy of the GNU General Public License
14
* along with this program. If not, see <http://www.gnu.org/licenses/>.
18
import Ubuntu.Components 0.1
26
property string headerText: "Search"
33
onClicked: search.clicked()
38
objectName: "container"
43
Behavior on opacity {NumberAnimation {}}
44
Behavior on y {NumberAnimation {duration: 300; easing.type: Easing.OutCubic}}
48
source: "graphics/search.png"
49
anchors.verticalCenter: parent.verticalCenter
50
anchors.left: parent.left
51
anchors.leftMargin: units.gu(1)
55
text: search.headerText
56
color: Qt.rgba(0.8, 0.8, 0.8, 1.0)
58
font.capitalization: Font.AllUppercase
59
anchors.left: icon.right
60
anchors.leftMargin: units.gu(1)
61
anchors.verticalCenter: parent.verticalCenter