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.
287 /// Overridden to perform connections when someone wants to know whether an action was highlighted or triggered
373 QAction *addAction(KStandardAction::StandardAction actionType, const QObject *receiver = nullptr, const char *member = nullptr);
395 QAction *addAction(KStandardAction::StandardAction actionType, const QString &name, const QObject *receiver = nullptr, const char *member = nullptr);
398 * This is the same as addAction(KStandardAction::StandardAction actionType, const QString &name, const QObject *receiver, const char *member) using
407 * @see addAction(KStandardAction::StandardAction, const QString &, const QObject *, const char *)
411 inline QAction *addAction(KStandardAction::StandardAction actionType, const QString &name, const Receiver *receiver, Func slot)
414 inline typename std::enable_if<!std::is_convertible<Func, const char *>::value, QAction>::type *
415 addAction(KStandardAction::StandardAction actionType, const QString &name, const Receiver *receiver, Func slot)
448 QAction *addAction(const QString &name, const QObject *receiver = nullptr, const char *member = nullptr);
451 * Creates a new action under the given name, adds it to the collection and connects the action's triggered(bool)
482 * This is the same as add(const QString &name, const QObject *receiver, const char *member) using
509 * This is the same as addAction(const QString &name, const QObject *receiver, const char *member) using
524 inline typename std::enable_if<!std::is_convertible<Func, const char *>::value, QAction>::type *
569 Q_INVOKABLE static void setDefaultShortcuts(QAction *action, const QList<QKeySequence> &shortcuts);
583 * @param configurable set to true if the shortcuts of the given action may be configured by the user, otherwise false.
589 KXMLGUI_NO_EXPORT explicit KActionCollection(const KXMLGUIClient *parent); // used by KXMLGUIClient
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:411
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:521
void actionHovered(QAction *action)
Indicates that action was hovered.
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:471
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:495
void changed()
Emitted when an action has been inserted into, or removed from, this action collection.
void inserted(QAction *action)
Indicates that action was inserted into this action collection.
void actionTriggered(QAction *action)
Indicates that action was triggered.
A KXMLGUIClient can be used with KXMLGUIFactory to create a GUI from actions and an XML document,...
Definition kxmlguiclient.h:40
QAction * create(StandardAction id, const QObject *recvr, const char *slot, QObject *parent)
StandardAction
void triggered(bool checked)
Q_PROPERTY(...)
Q_SIGNALSQ_SIGNALS
Q_SLOTSQ_SLOTS
QMetaObject::Connection connect(const QObject *sender, PointerToMemberFunction signal, Functor functor)
virtual void connectNotify(const QMetaMethod &signal)
QList< T > findChildren(Qt::FindChildOptions options) const const
void setObjectName(QAnyStringView name)
void setParent(QObject *parent)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:21:12 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:21:12 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.