]> git.sesse.net Git - kdenlive/blobdiff - src/statusbarmessagelabel.h
Make Mlt error message more visible (they don't close automatically)
[kdenlive] / src / statusbarmessagelabel.h
index 594b5551bc34bb7e28418a3093844502249086c3..ce4b3fe1e7cb7260df0ad7e9e11a63ca2a393d3f 100644 (file)
@@ -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);
@@ -136,7 +126,6 @@ private:
     int m_minTextHeight;
     QTimer* m_timer;
     QString m_text;
-    QString m_defaultText;
     QList<QString> 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;