From 50676d8d255ed52d91885e5dd23e60474777cfd5 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Tue, 23 Jan 2007 18:33:43 +0000 Subject: Minor adjustments and cleanups in the statusbar: - prevent a flickering of the space information if a folder has been changed - assure that no progress bar and space information is shown if an error is displayed currently svn path=/trunk/playground/utils/dolphin/; revision=626571 --- src/dolphinstatusbar.h | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'src/dolphinstatusbar.h') diff --git a/src/dolphinstatusbar.h b/src/dolphinstatusbar.h index 7dea4c35c..445419c3f 100644 --- a/src/dolphinstatusbar.h +++ b/src/dolphinstatusbar.h @@ -21,17 +21,15 @@ #ifndef DOLPHINSTATUSBAR_H #define DOLPHINSTATUSBAR_H - -//Added by qt3to4: -#include #include + +class DolphinView; +class KUrl; +class StatusBarMessageLabel; +class StatusBarSpaceInfo; class QProgressBar; class QLabel; class QTimer; -class StatusBarMessageLabel; -class StatusBarSpaceInfo; -class DolphinView; -class KUrl; /** * @brief Represents the statusbar of a Dolphin view. @@ -70,8 +68,8 @@ public: * is cleared automatically. */ void setMessage(const QString& msg, Type type); - QString message() const; + Type type() const; /** @@ -113,21 +111,23 @@ public: const QString& defaultText() const { return m_defaultText; } private slots: - void slotProgressTimer(); + void updateProgressInfo(); /** - * Is invoked, when the Url of the DolphinView, where the - * statusbar belongs too, has been changed. + * Is invoked, when the URL of the DolphinView, where the + * statusbar belongs too, has been changed. The space information + * is updated. */ - void slotUrlChanged(const KUrl& url); + void updateSpaceInfo(const KUrl& url); private: StatusBarMessageLabel* m_messageLabel; StatusBarSpaceInfo* m_spaceInfo; + QLabel* m_progressText; QProgressBar* m_progressBar; - QTimer* m_progressTimer; int m_progress; + QString m_defaultText; }; -- cgit v1.3.1