Ocular Engine
Ocular::Editor::LineEdit Class Reference

#include <LineEdit.hpp>

Inheritance diagram for Ocular::Editor::LineEdit:

Public Member Functions

 LineEdit (LineType type, QWidget *parent=nullptr)
bool wasEdited (bool reset=true)
void setInvalid (bool invalid)
int32_t asInt () const
uint32_t asUint () const
float asFloat () const
template<typename T >
as () const

Detailed Description

Helper class that automatically handles input mask, etc. setup based on the specified LineType.

Member Function Documentation

bool Ocular::Editor::LineEdit::wasEdited ( bool  reset = true)
[in]resetIf TRUE, then the edited flag is reset back to FALSE.
TRUE if the user has modifed this edit (return key was pressed).

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