Vuo  1.2.8
Public Slots | Public Member Functions | Static 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. More...
 
virtual bool event (QEvent *e)
 If focus is lost (the user has clicked elsewhere), closes the dialog. More...
 

Public Member Functions

 VuoDialogForInputEditor (bool isDark, bool showArrow)
 Initializes the appearance of the dialog. More...
 
QMargins getPopoverContentsMargins (void) const
 Returns the number of pixels on each side of the window that the input editor should avoid drawing. More...
 
QSize sizeHint (void) const
 Returns the size that this dialog would need in order to enclose its child widgets with a margin. More...
 
void setShowArrow (bool show)
 Sets the boolean indicating whether or not to display an arrow. More...
 

Static Public Member Functions

static QString getStyleSheet (bool isDark)
 Returns a Qt stylesheet that covers most UI widgets. More...
 

Constructor & Destructor Documentation

◆ VuoDialogForInputEditor()

VuoDialogForInputEditor::VuoDialogForInputEditor ( bool  isDark,
bool  showArrow 
)

Initializes the appearance of the dialog.

Todo:
copied from VuoErrorPopover

Member Function Documentation

◆ event

bool VuoDialogForInputEditor::event ( QEvent *  e)
virtualslot

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

◆ getPopoverContentsMargins()

QMargins VuoDialogForInputEditor::getPopoverContentsMargins ( void  ) const

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

◆ getStyleSheet()

QString VuoDialogForInputEditor::getStyleSheet ( bool  isDark)
static

Returns a Qt stylesheet that covers most UI widgets.

◆ keyPressEvent

void VuoDialogForInputEditor::keyPressEvent ( QKeyEvent *  e)
virtualslot

If the enter key is pressed, closes the dialog.

◆ setShowArrow()

void VuoDialogForInputEditor::setShowArrow ( bool  show)

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

◆ 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.


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