2 Copyright (C) 2011 by Cuong Le <metacuong@gmail.com>
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 3 of the License, or
7 (at your option) any later version.
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.
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/>
20 import "./scripts/main.js" as Script
31 property variant pageTitle: ["Danh Sách Yêu Thích","Danh Sách Bài Hát"]
40 width: viewModel.width; height: viewModel.height
47 width: viewModel.width; height: viewModel.height
62 anchors.bottomMargin: 30
66 preferredHighlightBegin: 0
67 preferredHighlightEnd: 0
69 highlightRangeMode: ListView.StrictlyEnforceRange
70 orientation: ListView.Horizontal
71 snapMode: ListView.SnapOneItem
72 highlightMoveDuration: 300
76 onCurrentIndexChanged:{
77 topbar.title = pageTitle[currentIndex]
81 Component.onCompleted: {
82 viewModel.currentIndex = 1;
92 onChangeToFavouritePage: {
104 mainWindow.state="disable"
105 var a = Script.createObject("../AboutDlg.qml", mainWindow)
106 a.close.connect(closeDlg)
113 mainWindow.state = "enable"
122 PropertyChanges {target: topbar; visible:false }
123 PropertyChanges {target: menubar; visible:false }
124 PropertyChanges {target: page2; visible:false}