NativeMenuItem

Search for usage in LXR

NativeMenuItem Class Reference

Properties

string actionName
 
Shortcut alternateShortcut
 
StatefulAppAbstractKirigamiApplication application
 

Detailed Description

A Labs.MenuItem defined by a QAction.

import Qt.labs.platform as Labs
import org.kde.kirigamiaddons.statefulapp as StatefulApp
import org.kde.kirigamiaddons.statefulapp.labs as StatefulAppLabs
StatefulApp.StatefulWindow {
application: MyKoolApp
Labs.MenuBar {
Labs.Menu {
StatefulAppLabs.MenuItem {
actionName: 'add_notebook'
application: MyKoolApp
}
}
}
}

{}

Since
KirigamiAddons 1.4.0

Definition at line 31 of file NativeMenuItem.qml.

Property Documentation

◆ actionName

string NativeMenuItem::actionName
read

This property holds the action name defined in your AbstractKirigamiApplication implementation.

Definition at line 36 of file NativeMenuItem.qml.

◆ alternateShortcut

Shortcut NativeMenuItem::alternateShortcut
read
Remarks
This property is read-only

Definition at line 53 of file NativeMenuItem.qml.

◆ application

StatefulAppAbstractKirigamiApplication NativeMenuItem::application
read

This property holds the AbstractKirigamiApplication where the action is defined.

Definition at line 40 of file NativeMenuItem.qml.


The documentation for this class was generated from the following file:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 6 2024 12:05:53 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.