diff options
| author | Peter Penz <[email protected]> | 2007-04-09 19:12:54 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2007-04-09 19:12:54 +0000 |
| commit | c8a4f1fd8d3c9b50e51b7234123b3fbe0b979552 (patch) | |
| tree | c8e29897fa7457cd31ffb51666c7e3cb8a5a2fea /src/statusbarmessagelabel.h | |
| parent | 30161a7b3fe76578f43a61381c98a5ae475ed52a (diff) | |
adapt Dolphin to kdelibs coding style (http://techbase.kde.org/Policies/Kdelibs_Coding_Style) by using:
astyle --indent=spaces=4 --brackets=linux \
--indent-labels --pad=oper --unpad=paren \
--one-line=keep-statements --convert-tabs \
--indent-preprocessor \
`find -type f -name '*.cpp'` `find -type f -name '*.h'`
svn path=/trunk/KDE/kdebase/apps/; revision=651981
Diffstat (limited to 'src/statusbarmessagelabel.h')
| -rw-r--r-- | src/statusbarmessagelabel.h | 38 |
1 files changed, 30 insertions, 8 deletions
diff --git a/src/statusbarmessagelabel.h b/src/statusbarmessagelabel.h index 9f7c7a4a6..678fde08b 100644 --- a/src/statusbarmessagelabel.h +++ b/src/statusbarmessagelabel.h @@ -51,15 +51,30 @@ 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 + { + return m_type; + } + const QString& text() const + { + return m_text; + } - void setDefaultText(const QString& text) { m_defaultText = text; } - const QString& defaultText() const { return m_defaultText; } + void setDefaultText(const QString& text) + { + m_defaultText = text; + } + const QString& defaultText() const + { + return m_defaultText; + } // TODO: maybe a better approach is possible with the size hint void setMinimumTextHeight(int min); - int minimumTextHeight() const { return m_minTextHeight; } + int minimumTextHeight() const + { + return m_minTextHeight; + } /** * Returns the gap of the width of the current set text to the @@ -116,14 +131,18 @@ private: void reset(); private: - enum State { + enum State + { Default, Illuminate, Illuminated, Desaturate }; - enum { GeometryTimeout = 100 }; + enum + { + GeometryTimeout = 100 + }; DolphinStatusBar::Type m_type; State m_state; @@ -140,7 +159,10 @@ private: const QColor& c2, int percent) const; - int borderGap() const { return 2; } + int borderGap() const + { + return 2; + } }; #endif |
