Change visibility icon default to enabled
This commit is contained in:
@@ -157,7 +157,7 @@ public:
|
||||
funcs["ColumnSize2"] = &TreeParamsP::updateColumnSize2;
|
||||
TreeToolTipIcon = handle->GetBool("TreeToolTipIcon", false);
|
||||
funcs["TreeToolTipIcon"] = &TreeParamsP::updateTreeToolTipIcon;
|
||||
VisibilityIcon = handle->GetBool("VisibilityIcon", false);
|
||||
VisibilityIcon = handle->GetBool("VisibilityIcon", true);
|
||||
funcs["VisibilityIcon"] = &TreeParamsP::updateVisibilityIcon;
|
||||
}
|
||||
|
||||
@@ -395,7 +395,7 @@ public:
|
||||
}
|
||||
// Auto generated code (Tools/params_utils.py:296)
|
||||
static void updateVisibilityIcon(TreeParamsP *self) {
|
||||
auto v = self->handle->GetBool("VisibilityIcon", false);
|
||||
auto v = self->handle->GetBool("VisibilityIcon", true);
|
||||
if (self->VisibilityIcon != v) {
|
||||
self->VisibilityIcon = v;
|
||||
TreeParams::onVisibilityIconChanged();
|
||||
@@ -1407,7 +1407,7 @@ const bool & TreeParams::getVisibilityIcon() {
|
||||
|
||||
// Auto generated code (Tools/params_utils.py:366)
|
||||
const bool & TreeParams::defaultVisibilityIcon() {
|
||||
const static bool def = false;
|
||||
const static bool def = true;
|
||||
return def;
|
||||
}
|
||||
|
||||
|
||||
@@ -80,7 +80,7 @@ Params = [
|
||||
ParamInt('ColumnSize1', 0),
|
||||
ParamInt('ColumnSize2', 0),
|
||||
ParamBool('TreeToolTipIcon', False, title='Show icon in tool tip'),
|
||||
ParamBool('VisibilityIcon', False, on_change=True, title='Show visibility icon',
|
||||
ParamBool('VisibilityIcon', True, on_change=True, title='Show visibility icon',
|
||||
doc = "If enabled, show an eye icon before the tree view items, showing the items visibility status. When clicked the visibility is toggled"),
|
||||
]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user