Commit 72435b5f authored by LE BRETON Come's avatar LE BRETON Come
Browse files

Removes hiding test in exp/dtkWidgetsMenu.

(Awaits general button in dtkMenuBar at construction.)
parent b8f86fd3
......@@ -159,17 +159,6 @@ void setup(dtkApplication *application)
//menu_bar->touch();
params["button_hiding"]->connect( [=] (QVariant v) {
bool run = v.value<dtk::d_bool>();
if(run) {
params["spinbox_to_hide"]->setAdvanced(false);
} else {
qDebug() << "hiding the param";
params["spinbox_to_hide"]->setAdvanced(true);
}
});
params["checkbox_ro_toggle"]->connect( [=] (QVariant v) {
bool visible = v.value<dtk::d_bool>();
if(visible) {
......
......@@ -173,25 +173,5 @@
"max": 10.0,
"decimals": 2
},
"button_hiding":{
"label": "Click on <Run> to hide/unhide a spinbox",
"doc": "It's a button",
"type": "dtk::d_bool"
},
"spinbox_to_hide":{
"type": "dtk::d_real",
"doc": "documentation",
"label": "Spinbox to hide with a button",
"min": -1.0,
"value": 5.0,
"max": 7.0,
"decimals": 5
}
}
}
......@@ -176,29 +176,6 @@
"advanced": false,
"icon": "cog"
}
},
{
"group":{
"contents": [
{
"parameter": {
"widget": "dtkWidgetsParameterBoolPushButton",
"uid": "button_hiding",
"advanced": false
}
},
{
"parameter": {
"widget": "dtkWidgetsParameterDoubleSpinBox",
"uid": "spinbox_to_hide",
"advanced": true
}
}
],
"uid": "Hide/Unhide a menu entry",
"advanced": false,
"icon": "cog"
}
}
]
}
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