Warning, /multimedia/kid3/src/qml/app/Standard.qml is written in an unsupported language. File is not indexed.
0001 /** 0002 * \file Standard.qml 0003 * Standard list item. 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 import QtQuick.Controls 2.4 0026 0027 ItemDelegate { 0028 id: listItem 0029 property bool progression 0030 property alias control: controlContainer.control 0031 0032 width: parent ? parent.width : constants.gu(31) 0033 height: constants.rowHeight 0034 0035 contentItem: Item { 0036 anchors.fill: parent 0037 0038 Text { 0039 id: textLabel 0040 anchors.left: parent.left 0041 anchors.right: controlContainer.left 0042 anchors.verticalCenter: parent.verticalCenter 0043 anchors.margins: constants.margins 0044 color: highlighted 0045 ? constants.highlightedTextColor :constants.textColor 0046 rightPadding: listItem.spacing 0047 text: listItem.text 0048 font: listItem.font 0049 elide: Text.ElideRight 0050 visible: listItem.text 0051 horizontalAlignment: Text.AlignLeft 0052 verticalAlignment: Text.AlignVCenter 0053 } 0054 Item { 0055 id: controlContainer 0056 property Item control 0057 width: control ? control.width : undefined 0058 height: control ? control.height : undefined 0059 anchors.right: progression ? progressionImage.left : parent.right 0060 anchors.verticalCenter: parent.verticalCenter 0061 anchors.margins: constants.margins 0062 onControlChanged: { 0063 if (control) control.parent = controlContainer; 0064 } 0065 } 0066 Text { 0067 id: progressionImage 0068 anchors.right: parent.right 0069 anchors.verticalCenter: parent.verticalCenter 0070 anchors.margins: constants.margins 0071 font.family: materialFont.name 0072 font.pixelSize: 24 0073 text: ">" 0074 color: highlighted 0075 ? constants.highlightedTextColor :constants.textColor 0076 visible: progression 0077 } 0078 } 0079 }