A wrapper for a QLineEdit that handles user input of type int, and provides Vapor's standard setters, getters, and signals.
More...
#include <VIntLineEdit.h>
|
| | VIntLineEdit (int value=0) |
| |
| void | SetValueInt (int value) |
| | Set the current int value in the line edit.
|
| |
| int | GetValueInt () const |
| | Get the current int value in the line iedit.
|
| |
| int | GetNumDigits () const |
| | If the line edit is numeric, get the number of digits of the number being displayed.
|
| |
| void | SetNumDigits (int digits) |
| | If the line edit is numeric, set the number of digits of the number being displayed.
|
| |
| bool | GetSciNotation () const |
| | If the line edit is numeric, get whether the display is in scientific notation.
|
| |
| void | SetSciNotation (bool sciNotation) |
| | If the line edit is numeric, set whether the display is in scientific notation.
|
| |
| | VStringLineEdit (std::string value="") |
| |
| void | SetValueString (std::string value) |
| | Set the current string value in the line edit.
|
| |
| std::string | GetValueString () const |
| | Get the current value in the line edit.
|
| |
| void | RemoveContextMenu () |
| | Remove the current context menu.
|
| |
| void | SetCustomContextMenu () |
| | Create a custom context menu for the QLineEdit.
|
| |
| void | SetReadOnly (bool b) |
| |
| void | Clear () |
| |
| void | SetAutoTooltip (bool on) |
| |
A wrapper for a QLineEdit that handles user input of type int, and provides Vapor's standard setters, getters, and signals.
Definition at line 18 of file VIntLineEdit.h.
◆ VIntLineEdit()
| VIntLineEdit::VIntLineEdit |
( |
int |
value = 0 | ) |
|
◆ _checkOverflow()
| bool VIntLineEdit::_checkOverflow |
( |
double |
value | ) |
|
|
protected |
◆ _formatValue()
| std::string VIntLineEdit::_formatValue |
( |
int |
value | ) |
|
|
protected |
◆ _valueChanged()
| virtual void VIntLineEdit::_valueChanged |
( |
| ) |
|
|
protectedvirtual |
Called whenever the line edit's value is changed. Must be reimplemented by derived classes to handle correct formatting
Implements VNumericLineEdit.
◆ GetValueInt()
| int VIntLineEdit::GetValueInt |
( |
| ) |
const |
Get the current int value in the line iedit.
◆ SetValueInt()
| void VIntLineEdit::SetValueInt |
( |
int |
value | ) |
|
Set the current int value in the line edit.
◆ ValueChanged
| void VIntLineEdit::ValueChanged |
( |
int |
value | ) |
|
|
signal |
◆ _value
The documentation for this class was generated from the following file: