From 8e55f2c2409fd6ca9ebc66a6568f4d3bcbef7576 Mon Sep 17 00:00:00 2001 From: Felix Ernst Date: Sun, 24 Apr 2022 13:18:30 +0200 Subject: Better separation of classes Make obvious when actions trigger selection mode. --- src/selectionmode/actionwithwidget.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/selectionmode/actionwithwidget.cpp') 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 #include +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()); -- cgit v1.3