Qt Components Hildon  0.20
QML components for Maemo5 with Hildon styling.
 All Classes Functions Properties Groups Pages
Public Member Functions | Properties | List of all members
MessageBox Class Reference

Provides a modal dialog for informing the user or for asking the user a question and receiving an answer. More...

Inherits Dialog.

Public Member Functions

enumeration open ()
 Shows the message box as a modal dialog, blocking until the user closes it.

Properties

string acceptButtonText
 The text to be displayed in the 'accept' button.
string rejectButtonText
 The text to be displayed in the 'reject' button.
string text
 The text to be displayed in the message label.
enumeration textFormat
 The formatting to be used for message label.
- Properties inherited from Dialog
list< QDeclarativeItem > children
 The visual children of the dialog.
list< object > data
 The children of the dialog.
bool showProgressIndicator
 Whether the progress indicator should be visible.
enumeration status
 The current status of the dialog.

Detailed Description

Provides a modal dialog for informing the user or for asking the user a question and receiving an answer.

Member Function Documentation

enumeration MessageBox::open ( )

Shows the message box as a modal dialog, blocking until the user closes it.

Returns

The return value is the one of the following:

Name Description Dialog.Accepted The dialog was accepted.
Dialog.Rejected The dialog was rejected.

Property Documentation

string MessageBox::acceptButtonText

The text to be displayed in the 'accept' button.

If the text is set to an empty string, the button will not be displayed.

string MessageBox::rejectButtonText

The text to be displayed in the 'reject' button.

If the text is set to an empty string, the button will not be displayed.