KDEUI
Go to the documentation of this file.
26 #ifndef KACTIONCOLLECTION_H
27 #define KACTIONCOLLECTION_H
33 #include <QtCore/QObject>
62 Q_PROPERTY(
QString configGroup READ configGroup WRITE setConfigGroup )
63 Q_PROPERTY(
bool configIsGlobal READ configIsGlobal WRITE setConfigGlobal )
80 static const QList<KActionCollection*>& allCollections();
94 void associateWidget(
QWidget* widget) const;
104 void addAssociatedWidget(
QWidget* widget);
110 void removeAssociatedWidget(
QWidget* widget);
115 QList<
QWidget*> associatedWidgets() const;
120 void clearAssociatedWidgets();
131 bool configIsGlobal() const;
136 void setConfigGroup( const
QString& group );
142 void setConfigGlobal(
bool global );
170 void exportGlobalShortcuts(
KConfigGroup* config,
bool writeDefaults = false ) const;
187 void writeSettings(
KConfigGroup* config = 0,
bool writeDefaults = false,
QAction* oneAction = 0 ) const;
199 bool isEmpty() const;
223 QList<
QAction*> actions() const;
228 const QList<
QAction*> actionsWithoutGroup() const;
233 const QList<QActionGroup*> actionGroups() const;
247 KComponentData componentData() const;
264 QT_MOC_COMPAT
void removed(
QAction* action );
270 QT_MOC_COMPAT
void actionHighlighted(
QAction* action);
275 void actionHovered(
QAction* action);
280 void actionTriggered(
QAction* action);
284 virtual
void connectNotify ( const
char * signal );
286 virtual
void slotActionTriggered();
292 QT_MOC_COMPAT virtual
void slotActionHighlighted();
295 void slotActionHovered();
322 void removeAction(
QAction *action);
369 const
QObject *receiver = 0, const
char *member = 0);
411 template<class ActionType>
414 ActionType *a =
new ActionType(
this);
415 if (receiver && member)
416 connect(a, SIGNAL(triggered(
bool)), receiver, member);
422 Q_PRIVATE_SLOT(d,
void _k_actionDestroyed(
QObject *))
423 Q_PRIVATE_SLOT(d,
void _k_associatedWidgetDestroyed(
QObject*))
427 friend class KActionCollectionPrivate;
428 class KActionCollectionPrivate* const d;
This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Tue Jul 16 2013 17:49:36 by
doxygen 1.8.1.1 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.