KDEUI
Go to the documentation of this file.
21 #ifndef KACTIONCATEGORY_H
22 #define KACTIONCATEGORY_H
24 #include <QtCore/QObject>
25 #include <QtCore/QString>
26 #include <QtCore/QList>
33 struct KActionCategoryPrivate;
99 Q_PROPERTY( QString text READ text WRITE setText )
122 QAction * addAction(
const QString &
name, QAction *action);
128 const QObject *receiver = NULL,
129 const char *member = NULL);
134 const QObject *receiver = NULL,
135 const char *member = NULL);
139 const QObject *receiver = NULL,
140 const char *member = NULL);
142 template<
class ActionType>
145 const QObject *receiver = NULL,
146 const char *member = NULL)
148 ActionType *action = collection()->add<ActionType>(
name, receiver, member);
168 QString text()
const;
173 void setText(
const QString& text);
180 void unlistAction(QAction *action);
185 void addAction(QAction *action);
188 friend class KActionCollectionPrivate;
191 KActionCategoryPrivate *
const d;
A container for a set of QAction objects.
Class to encapsulate user-driven action or event.
const char * name(StandardAction id)
This will return the internal name of a given standard action.
StandardAction
The standard menubar and toolbar actions.
ActionType * add(const QString &name, const QObject *receiver=NULL, const char *member=NULL)
Categorize actions for KShortcutsEditor.
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Thu Aug 27 2020 00:00:00 by
doxygen 1.8.20 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.