┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/selectionmode/actionwithwidget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/selectionmode/actionwithwidget.cpp')
-rw-r--r--src/selectionmode/actionwithwidget.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/selectionmode/actionwithwidget.cpp b/src/selectionmode/actionwithwidget.cpp
index e9823af7c..82ce045db 100644
--- a/src/selectionmode/actionwithwidget.cpp
+++ b/src/selectionmode/actionwithwidget.cpp
@@ -12,6 +12,8 @@
#include <QPushButton>
#include <QToolButton>
+using namespace SelectionMode;
+
ActionWithWidget::ActionWithWidget(QAction *action) :
m_action{action}
{ }
@@ -40,7 +42,7 @@ QWidget *ActionWithWidget::newWidget(QWidget *parent)
return m_widget;
}
-QAbstractButton *newButtonForAction(QAction *action, QWidget *parent)
+QAbstractButton *SelectionMode::newButtonForAction(QAction *action, QWidget *parent)
{
Q_CHECK_PTR(action);
Q_ASSERT(!action->isSeparator());
@@ -62,7 +64,7 @@ QAbstractButton *newButtonForAction(QAction *action, QWidget *parent)
return toolButton;
}
-void copyActionDataToButton(QAbstractButton *button, QAction *action)
+void SelectionMode::copyActionDataToButton(QAbstractButton *button, QAction *action)
{
button->setText(action->text());
button->setIcon(action->icon());