Proof of concept for having the context actions statically defined in the module.
Needs work for correctly placing the items in menu and on toolbar. Old system still needs to be removed left in place to keep app useable.
This commit is contained in:
parent
7f09d5fe07
commit
601d071d0f
21 changed files with 303 additions and 70 deletions
|
|
@ -16,8 +16,8 @@
|
|||
#include "plugin_support/IPluginContentWidgetContext.h"
|
||||
|
||||
|
||||
CrudTab::CrudTab(IPluginContentWidgetContext *context, QWidget *parent)
|
||||
: PluginContentWidget(context, parent)
|
||||
CrudTab::CrudTab(IPluginContentWidgetContext *context, PluginModule *module, QWidget *parent)
|
||||
: PluginContentWidget(context, module, parent)
|
||||
, ui(new Ui::CrudTab)
|
||||
{
|
||||
ui->setupUi(this);
|
||||
|
|
@ -140,8 +140,8 @@ void CrudPageModule::moduleAction_open(
|
|||
{
|
||||
// create new widget for specified table
|
||||
// hand widget to context for display
|
||||
CrudTab *ct = new CrudTab(context, nullptr);
|
||||
context->addContentWidget(this, ct); // maybe CrudTab should do this
|
||||
CrudTab *ct = new CrudTab(context, this);
|
||||
context->addContentWidget(ct); // maybe CrudTab should do this
|
||||
ct->setConfig(params.at("oid").toUInt());
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue