Warning, /plasma/plasma-systemmonitor/src/table/TextCellDelegate.qml is written in an unsupported language. File is not indexed.
0001 /* 0002 * SPDX-FileCopyrightText: 2020 Arjen Hiemstra <ahiemstra@heimr.nl> 0003 * 0004 * SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL 0005 */ 0006 0007 import QtQuick 2.12 0008 import QtQuick.Controls 2.2 0009 0010 import org.kde.kirigami 2.2 as Kirigami 0011 0012 BaseCellDelegate { 0013 id: delegate 0014 0015 leftPadding: Kirigami.Units.smallSpacing 0016 0017 property alias text: label.text 0018 0019 contentItem: Label { 0020 id: label 0021 text:model.display != undefined ? model.display : "" 0022 maximumLineCount: 1 0023 elide: Text.ElideRight 0024 horizontalAlignment: Text.AlignHCenter 0025 } 0026 0027 ToolTip.text: delegate.text 0028 ToolTip.delay: Kirigami.Units.toolTipDelay 0029 ToolTip.visible: hovered && label.truncated 0030 }