Home · All Classes · Main Classes · Deprecated |
Style class for MLabel. More...
Inherits MWidgetStyle.
Properties | |
QColor | color |
QFont | font |
QColor | highlightColor |
QColor | activeHighlightColor |
qreal | textOpacity |
Qt::Alignment | horizontalAlignment |
Qt::Alignment | verticalAlignment |
int | preferredLineCount |
QString | preferredLineCountBehavior |
QPointF | paintOffset |
Style class for MLabel.
MLabelStyle { color: blue; font: arial 12; }
MLabelStyle::activeHighlightColor [read, write] |
Color for active (aka link that is being pressed down) highlighted text fragments.
See QColor::setNamedColor for possbile values.
MLabelStyle::color [read, write] |
Label font color.
See QColor::setNamedColor for possbile values.
MLabelStyle::font [read, write] |
Label font.
MLabelStyle::highlightColor [read, write] |
Color for highlighted text fragments.
See QColor::setNamedColor for possbile values.
MLabelStyle::horizontalAlignment [read, write] |
Horizontal alignment of the label.
MLabelStyle::paintOffset [read, write] |
Offsets the label painter by the given coordinates. Usually required to properly position font for rendering.
Default is 0,0, no additional translation for the painter.
MLabelStyle::preferredLineCount [read, write] |
Set the preferred height of the label to the given number of lines of text.
If there is not enough text to reach the preferredLineCount, then if preferredLineCountBehavior is set as MLabel::LineCountSetsPreferredHeight, the preferred height will be equal to the height of the lines given, plus the height of empty lines to fill out to the given preferredLineCount.
Default is -1, indicating to use the entire text.
Typically used with MLabel::setElide()
MLabelStyle::preferredLineCountBehavior [read, write] |
Describes how the preferredLineCount affects preferred height of the MLabel.
Default is MLabel::LineCountSetsPreferredHeight, "set". For MLabel::LineCountLimitsPreferredHeight, use "limit".
Only used if preferredLineCount > 0
qreal MLabelStyle::textOpacity [read, write] |
MLabelStyle::verticalAlignment [read, write] |
Vertical alignment of the label.
Copyright © 2010 Nokia Corporation | MeeGo Touch |