If selectionMode was running, statusbar would get hidden behind the
selectionmode bottom bar.
Instead of calculating offsets, just check for the view geometry bottom position and use that for the statusbar yPos.
QRect DolphinViewContainer::preferredSmallStatusBarGeometry()
{
QRect DolphinViewContainer::preferredSmallStatusBarGeometry()
{
- // Add offset depending if horizontal scrollbar or filterbar is visible.
- int filterBarHeightOffset = 0;
- int scrollbarHeightOffset = m_view->horizontalScrollBarHeight();
-
- if (m_filterBar->isVisible()) {
- filterBarHeightOffset = m_filterBar->height();
- }
-
// Adjust to clipping, we need to add 1 due to how QRects coordinates work.
int clipAdjustment = m_statusBar->clippingAmount() + 1;
// Adjust to clipping, we need to add 1 due to how QRects coordinates work.
int clipAdjustment = m_statusBar->clippingAmount() + 1;
- const int yPos = rect().bottom() - m_statusBar->minimumHeight() - scrollbarHeightOffset - filterBarHeightOffset + clipAdjustment;
+ // Add offset depending if horizontal scrollbar or filterbar is visible.
+ const int yPos = m_view->geometry().bottom() - m_view->horizontalScrollBarHeight() - m_statusBar->minimumHeight() + clipAdjustment;
QRect statusBarRect = rect().adjusted(-clipAdjustment, yPos, 0, 0);
return statusBarRect;
}
QRect statusBarRect = rect().adjusted(-clipAdjustment, yPos, 0, 0);
return statusBarRect;
}