2
* Copyright (C) 2011 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 version 3 as
6
* published by the Free Software Foundation.
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/>.
17
* Jim Nelson <jim@yorba.org>
18
* Lucas Beeler <lucas@yorba.org>
25
objectName: "tab_wrapper"
27
property string title: ""
34
State { name: "selected";
35
PropertyChanges { target: selected_tab_image; visible: true; }
36
PropertyChanges { target: deselected_tab_image; visible: false; }
37
PropertyChanges { target: tab_wrapper; z: 10; }
40
State { name: "deselected";
41
PropertyChanges { target: selected_tab_image; visible: false; }
42
PropertyChanges { target: deselected_tab_image; visible: true; }
43
PropertyChanges { target: tab_wrapper; z: 0; }
50
id: selected_tab_image
51
objectName: "selected_tab_image"
53
source: "selected-tab.png"
56
text: tab_wrapper.title
57
anchors.centerIn: parent
64
onClicked: activated()
69
id: deselected_tab_image
70
objectName: "deselected_tab_image"
72
source: "deselected-tab.png"
75
text: tab_wrapper.title
76
anchors.centerIn: parent
83
onClicked: activated()