Commit b0c34699 authored by Laurent Montel's avatar Laurent Montel 😁

Fix isVisble

parent d7de9528
......@@ -99,15 +99,13 @@ bool SplitterCollapser::Private::isVertical() const
bool SplitterCollapser::Private::isVisible() const
{
bool isVisible = mWidget->isVisible();
const QRect widgetRect = mWidget->geometry();
if (isVisible) {
const QPoint br = widgetRect.bottomRight();
if ((br.x() <= 0) || (br.y() <= 0)) {
isVisible = false;
}
const QPoint br = widgetRect.bottomRight();
if ((br.x() <= 0) || (br.y() <= 0)) {
return false;
} else {
return true;
}
return isVisible;
}
void SplitterCollapser::Private::updatePosition()
......
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