Home · All Classes · Main Classes · Deprecated
Properties

MButtonSwitchStyle Class Reference

Style class for switch buttons. More...

Inherits MButtonStyle.

List of all members.

Properties

QPointF thumbShadowOffset
MFeedback pressOnFeedback
MFeedback pressOffFeedback
MFeedback releaseOnFeedback
MFeedback releaseOffFeedback
int thumbMargin

Detailed Description

Style class for switch buttons.

        MButtonSwitchStyle {
            // slider is behind thumb, but above background
            slider-image: "mbutton-switch-colorstripe";

            // slider-mask defines the shape of the slider-image
            slider-mask: "mbutton-switch-mask" 15px 15px 15px 15px;

            // thumb is the sliding part, should slide across the whole area
            thumb-image: "mbutton-switch-thumb" 15px 15px 15px 15px;
        }
See also:
MButtonSwitchStyleContainer MWidgetStyle MButtonStyle Styling MButton MButtonSwitchView

Property Documentation

MButtonSwitchStyle::pressOffFeedback [read, write]

Feedback given when pressing a switch about to switch off.

MButtonSwitchStyle::pressOnFeedback [read, write]

Feedback given when pressing a switch about to switch on.

MButtonSwitchStyle::releaseOffFeedback [read, write]

Feedback given when releasing a switch about to switch off.

MButtonSwitchStyle::releaseOnFeedback [read, write]

Feedback given when releasing a switch about to switch on.

int MButtonSwitchStyle::thumbMargin [read, write]
MButtonSwitchStyle::thumbShadowOffset [read, write]

The offset of the shadow of the thumb of the switch.


Copyright © 2010 Nokia Corporation
MeeGo Touch