┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/statusbar/statusbarmessagelabel.h
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2010-04-03 08:48:35 +0000
committerPeter Penz <[email protected]>2010-04-03 08:48:35 +0000
commit7ae94915f72857ed4825ef6b78e4753896be28f9 (patch)
tree2359b214d6dff9584ffce0bab32e45c5ca142937 /src/statusbar/statusbarmessagelabel.h
parent2dc23d4e6dc8a3b5d9e4f816fe9ddab13f957cc6 (diff)
Cleanup of statusbar widgets:
- Provide proper size hints instead of hiding extensions on small widths - Provide context menu, which allows to enable/disable the zoom level extension and the space info extension. Also copying the status bar text is possible (useful e. g. for error messages). BUG: 188980 svn path=/trunk/KDE/kdebase/apps/; revision=1110498
Diffstat (limited to 'src/statusbar/statusbarmessagelabel.h')
-rw-r--r--src/statusbar/statusbarmessagelabel.h33
1 files changed, 4 insertions, 29 deletions
diff --git a/src/statusbar/statusbarmessagelabel.h b/src/statusbar/statusbarmessagelabel.h
index a5c72b403..88b620eb7 100644
--- a/src/statusbar/statusbarmessagelabel.h
+++ b/src/statusbar/statusbarmessagelabel.h
@@ -30,7 +30,7 @@
class QPaintEvent;
class QResizeEvent;
-class QPushButton;
+class QToolButton;
class QTimer;
/**
@@ -53,10 +53,10 @@ public:
DolphinStatusBar::Type type() const;
- const QString& text() const;
+ QString text() const;
void setDefaultText(const QString& text);
- const QString& defaultText() const;
+ QString defaultText() const;
// TODO: maybe a better approach is possible with the size hint
void setMinimumTextHeight(int min);
@@ -137,32 +137,7 @@ private:
QString m_defaultText;
QList<QString> m_pendingMessages;
QPixmap m_pixmap;
- QPushButton* m_closeButton;
+ QToolButton* m_closeButton;
};
-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