Commit 0be58257 authored by Thomas Friedrichsmeier's avatar Thomas Friedrichsmeier
Browse files

Fix detection of disabled rows

parent 115ff7b0
Pipeline #181003 passed with stage
in 5 minutes and 40 seconds
......@@ -324,8 +324,13 @@ void RKComponent::updateEnablednessRecursive (bool parent_enabled) {
bool RKComponent::isInactive () {
if (!isEnabled ()) return true;
if (parentWidget() && !isVisible()) return true; // Note: Components embedded as button may be "hidden" without being unaccessible
if (!visibility_property->boolValue ()) return true; // Note for those, this is the appropriate check
if (parentWidget() && isHidden()) return true; // Note: Components embedded as button may be "hidden" without being unaccessible
if (!visibility_property->boolValue ()) return true; // Note for those, this is the appropriate check
// NOTE: What an eye-sore, and TODO: should be fixed. Needed to detect, if this is e.g. the child of a hidden row (which is the parentWidget, but not the logical parentComponent)
if (parentWidget()) {
auto p = qobject_cast<RKComponent*>(parentWidget());
if (p && !p->visibility_property->boolValue()) return true;
}
return false;
}
......
Supports Markdown
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