14#include <qqmlregistration.h>
20 QML_NAMED_ELEMENT(MenuItem)
30 Q_PROPERTY(
bool separator READ separator WRITE setSeparator NOTIFY separatorChanged)
34 Q_PROPERTY(
bool section READ section WRITE setSection NOTIFY sectionChanged)
38 Q_PROPERTY(
bool checkable READ checkable WRITE setCheckable NOTIFY checkableChanged)
39 Q_PROPERTY(
bool checked READ checked WRITE setChecked NOTIFY toggled)
40 Q_PROPERTY(
bool enabled READ isEnabled WRITE setEnabled NOTIFY enabledChanged)
41 Q_PROPERTY(
bool visible READ isVisible WRITE setVisible NOTIFY visibleChanged)
44 explicit QMenuItem(
QObject *parent =
nullptr);
50 bool separator()
const;
51 void setSeparator(
bool s);
53 void setSection(
bool s);
57 bool checkable()
const;
58 void setCheckable(
bool checkable);
61 void setChecked(
bool checked);
63 bool isEnabled()
const;
64 void setEnabled(
bool enabled);
66 bool isVisible()
const;
67 void setVisible(
bool visible);
74 void separatorChanged();
75 void sectionChanged();
77 void toggled(
bool checked);
78 void checkableChanged();
79 void enabledChanged();
80 void visibleChanged();
void setParent(QObject *parent)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:10:41 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.