Kirigami-addons

ActionMenuItem.qml
1// SPDX-FileCopyrightText: 2018 Aleix Pol Gonzalez <aleixpol@kde.org>
2// SPDX-FileCopyrightText: 2023 ivan tkachenko <me@ratijas.tk>
3// SPDX-License-Identifier: LGPL-2.0-or-later
4
5pragma ComponentBehavior: Bound
6
7import QtQuick.Controls as QQC2
8import org.kde.kirigami as Kirigami
9
10QQC2.MenuItem {
11 visible: !(action instanceof Kirigami.Action) || action.visible
12 height: visible ? implicitHeight : 0
13
14 QQC2.ToolTip.text: (action instanceof Kirigami.Action) ? action.tooltip : ""
15 QQC2.ToolTip.visible: hovered && QQC2.ToolTip.text.length > 0
16 QQC2.ToolTip.delay: Kirigami.Units.toolTipDelay
17}
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 3 2025 11:46:31 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.