QtPdWidgets
2.3.1
|
Touch edit for non-process data. More...
#include <NoPdTouchEdit.h>
Signals | |
void | valueChanged () |
Public Member Functions | |
NoPdTouchEdit (QWidget *parent=0) | |
Constructor. More... | |
virtual | ~NoPdTouchEdit () |
Destructor. More... | |
double | getValue () const |
void | setValue (double) |
Sets the text value. More... | |
void | resetValue () |
Resets the value. More... | |
Qt::Alignment | getAlignment () const |
void | setAlignment (Qt::Alignment) |
Sets the text alignment. More... | |
void | resetAlignment () |
Resets the number of decimals. More... | |
quint32 | getDecimals () const |
void | setDecimals (quint32) |
Sets the number of decimals. More... | |
void | resetDecimals () |
Resets the number of decimals. More... | |
QString | getSuffix () const |
void | setSuffix (const QString &) |
Sets the suffix to display after the value. More... | |
void | resetSuffix () |
Resets the suffix to display after the value. More... | |
double | getLowerLimit () const |
void | setLowerLimit (double) |
Sets the lowerLimit. More... | |
void | resetLowerLimit () |
Resets the lowerLimit. More... | |
double | getUpperLimit () const |
void | setUpperLimit (double) |
Sets the upperLimit. More... | |
void | resetUpperLimit () |
Resets the upperLimit. More... | |
QSize | sizeHint () const |
Gives a hint aboute the optimal size. More... | |
Protected Member Functions | |
bool | event (QEvent *) override |
Eventhandler. More... | |
void | paintEvent (QPaintEvent *) override |
Paint function. More... | |
void | drawText (QPaintEvent *, QPainter &) |
Draws the text. More... | |
void | changeEvent (QEvent *) override |
React to state changes. More... | |
Properties | |
double | value |
Qt::Alignment | alignment |
quint32 | decimals |
QString | suffix |
double | lowerLimit |
double | upperLimit |
Private Attributes | |
QScopedPointer< NoPdTouchEditPrivate > const | d_ptr |
Touch edit for non-process data.
NoPdTouchEdit::NoPdTouchEdit | ( | QWidget * | parent = 0 | ) |
Constructor.
parent | Parent widget. |
|
virtual |
Destructor.
|
overrideprotected |
React to state changes.
References event().
|
protected |
Draws the text.
event | Paint event flags. |
painter | Painter. |
References event().
Referenced by paintEvent().
|
overrideprotected |
Eventhandler.
Referenced by changeEvent(), drawText(), and paintEvent().
Qt::Alignment NoPdTouchEdit::getAlignment | ( | ) | const |
quint32 NoPdTouchEdit::getDecimals | ( | ) | const |
double NoPdTouchEdit::getLowerLimit | ( | ) | const |
QString NoPdTouchEdit::getSuffix | ( | ) | const |
double NoPdTouchEdit::getUpperLimit | ( | ) | const |
double NoPdTouchEdit::getValue | ( | ) | const |
|
overrideprotected |
void NoPdTouchEdit::resetAlignment | ( | ) |
Resets the number of decimals.
References DEFAULT_ALIGNMENT, and setAlignment().
void NoPdTouchEdit::resetDecimals | ( | ) |
Resets the number of decimals.
References DEFAULT_DECIMALS, and setDecimals().
void NoPdTouchEdit::resetLowerLimit | ( | ) |
Resets the lowerLimit.
References DEFAULT_LOWERLIMIT, and setLowerLimit().
void NoPdTouchEdit::resetSuffix | ( | ) |
Resets the suffix to display after the value.
References DEFAULT_SUFFIX, and setSuffix().
void NoPdTouchEdit::resetUpperLimit | ( | ) |
Resets the upperLimit.
References DEFAULT_UPPERLIMIT, and setUpperLimit().
void NoPdTouchEdit::resetValue | ( | ) |
Resets the value.
References DEFAULT_VALUE, and setValue().
void NoPdTouchEdit::setAlignment | ( | Qt::Alignment | a | ) |
Sets the text alignment.
Referenced by resetAlignment().
void NoPdTouchEdit::setDecimals | ( | quint32 | decimals | ) |
void NoPdTouchEdit::setLowerLimit | ( | double | limit | ) |
Sets the lowerLimit.
Referenced by resetLowerLimit().
void NoPdTouchEdit::setSuffix | ( | const QString & | suffix | ) |
void NoPdTouchEdit::setUpperLimit | ( | double | limit | ) |
Sets the upperLimit.
Referenced by resetUpperLimit().
void NoPdTouchEdit::setValue | ( | double | v | ) |
QSize NoPdTouchEdit::sizeHint | ( | ) | const |
Gives a hint aboute the optimal size.
|
signal |
Referenced by setValue().
|
private |
|
readwrite |
|
readwrite |
Referenced by setDecimals().
|
readwrite |
|
readwrite |
Referenced by setSuffix().
|
readwrite |
|
readwrite |