Commit f30795da authored by LE BRETON Come's avatar LE BRETON Come

Shows it's possible to populate several times the menu bar.

parent f9befbe1
......@@ -242,15 +242,18 @@ dummy::dummy(void) : QMainWindow(0)
dtk::widgets::initialize("");
dtkWidgetsParameterMenuBarGenerator menubar_generator(":parameters_nature.json", ":parameters_definition.json");
// /////////////////////////////////////////////////////////////////////////////
//
// /////////////////////////////////////////////////////////////////////////////
this->menubar = new dtkWidgetsMenuBar(this);
dtkWidgetsParameterMenuBarGenerator menubar_generator(":parameters_nature.json", ":parameters_definition.json");
menubar_generator.populate(this->menubar);
dtkWidgetsParameterMenuBarGenerator menubar_generator_2(":parameters_nature_2.json", ":parameters_definition_2.json");
menubar_generator_2.populate(this->menubar);
this->menubar->build();
this->setStyleSheet(m_style);
......
......@@ -3,5 +3,7 @@
<qresource prefix="">
<file>parameters_nature.json</file>
<file>parameters_definition.json</file>
<file>parameters_nature_2.json</file>
<file>parameters_definition_2.json</file>
</qresource>
</RCC>
{
"contents":
{
"param": {"label": "param", "doc": "documentation", "value": false}
}
}
{
"contents": [{
"group":
{
"uid" : "Model parameters 3",
"icon": "cogs",
"advanced": false,
"contents": [
{"parameter": {"uid": "param", "type": "dtk::d_bool", "widget": "dtkWidgetsParameterBoolCheckBox", "advanced": false}}
]
}
}]
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment