1/* 2 * Copyright (C) 2016, 2017 3 * Jean-Luc Barriere <jlbarriere68@gmail.com> 4 * Andrew Hayzen <ahayzen@gmail.com> 5 * Daniel Holm <d.holmen@gmail.com> 6 * Victor Thompson <victor.thompson@gmail.com> 7 * 8 * This program is free software; you can redistribute it and/or modify 9 * it under the terms of the GNU General Public License as published by 10 * the Free Software Foundation; version 3. 11 * 12 * This program is distributed in the hope that it will be useful, 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 * GNU General Public License for more details. 16 * 17 * You should have received a copy of the GNU General Public License 18 * along with this program. If not, see <http://www.gnu.org/licenses/>. 19 */ 20 21import QtQuick 2.9 22import QtQuick.Controls 2.2 23 24 25Rectangle { 26 id: serviceEmptyState 27 anchors.fill: parent 28 color: styleMusic.view.backgroundColor 29 30 property alias text: label.text 31 32 Column { 33 anchors.centerIn: parent 34 spacing: units.gu(4) 35 width: parent.width > units.gu(44) ? parent.width - units.gu(8) : units.gu(40) 36 37 Label { 38 id: label 39 color: styleMusic.view.labelColor 40 elide: Text.ElideRight 41 font.pointSize: units.fs("x-large") 42 horizontalAlignment: Text.AlignHCenter 43 maximumLineCount: 6 44 text: "" 45 width: parent.width 46 wrapMode: Text.WordWrap 47 } 48 } 49} 50