X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fstatusbarmessagelabel.h;h=5f3cc8a43aa594734618e627348bac72e8809119;hb=2b1c40908368fff4b20912551c266e45c89f6607;hp=594b5551bc34bb7e28418a3093844502249086c3;hpb=c42a026234a44a2d766e57bc64a6ac7bbd094000;p=kdenlive diff --git a/src/statusbarmessagelabel.h b/src/statusbarmessagelabel.h index 594b5551..5f3cc8a4 100644 --- a/src/statusbarmessagelabel.h +++ b/src/statusbarmessagelabel.h @@ -24,16 +24,16 @@ #define STATUSBARMESSAGELABEL_H -#include -#include +#include +#include +#include +#include -#include #include class QPaintEvent; class QResizeEvent; class QPushButton; -class QTimer; /** * @brief Represents a message text label as part of the status bar. @@ -55,20 +55,10 @@ public: 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; - /** - * Returns the gap of the width of the current set text to the - * width of the message label. A gap <= 0 means that the text - * fits into the available width. - */ - int widthGap() const; - protected: /** @see QWidget::paintEvent() */ virtual void paintEvent(QPaintEvent* event); @@ -134,9 +124,8 @@ private: State m_state; int m_illumination; int m_minTextHeight; - QTimer* m_timer; + QTimer m_timer; QString m_text; - QString m_defaultText; QList m_pendingMessages; QPixmap m_pixmap; QPushButton* m_closeButton; @@ -152,16 +141,6 @@ 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;