Vuo 2.4.4
Loading...
Searching...
No Matches
Public Slots | Public Member Functions | List of all members
VuoDialogForInputEditor Class Reference

Description

A dialog that closes when the Enter key is pressed.

Definition at line 15 of file VuoDialogForInputEditor.hh.

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.
 
void setShowArrow (bool show)
 Sets the boolean indicating whether or not to display an arrow.
 

Constructor & Destructor Documentation

◆ VuoDialogForInputEditor()

VuoDialogForInputEditor::VuoDialogForInputEditor ( bool  isDark,
bool  showArrow 
)

Initializes the appearance of the dialog.

Definition at line 19 of file VuoDialogForInputEditor.cc.

Member Function Documentation

◆ event

bool VuoDialogForInputEditor::event ( QEvent *  e)
virtualslot

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

Definition at line 134 of file VuoDialogForInputEditor.cc.

◆ getPopoverContentsMargins()

QMargins VuoDialogForInputEditor::getPopoverContentsMargins ( void  ) const

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

Definition at line 63 of file VuoDialogForInputEditor.cc.

◆ keyPressEvent

void VuoDialogForInputEditor::keyPressEvent ( QKeyEvent *  e)
virtualslot

If the enter key is pressed, closes the dialog.

Definition at line 120 of file VuoDialogForInputEditor.cc.

◆ setShowArrow()

void VuoDialogForInputEditor::setShowArrow ( bool  show)

Sets the boolean indicating whether or not to display an arrow.

Definition at line 152 of file VuoDialogForInputEditor.cc.

◆ sizeHint()

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.

Definition at line 72 of file VuoDialogForInputEditor.cc.


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