#include "arrange_docker_widget.h"
#include "ui_arrange_docker_widget.h"
#include "kis_debug.h"
#include "kactioncollection.h"
#include <QAction>
#include <QToolButton>
Go to the source code of this file.
◆ replaceAction()
| void replaceAction |
( |
QToolButton * | button, |
|
|
QAction * | newAction ) |
Definition at line 34 of file arrange_docker_widget.cpp.
35{
36 Q_FOREACH (QAction *action,
button->actions()) {
37 button->removeAction(action);
38 }
39
40 if (newAction) {
41 button->setDefaultAction(newAction);
42 }
43}
QString button(const QWheelEvent &ev)
References button().