API Documentation

Documentation for developing SailfishOS applications

Keypad QML Type

A dialer-type keypad More...

Import Statement: import Sailfish.Silica 1.0

Properties

Signals

Detailed Description

The Keypad type enables the user to interact with a standard dialer keypad.

The keypad consists of 12 keys in a 3x4 layout.

Property Documentation

pressedButtonColor : color

This property holds the color of a keypad button when it is pressed.

The default value is the same as BackgroundItem::highlightedColor.


pressedTextColor : color

This property holds the color of a keypad button's text when the button is pressed.

The default value is Theme.highlightColor.


symbolsVisible : bool

If set to true (the default), the "*" and "#" buttons will be displayed in the keypad.


textColor : color

This property holds the color of the keypad button text.

The default value is Theme.primaryColor.


vanityDialNumbers : list<string>

This property holds a list of strings to display under the numbers, from top-left to bottom-right. The default is: ["", "abc", "def", "ghi", "jkl", "nmo", "pqrs", "tuv", "wxyz", "+", "", ""]

See also vanityDialNumbersVisible.


vanityDialNumbersVisible : boolean

If set to true (the default), the vanityDialNumbers will be displayed under the numbers.

See also vanityDialNumbers.


voiceMailIconSource : url

This property holds the url of the icon to display for the voice mail function, which is invoked by press and hold on the '1' key.


Signal Documentation

onCanceled(string number)

This signal handler is called when a press is canceled, due to a Flickable stealing the event, for example.


onClicked(string number)

This signal handler is called when a number is clicked.


onPressed(string number)

This signal handler is called when a number is pressed.


onReleased(string number)

This signal handler is called when a number is released.


onVoiceMailCalled()

This signal handler is called when the '1' key is pressed and held.


We use cookies to improve your user experience and to help us to develop our services. By continuing to browse the site, you approve of our use of cookies.