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 autoExclusive: !(action instanceof Kirigami.Action) || action.autoExclusive === true
13 height: visible ? implicitHeight : 0
14
15 QQC2.ToolTip.text: (action instanceof Kirigami.Action) ? action.tooltip : ""
16 QQC2.ToolTip.visible: hovered && QQC2.ToolTip.text.length > 0
17 QQC2.ToolTip.delay: Kirigami.Units.toolTipDelay
18}
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:49:11 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.