]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/dolphinstatusbar.h
Forwardport 773570:
[dolphin.git] / src / dolphinstatusbar.h
index e98e9e5126c2b4aa61ab6611e7574a6cbb05a42f..1a9aaa4c172c53ccd90709d8d0f103ceeba76712 100644 (file)
@@ -29,7 +29,6 @@ class StatusBarMessageLabel;
 class StatusBarSpaceInfo;
 class QProgressBar;
 class QLabel;
-class QTimer;
 
 /**
  * @brief Represents the statusbar of a Dolphin view.
@@ -37,7 +36,8 @@ class QTimer;
  * The statusbar allows to show messages and progress
  * information.
  */
-class DolphinStatusBar : public KHBox {
+class DolphinStatusBar : public KHBox
+{
     Q_OBJECT
 
 public:
@@ -53,7 +53,9 @@ public:
         Error
     };
 
-    DolphinStatusBar(DolphinView* parent = 0);
+    DolphinStatusBar(QWidget* parent,
+                     const KUrl& url);
+
     virtual ~DolphinStatusBar();
 
     /**
@@ -93,7 +95,10 @@ public:
      * operations.
      */
     void setProgress(int percent);
-    int progress() const { return m_progress; }
+    int progress() const
+    {
+        return m_progress;
+    }
 
     /**
      * Clears the message text of the status bar by replacing
@@ -108,7 +113,7 @@ public:
      * is cleared by DolphinStatusBar::clear().
      */
     void setDefaultText(const QString& text);
-    const QString& defaultText() const { return m_defaultText; }
+    const QString& defaultText() const;
 
 protected:
     /** @see QWidget::resizeEvent() */
@@ -138,8 +143,6 @@ private:
     QLabel* m_progressText;
     QProgressBar* m_progressBar;
     int m_progress;
-
-    QString m_defaultText;
 };
 
 #endif