MeeGo 1.2 Harmattan Developer Documentation Develop for the Nokia N9

QML MenuStyle Element

BusyIndicatorStyle properties and default values explained More...

Inherits Style

Inherited by ContextMenuStyle.

This element was introduced in qt-components 4.7.

Properties

Detailed Description

Custom platformStyle example

 Menu {
     platformStyle: MenuStyle {
         leftMargin: 0
         rightMargin: 0
         topMargin: 0
         bottomMargin: 0
         leftPadding: 12
         rightPadding: 12
         topPadding: 12
         bottomPadding: 12
         dim: 0.75
         fadeInDuration: 450
         fadeOutDuration: 450
         fadeInDelay: 50
         fadeOutDelay: 50
         faderBackground: "faderBackground.png"
         pressDelay: 150
     }
 }

Property Documentation

bottomMargin : real

Property default value is 0

Bottom margin.


bottomPadding : real

Property default value is 16

Bottom padding.


dim : double

Property default value is 0.9

Fader property. Defines background transparency. Value range limit is 0.0 to 1.0


fadeInDelay : int

Property default value is 0

Fader property. Defines fade in delay in milliseconds.


fadeInDuration : int

Property default value is 350

Fader property. Defines fade in duration in milliseconds.


fadeOutDelay : int

Property default value is 0

Fader property. Defines fade out delay in milliseconds.


fadeOutDuration : int

Property default value is 350

Fader property. Defines fade out duration in milliseconds.


faderBackground : string

Property default value: "image://theme/meegotouch-menu-dimmer"

Background image location.


leftMargin : real

Property default value is ((screen.currentOrientation == 1)||(screen.currentOrientation==4))?0:400

Left margin.


leftPadding : real

Property default value is 16

Left padding.


pressDelay : int

Property default value is 200

Press delay. After the indicated time the "press" is regarded as a "press" on the item and not as a flick


rightMargin : real

Property default value is ((screen.currentOrientation == 1)||(screen.currentOrientation==4))?0:0

Right margin.


rightPadding : real

Property default value is 16

Right padding.


topMargin : real

Property default value is ((screen.currentOrientation==1)||(screen.currentOrientation==4))?16:0

Top margin.


topPadding : real

Property default value is 16

Top padding.