svn path=/trunk/playground/utils/dolphin/; revision=611357
***************************************************************************/
#include "dolphinstatusbar.h"
***************************************************************************/
#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 "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),
DolphinStatusBar::DolphinStatusBar(DolphinView* parent) :
KHBox(parent),
m_messageLabel(0),
m_progressBar(0),
m_progress(100)
{
m_progressBar(0),
m_progress(100)
{
m_messageLabel = new StatusBarMessageLabel(this);
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());
m_spaceInfo = new StatusBarSpaceInfo(this);
m_spaceInfo->setUrl(parent->url());
this, SLOT(slotProgressTimer()));
const QSize size(m_progressBar->sizeHint());
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());
setMinimumHeight(size.height());
m_messageLabel->setMinimumTextHeight(size.height());
*
* The statusbar allows to show messages and progress
* information.
*
* The statusbar allows to show messages and progress
* information.
- *
- * @author Peter Penz
*/
class DolphinStatusBar : public KHBox {
Q_OBJECT
*/
class DolphinStatusBar : public KHBox {
Q_OBJECT