Moved definition of widget instance actions to the module so other parts of the system can no about them.
The plugin system will create the Action objects and bind them to the specified slots of the specific widget instances.
This commit is contained in:
parent
d0c4dabe8b
commit
f4f2474a81
21 changed files with 418 additions and 204 deletions
|
|
@ -5,6 +5,7 @@
|
|||
#include <vector>
|
||||
|
||||
class IPluginContentWidgetContext;
|
||||
class PluginModule;
|
||||
|
||||
/// Provides a pluggable system for toolbar buttons and menu actions
|
||||
///
|
||||
|
|
@ -21,7 +22,6 @@ class PluginContentWidget: public QWidget{
|
|||
public:
|
||||
PluginContentWidget(IPluginContentWidgetContext *context, QWidget* parent = nullptr);
|
||||
/// Returns the toolbar buttons for this page
|
||||
virtual std::vector<QAction*> getToolbarActions();
|
||||
virtual bool canClose();
|
||||
|
||||
protected:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue