Home · All Classes · Main Classes · Deprecated
Properties

MButtonStyle Class Reference

Style class for standard m buttons. More...

Inherits MWidgetStyle.

Inherited by MButtonIconStyle, MButtonSwitchStyle, and MCheckboxStyle.

List of all members.

Properties

QFont font
QString iconId
QString toggledIconId
QSize iconSize
Qt::Alignment iconAlign
QColor textColor
Qt::Alignment horizontalTextAlign
Qt::Alignment verticalTextAlign
int textMarginLeft
int textMarginTop
int textMarginRight
int textMarginBottom
int pressTimeout
qreal contentOpacity
QString transition

Detailed Description

Style class for standard m buttons.

        MButtonStyle {
            font: arial 12;

            icon-id: "my-icon";
            toggled-icon-id: "my-toggled-icon"
            icon-size: 32 32;
            icon-align: left;

            text-color: white;

            vertical-text-align: vcenter;
            horizontal-text-align: hcenter;

            text-margin-left: 5;
            text-margin-top: 0;
            text-margin-right: 5;
            text-margin-bottom: 0;
        }
See also:
MButtonStyleContainer MWidgetStyle Styling MButton MButtonView

Property Documentation

MButtonStyle::contentOpacity [read, write]

Content opacity.

Reimplemented in MButtonIconStyle.

MButtonStyle::font [read, write]

Font for the button text.

MButtonStyle::horizontalTextAlign [read, write]

Horizontal text alignment.

MButtonStyle::iconAlign [read, write]

Alignmentation of the icon.

MButtonStyle::iconId [read, write]

Icon identifier Identifier of the graphical resource that contains the icon graphics.

Will be used if no QIcon or iconID is specified in the button's model.

See also:
MButtonStyle::toggledIconId
MButtonStyle::iconSize [read, write]

Size of the button icon.

MButtonStyle::pressTimeout [read, write]

timeout for button press.

MButtonStyle::textColor [read, write]

Text color.

MButtonStyle::textMarginBottom [read, write]

Bottom text margin.

Empty space after bottom text boundary.

MButtonStyle::textMarginLeft [read, write]

Left text margin.

Empty space after left text boundary.

MButtonStyle::textMarginRight [read, write]

Right text margin.

Empty space after right text boundary.

MButtonStyle::textMarginTop [read, write]

Top text margin.

Empty space after top text boundary.

MButtonStyle::toggledIconId [read, write]

Toggled icon identifier Identifier of the graphical resource that contains the toggled icon graphics.

Will be used if no QIcon or toggledIconID is specified in the button's model.

See also:
MButtonStyle::iconId
MButtonStyle::transition [read, write]

name of the animation used for the transition

Supported values: "default", "expanding-background" and "imploding-background"

MButtonStyle::verticalTextAlign [read, write]

Vertical text alignment.


Copyright © 2010 Nokia Corporation
MeeGo Touch