Kirigami2

ActionMenuItem.qml
1 /*
2  * SPDX-FileCopyrightText: 2018 Aleix Pol Gonzalez <[email protected]>
3  *
4  * SPDX-License-Identifier: LGPL-2.0-or-later
5  */
6 
7 import QtQuick 2.3
8 import QtQuick.Controls 2.3 as QQC2
9 import org.kde.kirigami 2.4 as Kirigami
10 
11 QQC2.MenuItem {
12  id: menuItem
13 
14  visible: action.visible === undefined || action.visible
15  height: visible ? implicitHeight : 0
16  autoExclusive: {
17  const g = action.QQC2.ActionGroup.group;
18  return g && g.exclusive;
19  }
20 
21  QQC2.ToolTip.text: action.tooltip || ""
22  QQC2.ToolTip.visible: menuItem.hovered && QQC2.ToolTip.text.length > 0
23  QQC2.ToolTip.delay: Kirigami.Units.toolTipDelay
24 }
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sun Jan 29 2023 04:11:03 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.