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/>
25 property alias songlistView: songlistView
27 anchors.verticalCenter: parent.verticalCenter
28 anchors.horizontalCenter: parent.horizontalCenter
29 anchors.fill: parent;anchors.topMargin: 55;anchors.leftMargin: 0;anchors.rightMargin: 0;anchors.bottomMargin: 30
35 width: container.width; height: 80
38 width: container.width
44 anchors.verticalCenter: parent.verticalCenter
66 wrapMode: Text.WordWrap
73 visible: container.width > container.height ? true : false
86 songlistView.currentIndex = index;
95 Component.onCompleted: {
106 songlistModel.append({"number":m_number, "title":m_title, "lyric":m_lyric, "author":m_author})
109 console.log("Remove old songs")
110 songlistModel.clear();
115 id: highlightsongDelegate
117 width: container.width; height: songlistView.currentItem.height-6
118 color: "lightsteelblue"; radius: 5
119 y: songlistView.currentItem.y+4
133 width: container.width
134 height: childrenRect.height
135 color: "lightsteelblue"
149 delegate: songlistDelegate
150 highlight: highlightsongDelegate
152 highlightFollowsCurrentItem: false
155 section.property: "the_loai"
156 section.criteria: ViewSection.FullString
157 section.delegate: sectionHeading