PlasmaComponents
Signals | |
void | accepted () |
void | clickedOutside () |
void | rejected () |
Public Member Functions | |
void | accept () |
void | close () |
void | open () |
void | reject () |
Properties | |
Button | acceptButton |
alias | acceptButtonText |
list< Item > | content |
alias | privateButtonsHeight |
alias | privateTitleHeight |
Button | rejectButton |
alias | rejectButtonText |
int | status |
string | title |
Detailed Description
Provides a top-level window for short-term tasks and brief interaction with the user.
- Since
- 0.1
It is intended to be used for interaction more complex and bigger in size than Dialog. On the desktop its looks is almost identical to Dialog, on touch interfaces it is an almost fullscreen sliding Sheet. It is provided mostly for compatibility with mobile implementations.
Member Function Documentation
void Sheet::accept | ( | ) |
Accepts the dialog's request without any user interaction.
The method emits the accepted() signal and closes the dialog.
- See also
- reject()
|
signal |
Emitted when the user accepts the dialog's request or the accept() method is called.
|
signal |
Emitted when the user taps in the area that is inside the dialog's visual parent area but outside the dialog's area.
Normally the visual parent is the root object. In that case this signal is emitted if the user taps anywhere outside the dialog's area.
void Sheet::close | ( | ) |
Closes the dialog without any user interaction.
void Sheet::open | ( | ) |
Shows the dialog to the user.
void Sheet::reject | ( | ) |
Rejects the dialog's request without any user interaction.
The method emits the rejected() signal and closes the dialog.
- See also
- accept()
|
signal |
Emitted when the user rejects the dialog's request or the reject() method is called.
- See also
- accepted()
Property Documentation
Button Sheet::acceptButton |
button that when pressed will close the dialog, representing the user accepting it, accepted() will be called
list<Item> Sheet::content |
Button Sheet::rejectButton |
button that when pressed will close the dialog, representing the user rejecting it, rejected() will be called
int Sheet::status |
Indicates the dialog's phase in its life cycle.
The values are as follows:
- DialogStatus.Opening - the dialog is opening
- DialogStatus.Open - the dialog is open and visible to the user
- DialogStatus.Closing - the dialog is closing
- DialogStatus.Closed - the dialog is closed and not visible to the user
The dialog's initial status is DialogStatus.Closed.
The documentation for this class was generated from the following file:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:02:47 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.