KXmlGui
kactioncollection.h
178 void writeSettings(KConfigGroup *config = nullptr, bool writeDefaults = false, QAction *oneAction = nullptr) const;
225 * Returns the list of QActions without an QAction::actionGroup() which belong to this action collection.
275 KXMLGUI_DEPRECATED_VERSION(5, 0, "removed() is sometimes emitted with partially destroyed objects; use changed() instead (added in 5.66)")
305 /// Overridden to perform connections when someone wants to know whether an action was highlighted or triggered
400 QAction *addAction(KStandardAction::StandardAction actionType, const QObject *receiver = nullptr, const char *member = nullptr);
422 QAction *addAction(KStandardAction::StandardAction actionType, const QString &name, const QObject *receiver = nullptr, const char *member = nullptr);
425 * This is the same as addAction(KStandardAction::StandardAction actionType, const QString &name, const QObject *receiver, const char *member) using
434 * @see addAction(KStandardAction::StandardAction, const QString &, const QObject *, const char *)
438 inline QAction *addAction(KStandardAction::StandardAction actionType, const QString &name, const Receiver *receiver, Func slot)
441 inline typename std::enable_if<!std::is_convertible<Func, const char *>::value, QAction>::type *
442 addAction(KStandardAction::StandardAction actionType, const QString &name, const Receiver *receiver, Func slot)
475 QAction *addAction(const QString &name, const QObject *receiver = nullptr, const char *member = nullptr);
478 * Creates a new action under the given name, adds it to the collection and connects the action's triggered(bool)
498 ActionType *add(const QString &name, const QObject *receiver = nullptr, const char *member = nullptr)
509 * This is the same as add(const QString &name, const QObject *receiver, const char *member) using
525 inline typename std::enable_if<!std::is_convertible<Func, const char *>::value, ActionType>::type *
536 * This is the same as addAction(const QString &name, const QObject *receiver, const char *member) using
551 inline typename std::enable_if<!std::is_convertible<Func, const char *>::value, QAction>::type *
611 * @param configurable set to true if the shortcuts of the given action may be configured by the user, otherwise false.
617 KXMLGUI_NO_EXPORT explicit KActionCollection(const KXMLGUIClient *parent); // used by KXMLGUIClient
Q_PROPERTY(...)
Q_SLOTSQ_SLOTS
QMetaObject::Connection connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
Definition: kxmlguiclient.h:39
QAction * create(StandardAction id, const QObject *recvr, const char *slot, QObject *parent)
ActionType * add(const QString &name, const QObject *receiver=nullptr, const char *member=nullptr)
Creates a new action under the given name, adds it to the collection and connects the action's trigge...
Definition: kactioncollection.h:498
virtual void setComponentName(const QString &componentName, const QString &componentDisplayName)
Sets the component name for this part.
Definition: kxmlguiclient.cpp:174
KSharedConfigPtr config()
Q_SIGNALSQ_SIGNALS
ActionType * add(const QString &name, const Receiver *receiver, Func slot)
This is the same as add(const QString &name, const QObject *receiver, const char *member) using new s...
Definition: kactioncollection.h:522
void triggered(bool checked)
QAction * action(const char *name) const
Retrieves an action of the client by name.
Definition: kxmlguiclient.cpp:103
void setObjectName(const QString &name)
void setParent(QObject *parent)
QAction * addAction(KStandardAction::StandardAction actionType, const QString &name, const Receiver *receiver, Func slot)
This is the same as addAction(KStandardAction::StandardAction actionType, const QString &name,...
Definition: kactioncollection.h:438
virtual void connectNotify(const QMetaMethod &signal)
StandardAction
QAction * addAction(const QString &name, const Receiver *receiver, Func slot)
This is the same as addAction(const QString &name, const QObject *receiver, const char *member) using...
Definition: kactioncollection.h:548
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sat Dec 2 2023 03:59:26 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sat Dec 2 2023 03:59:26 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.