Kirigami2

ActionMenuItem.qml
1/*
2 * SPDX-FileCopyrightText: 2018 Aleix Pol Gonzalez <aleixpol@kde.org>
3 * SPDX-FileCopyrightText: 2023 ivan tkachenko <me@ratijas.tk>
4 *
5 * SPDX-License-Identifier: LGPL-2.0-or-later
6 */
7
8import QtQuick.Controls as QQC2
9import org.kde.kirigami as Kirigami
10
11QQC2.MenuItem {
12 visible: !(action instanceof Kirigami.Action) || action.visible
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-2024 The KDE developers.
Generated on Fri Jul 12 2024 12:00:02 by doxygen 1.11.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.