Vuo  1.2.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Slots | Public Member Functions | List of all members
VuoDialogForInputEditor Class Reference

Description

A dialog that closes when the Enter key is pressed.

Public Slots

virtual void keyPressEvent (QKeyEvent *e)
 If the enter key is pressed, closes the dialog.
 
virtual bool event (QEvent *e)
 If focus is lost (the user has clicked elsewhere), closes the dialog.
 

Public Member Functions

 VuoDialogForInputEditor (bool isDark, bool showArrow)
 Initializes the appearance of the dialog.
 
QMargins getPopoverContentsMargins (void) const
 Returns the number of pixels on each side of the window that the input editor should avoid drawing.
 
QSize sizeHint (void) const
 Returns the size that this dialog would need in order to enclose its child widgets with a margin.
 

Constructor & Destructor Documentation

VuoDialogForInputEditor::VuoDialogForInputEditor ( bool  isDark,
bool  showArrow 
)

Initializes the appearance of the dialog.

Todo:
copied from VuoErrorPopover

Member Function Documentation

bool VuoDialogForInputEditor::event ( QEvent *  e)
virtualslot

If focus is lost (the user has clicked elsewhere), closes the dialog.

QMargins VuoDialogForInputEditor::getPopoverContentsMargins ( void  ) const

Returns the number of pixels on each side of the window that the input editor should avoid drawing.

void VuoDialogForInputEditor::keyPressEvent ( QKeyEvent *  e)
virtualslot

If the enter key is pressed, closes the dialog.

QSize VuoDialogForInputEditor::sizeHint ( void  ) const

Returns the size that this dialog would need in order to enclose its child widgets with a margin.

This enables child widgets to call adjustSize() on the dialog and preserve the margin.


The documentation for this class was generated from the following files: