From: Peter Penz Date: Thu, 7 Dec 2006 19:44:20 +0000 (+0000) Subject: fixed layout issues X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/904168ad2a0e2baff0570658c8f9a9c3feba4554 fixed layout issues svn path=/trunk/playground/utils/dolphin/; revision=611357 --- diff --git a/src/dolphinstatusbar.cpp b/src/dolphinstatusbar.cpp index 6d7df4511..a5e43432e 100644 --- a/src/dolphinstatusbar.cpp +++ b/src/dolphinstatusbar.cpp @@ -19,16 +19,17 @@ ***************************************************************************/ #include "dolphinstatusbar.h" -#include -#include -#include -#include -#include - #include "dolphinview.h" #include "statusbarmessagelabel.h" #include "statusbarspaceinfo.h" +#include +#include +#include + +#include +#include + DolphinStatusBar::DolphinStatusBar(DolphinView* parent) : KHBox(parent), m_messageLabel(0), @@ -36,8 +37,10 @@ DolphinStatusBar::DolphinStatusBar(DolphinView* parent) : m_progressBar(0), m_progress(100) { + setSpacing(4); + m_messageLabel = new StatusBarMessageLabel(this); - m_messageLabel->setSizePolicy(QSizePolicy::Ignored, QSizePolicy::Fixed); + m_messageLabel->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed); m_spaceInfo = new StatusBarSpaceInfo(this); m_spaceInfo->setUrl(parent->url()); @@ -53,7 +56,7 @@ DolphinStatusBar::DolphinStatusBar(DolphinView* parent) : this, SLOT(slotProgressTimer())); const QSize size(m_progressBar->sizeHint()); - m_progressBar->setMaximumWidth(size.width()); + m_progressBar->setMaximumWidth(200); setMinimumHeight(size.height()); m_messageLabel->setMinimumTextHeight(size.height()); diff --git a/src/dolphinstatusbar.h b/src/dolphinstatusbar.h index cc0cfdd05..e7a29e954 100644 --- a/src/dolphinstatusbar.h +++ b/src/dolphinstatusbar.h @@ -38,8 +38,6 @@ class KUrl; * * The statusbar allows to show messages and progress * information. - * - * @author Peter Penz */ class DolphinStatusBar : public KHBox { Q_OBJECT