diff options
| author | Peter Penz <[email protected]> | 2007-10-15 16:23:51 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2007-10-15 16:23:51 +0000 |
| commit | 2ddc27b423f37ebf42b28a34a78fe41a5b35a460 (patch) | |
| tree | 0eba6364abecb41045798344d78f950046693394 /src/statusbarmessagelabel.h | |
| parent | d059b705a9b50572537cb938b3f593de0d305f9a (diff) | |
minor cleanups
svn path=/trunk/KDE/kdebase/apps/; revision=725523
Diffstat (limited to 'src/statusbarmessagelabel.h')
| -rw-r--r-- | src/statusbarmessagelabel.h | 51 |
1 files changed, 31 insertions, 20 deletions
diff --git a/src/statusbarmessagelabel.h b/src/statusbarmessagelabel.h index 25610d4b6..0eacad971 100644 --- a/src/statusbarmessagelabel.h +++ b/src/statusbarmessagelabel.h @@ -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 |
