Warning, /maui/mauikit/src/controls.5/ListDelegate.qml is written in an unsupported language. File is not indexed.
0001 /* 0002 * Copyright 2018 Camilo Higuita <milo.h@aol.com> 0003 * 0004 * This program is free software; you can redistribute it and/or modify 0005 * it under the terms of the GNU Library General Public License as 0006 * published by the Free Software Foundation; either version 2, or 0007 * (at your option) any later version. 0008 * 0009 * This program is distributed in the hope that it will be useful, 0010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 0011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 0012 * GNU General Public License for more details 0013 * 0014 * You should have received a copy of the GNU Library General Public 0015 * License along with this program; if not, write to the 0016 * Free Software Foundation, Inc., 0017 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 0018 */ 0019 0020 import QtQuick 2.14 0021 import QtQuick.Controls 2.14 0022 0023 import org.mauikit.controls 1.3 as Maui 0024 0025 /** 0026 * ListDelegate 0027 * A global sidebar for the application window that can be collapsed. 0028 * 0029 * 0030 * 0031 * 0032 * 0033 * 0034 */ 0035 Maui.ItemDelegate 0036 { 0037 id: control 0038 0039 implicitHeight: _template.implicitHeight + topPadding + bottomPadding 0040 0041 padding: Maui.Style.defaultPadding 0042 spacing: Maui.Style.space.medium 0043 0044 /** 0045 * labelVisible : bool 0046 */ 0047 property bool labelVisible : true 0048 0049 /** 0050 * iconSize : int 0051 */ 0052 property alias iconSize : _template.iconSizeHint 0053 0054 /** 0055 * iconVisible : int 0056 */ 0057 property alias iconVisible : _template.iconVisible 0058 0059 /** 0060 * label : string 0061 */ 0062 property alias label: _template.text1 0063 0064 /** 0065 * label2 : string 0066 */ 0067 property alias label2: _template.text2 0068 0069 /** 0070 * iconName : string 0071 */ 0072 property alias iconName: _template.iconSource 0073 0074 /** 0075 * template : ListItemTemplate 0076 */ 0077 property alias template : _template 0078 0079 0080 isCurrentItem : ListView.isCurrentItem 0081 0082 ToolTip.delay: 1000 0083 ToolTip.timeout: 5000 0084 ToolTip.visible: hovered 0085 ToolTip.text: control.label 0086 0087 Maui.ListItemTemplate 0088 { 0089 id: _template 0090 spacing: control.spacing 0091 0092 anchors.fill: parent 0093 labelsVisible: control.labelVisible 0094 hovered: control.hovered 0095 isCurrentItem: control.isCurrentItem 0096 highlighted: control.containsPress 0097 } 0098 }