Logo Search packages:      
Sourcecode: kdenlive version File versions

int StatusBarMessageLabel::widthGap (  )  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.

Definition at line 131 of file statusbarmessagelabel.cpp.

References availableTextWidth().

                                          {
    QFontMetrics fontMetrics(font());
    const int defaultGap = 10;
    return fontMetrics.width(m_text) - availableTextWidth() + defaultGap;
}


Generated by  Doxygen 1.6.0   Back to index