diff --git a/GUI/View/Frame/MaskEditingFrame.cpp b/GUI/View/Frame/MaskEditingFrame.cpp index 506b98ecd4aa29c2c78e87710dec8d821a75c952..7006632e731cf5bc81f09bda501cb349ff537021 100644 --- a/GUI/View/Frame/MaskEditingFrame.cpp +++ b/GUI/View/Frame/MaskEditingFrame.cpp @@ -124,7 +124,7 @@ void MaskEditingFrame::setJobOrDatafileItem(QObject* item) QList<QAction*> MaskEditingFrame::actionList() { - return m_actions->providedActions(); + return {m_actions->reset_view, m_actions->toggle_panel}; } void MaskEditingFrame::updateFrame() diff --git a/GUI/View/Frame/Plot2DWithProjectionFrame.cpp b/GUI/View/Frame/Plot2DWithProjectionFrame.cpp index 5f3952e0a82d43c1e81000da71868fa785bc80f0..713f9f2aba1f912fb2181767827b884fddbe9c31 100644 --- a/GUI/View/Frame/Plot2DWithProjectionFrame.cpp +++ b/GUI/View/Frame/Plot2DWithProjectionFrame.cpp @@ -98,7 +98,7 @@ void Plot2DWithProjectionFrame::setJobOrDatafileItem(QObject* item) QList<QAction*> Plot2DWithProjectionFrame::actionList() { - return m_actions->providedActions(); + return {m_actions->reset_view, m_actions->toggle_panel}; } void Plot2DWithProjectionFrame::updateFrame() diff --git a/GUI/View/Setup/MaskEditorActions.cpp b/GUI/View/Setup/MaskEditorActions.cpp index bf6fc8107401e80ea49458aa6760c3c2b12f77e8..598bd861cd6e743f0f189738668de1f7ffa2361d 100644 --- a/GUI/View/Setup/MaskEditorActions.cpp +++ b/GUI/View/Setup/MaskEditorActions.cpp @@ -48,8 +48,3 @@ MaskEditorActions::MaskEditorActions() save_plot->setIcon(QIcon(":/images/content-save-outline.svg")); save_plot->setToolTip("Save Plot"); } - -QList<QAction*> MaskEditorActions::providedActions() -{ - return {reset_view, toggle_panel}; -} diff --git a/GUI/View/Setup/MaskEditorActions.h b/GUI/View/Setup/MaskEditorActions.h index c82aeabb1aea89ea9e06010e78a99f875fc4d05f..f9683f98ce9362180b195fa241ce2c0672f9eb82 100644 --- a/GUI/View/Setup/MaskEditorActions.h +++ b/GUI/View/Setup/MaskEditorActions.h @@ -16,7 +16,6 @@ #define BORNAGAIN_GUI_VIEW_SETUP_MASKEDITORACTIONS_H #include <QAction> -#include <QList> #include <QObject> //! Defines actions for MaskEditor which are related to selected MaskItem (toggle mask value, @@ -28,8 +27,6 @@ class MaskEditorActions : public QObject { public: MaskEditorActions(); - QList<QAction*> providedActions(); - QAction* toggle_mask_value; QAction* bring_to_front; QAction* send_to_back; diff --git a/GUI/View/Setup/ProjectionActions.cpp b/GUI/View/Setup/ProjectionActions.cpp index 68d7fc4d92fcdfb09f4bdc9db7330cf1bdd69125..a65e9a477aeaedf3649092c25733608147d98c65 100644 --- a/GUI/View/Setup/ProjectionActions.cpp +++ b/GUI/View/Setup/ProjectionActions.cpp @@ -33,8 +33,3 @@ ProjectionActions::ProjectionActions() remove_selected->setToolTip("Remove selected (Del)"); remove_selected->setShortcuts(QKeySequence::Delete); } - -QList<QAction*> ProjectionActions::providedActions() -{ - return {reset_view, toggle_panel}; -} diff --git a/GUI/View/Setup/ProjectionActions.h b/GUI/View/Setup/ProjectionActions.h index 8b4abc9ae7ba2a3d1b2225ae09823554089ea80f..97cbdee040327dcfffb8600a813bd38f62743cd6 100644 --- a/GUI/View/Setup/ProjectionActions.h +++ b/GUI/View/Setup/ProjectionActions.h @@ -16,7 +16,6 @@ #define BORNAGAIN_GUI_VIEW_SETUP_PROJECTIONACTIONS_H #include <QAction> -#include <QList> //! Provides various actions for ProjectionsEditor. @@ -24,8 +23,6 @@ class ProjectionActions { public: ProjectionActions(); - QList<QAction*> providedActions(); - QAction* reset_view; QAction* toggle_panel; QAction* remove_selected;