Warning, /plasma/libplasma/examples/applets/testcomponents/contents/ui/DragItem.qml is written in an unsupported language. File is not indexed.

0001 /*
0002     SPDX-FileCopyrightText: 2013 Sebastian Kügler <sebas@kde.org>
0003     SPDX-FileCopyrightText: 2023 ivan tkachenko <me@ratijas.tk>
0004 
0005     SPDX-License-Identifier: GPL-2.0-or-later
0006 */
0007 
0008 import QtQuick
0009 
0010 import org.kde.kirigami as Kirigami
0011 import org.kde.plasma.components as PlasmaComponents
0012 
0013 import org.kde.draganddrop as DragAndDrop
0014 
0015 PlasmaComponents.ItemDelegate {
0016     id: control
0017 
0018     width: parent?.width ?? 0
0019     //height: _h * 1.5
0020 
0021     Kirigami.Icon {
0022         id: itemIcon
0023 
0024         width: _h
0025         height: width
0026         anchors.verticalCenter: parent.verticalCenter
0027         anchors.left: parent.left
0028         anchors.leftMargin: _h/2
0029 
0030         source: control.icon.name
0031     }
0032 
0033     PlasmaComponents.Label {
0034         id: label
0035 
0036         anchors {
0037             verticalCenter: parent.verticalCenter
0038             left: itemIcon.right
0039             leftMargin: _h/2
0040             right: parent.right
0041             rightMargin: _h/2
0042         }
0043 
0044         text: control.text
0045     }
0046 }