Warning, /multimedia/kid3/src/qml/app/Empty.qml is written in an unsupported language. File is not indexed.
0001 /**
0002 * \file Empty.qml
0003 * Empty list view base component.
0004 *
0005 * \b Project: Kid3
0006 * \author Urs Fleisch
0007 * \date 16 Feb 2015
0008 *
0009 * Copyright (C) 2015-2018 Urs Fleisch
0010 *
0011 * This program is free software; you can redistribute it and/or modify
0012 * it under the terms of the GNU Lesser General Public License as published by
0013 * the Free Software Foundation; version 3.
0014 *
0015 * This program is distributed in the hope that it will be useful,
0016 * but WITHOUT ANY WARRANTY; without even the implied warranty of
0017 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
0018 * GNU Lesser General Public License for more details.
0019 *
0020 * You should have received a copy of the GNU Lesser General Public License
0021 * along with this program. If not, see <http://www.gnu.org/licenses/>.
0022 */
0023
0024 import QtQuick 2.11
0025
0026 Rectangle {
0027 id: emptyListItem
0028
0029 property bool selected: false
0030 property bool __acceptEvents: true
0031 property alias __mouseArea: mouseArea
0032
0033 signal clicked()
0034
0035 width: parent ? parent.width : constants.gu(31)
0036 height: constants.rowHeight
0037 color: selected
0038 ? constants.highlightColor : "transparent"
0039
0040 MouseArea {
0041 id: mouseArea
0042 anchors.fill: parent
0043 onClicked: {
0044 if (emptyListItem.__acceptEvents) {
0045 emptyListItem.clicked()
0046 }
0047 }
0048 }
0049 ThinDivider {
0050 id: divider
0051 anchors {
0052 left: parent.left
0053 right: parent.right
0054 bottom: parent.bottom
0055 }
0056 }
0057 }