]> cloud.milkyroute.net Git - dolphin.git/commitdiff
minor cleanups
authorPeter Penz <peter.penz19@gmail.com>
Mon, 15 Oct 2007 16:23:51 +0000 (16:23 +0000)
committerPeter Penz <peter.penz19@gmail.com>
Mon, 15 Oct 2007 16:23:51 +0000 (16:23 +0000)
svn path=/trunk/KDE/kdebase/apps/; revision=725523

src/dolphinstatusbar.cpp
src/statusbarmessagelabel.h

index a6bc03224e5713a67f801b15d69f7d321ae1aeb7..9a2ccb0409b1f90eb51d7696861d6449545602ca 100644 (file)
@@ -180,7 +180,6 @@ void DolphinStatusBar::showSpaceInfo()
         // The space information is shown currently. Hide it
         // if the progress bar is visible or if the status bar
         // text does not fit into the available width.
-        const QSize size(m_progressBar->sizeHint());
         if (isProgressBarVisible || (widthGap > 0)) {
             m_spaceInfo->hide();
         }
index 25610d4b6b42b62eb4e77dabd58175f6f7644e61..0eacad9714f0a4002e2538c69f2bd07091ae4c1f 100644 (file)
@@ -51,30 +51,16 @@ public:
 
     void setMessage(const QString& text, DolphinStatusBar::Type type);
 
-    DolphinStatusBar::Type type() const
-    {
-        return m_type;
-    }
-    const QString& text() const
-    {
-        return m_text;
-    }
+    DolphinStatusBar::Type type() const;
 
-    void setDefaultText(const QString& text)
-    {
-        m_defaultText = text;
-    }
-    const QString& defaultText() const
-    {
-        return m_defaultText;
-    }
+    const QString& text() const;
+
+    void setDefaultText(const QString& text);
+    const QString& defaultText() const;
 
     // TODO: maybe a better approach is possible with the size hint
     void setMinimumTextHeight(int min);
-    int minimumTextHeight() const
-    {
-        return m_minTextHeight;
-    }
+    int minimumTextHeight() const;
 
     /**
      * Returns the gap of the width of the current set text to the
@@ -161,4 +147,29 @@ private:
     }
 };
 
+inline DolphinStatusBar::Type StatusBarMessageLabel::type() const
+{
+    return m_type;
+}
+
+inline const QString& StatusBarMessageLabel::text() const
+{
+    return m_text;
+}
+
+inline void StatusBarMessageLabel::setDefaultText(const QString& text)
+{
+    m_defaultText = text;
+}
+
+inline const QString& StatusBarMessageLabel::defaultText() const
+{
+    return m_defaultText;
+}
+
+inline int StatusBarMessageLabel::minimumTextHeight() const
+{
+    return m_minTextHeight;
+}
+
 #endif