18 #ifndef __H__OCULAR_EDITOR_LINE_EDIT__H__
19 #define __H__OCULAR_EDITOR_LINE_EDIT__H__
21 #include <QtWidgets/qlineedit.h>
62 LineEdit(LineType type, QWidget* parent =
nullptr);
74 void setInvalid(
bool invalid);
79 int32_t asInt()
const;
84 uint32_t asUint()
const;
89 float asFloat()
const;
92 T as()
const {
return OcularString->fromString<T>(text().toStdString()); }
98 void contentsChanged(QString
const& text);
99 void userEdited(QString
const& text);
Note: Once this library is made dynamic, this will no longer be needed.
Definition: Common.hpp:70
bool wasEdited(bool reset=true)
Definition: LineEdit.cpp:90
Definition: LineEdit.hpp:56