Skip to content

class_acceptdialog

reduz edited this page Feb 23, 2014 · 10 revisions

AcceptDialog

####Inherits: WindowDialog ####Category: Core

Brief Description

Base dialog for user notification.

Member Functions

Signals

  • confirmed ( )
  • custom&#95action ( String action )

Description

This dialog is useful for small notifications to the user about an event. It can only be accepted or closed, with the same result.

Member Function Description

Return the OK Button.

Return the label used for built-in text.

  • void set&#95hide&#95on&#95ok ( bool enabled )

Set whether the dialog is hidden when accepted (default true).

  • bool get&#95hide&#95on&#95ok ( ) const

Return true if the dialog will be hidden when accepted (default true).

  • void register&#95text&#95enter ( Object line_edit )

Register a LineEdit in the dialog. When the enter key is pressed, the dialog will be accepted.

  • void set&#95text ( String text )

Set the built-in label text.

  • String get&#95text ( ) const

Return the built-in label text.

Clone this wiki locally