┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2008-11-19 18:03:15 +0000
committerPeter Penz <[email protected]>2008-11-19 18:03:15 +0000
commitfd45d587b9c092d9194db26d299e672dfaf5de71 (patch)
treee749301f9c02aa9afe5624fe6a982ea15707f566 /src
parent87bc6f51e9788829ff5b071a9307d23d04b25069 (diff)
fixed issue that the zoom slider might not have enough vertical space when having small fonts
svn path=/trunk/KDE/kdebase/apps/; revision=886624
Diffstat (limited to 'src')
-rw-r--r--src/dolphinstatusbar.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/dolphinstatusbar.cpp b/src/dolphinstatusbar.cpp
index 8a2d82d37..00c2500b1 100644
--- a/src/dolphinstatusbar.cpp
+++ b/src/dolphinstatusbar.cpp
@@ -104,11 +104,12 @@ DolphinStatusBar::DolphinStatusBar(QWidget* parent, DolphinView* view) :
m_progressBar->hide();
// initialize sizes
- const int contentHeight = QFontMetrics(m_messageLabel->font()).height() + 4;
- const int barHeight = contentHeight + 4;
+ const int fontHeight = QFontMetrics(m_messageLabel->font()).height();
+ const int zoomWidgetHeight = m_zoomWidget->minimumSizeHint().height();
+ const int contentHeight = (fontHeight < zoomWidgetHeight) ? zoomWidgetHeight : fontHeight;
- setMinimumHeight(barHeight);
- m_messageLabel->setMinimumTextHeight(barHeight);
+ m_messageLabel->setMinimumTextHeight(fontHeight);
+ m_messageLabel->setMinimumTextHeight(contentHeight);
m_spaceInfo->setFixedHeight(contentHeight);
m_progressBar->setFixedSize(200, contentHeight);
m_zoomWidget->setFixedSize(150, contentHeight);