Commit 2a47844a authored by Jan Paul Batrina's avatar Jan Paul Batrina
Browse files

Expand collapsed plugin views instead of hiding

Since the sidebar is collapsed, the plugin view is not
visible to the user, so it makes sense to show the
tool view (by expanding the sidebar) instead.
parent bccc7d35
Pipeline #69926 canceled with stage
......@@ -553,9 +553,12 @@ void Sidebar::tabClicked(int i)
return;
}
if (isTabRaised(i)) {
if (isTabRaised(i) || isCollapsed()) {
showWidget(w);
w->setFocus();
// When sidebar is collapsed and the toolview was pressed, we only expand
// the toolview/sidebar, so the tab must remain activated
setTab(m_widgetToId[w], true);
} else {
hideWidget(w);
}
......
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