1
0
mirror of https://invent.kde.org/system/dolphin synced 2024-07-04 17:30:55 +00:00

fixed layout issues

svn path=/trunk/playground/utils/dolphin/; revision=611357
This commit is contained in:
Peter Penz 2006-12-07 19:44:20 +00:00
parent 352dd42ccb
commit 904168ad2a
2 changed files with 11 additions and 10 deletions

View File

@ -19,16 +19,17 @@
***************************************************************************/
#include "dolphinstatusbar.h"
#include <qprogressbar.h>
#include <qlabel.h>
#include <qtimer.h>
#include <kiconloader.h>
#include <kvbox.h>
#include "dolphinview.h"
#include "statusbarmessagelabel.h"
#include "statusbarspaceinfo.h"
#include <QLabel>
#include <QProgressBar>
#include <QTimer>
#include <kiconloader.h>
#include <kvbox.h>
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());

View File

@ -38,8 +38,6 @@ class KUrl;
*
* The statusbar allows to show messages and progress
* information.
*
* @author Peter Penz
*/
class DolphinStatusBar : public KHBox {
Q_OBJECT