#include <kxmlguifactory_p.h>
Definition at line 24 of file kxmlguifactory_p.h.
◆ ActionList() [1/2]
| KisKXMLGUI::ActionList::ActionList |
( |
| ) |
|
|
inline |
◆ ActionList() [2/2]
| KisKXMLGUI::ActionList::ActionList |
( |
const QList< QAction * > & | rhs | ) |
|
|
inline |
◆ operator=()
| ActionList & KisKXMLGUI::ActionList::operator= |
( |
const QList< QAction * > & | rhs | ) |
|
|
inline |
◆ plug()
| void ActionList::plug |
( |
QWidget * | container, |
|
|
int | index ) const |
Definition at line 20 of file kxmlguifactory_p.cpp.
21{
22 QAction *before = 0L;
23
24 if ((index < 0) || (index > container->actions().count())) {
25 qWarning() << "Index " << index << " is not within range (0 - " << container->actions().count();
26 } else if (index != container->actions().count()) {
27 before = container->actions().at(index);
28 }
29
30 Q_FOREACH (QAction *action, *this) {
31 container->insertAction(before, action);
32
33 }
34}
◆ unplug()
| void ActionList::unplug |
( |
QWidget * | container | ) |
const |
Definition at line 36 of file kxmlguifactory_p.cpp.
37{
38 Q_FOREACH (QAction *action, *this) {
39 if (container->actions().contains(action)) {
40 container->removeAction(action);
41 }
42 }
43}
The documentation for this class was generated from the following files: