QtPdWidgets  2.3.1
Signals | Public Member Functions | Protected Member Functions | Properties | Private Attributes | List of all members
Pd::NoPdTouchEdit Class Reference

Touch edit for non-process data. More...

#include <NoPdTouchEdit.h>

Inheritance diagram for Pd::NoPdTouchEdit:
Inheritance graph
[legend]
Collaboration diagram for Pd::NoPdTouchEdit:
Collaboration graph
[legend]

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
 

Detailed Description

Touch edit for non-process data.

Constructor & Destructor Documentation

◆ NoPdTouchEdit()

NoPdTouchEdit::NoPdTouchEdit ( QWidget *  parent = 0)

Constructor.

Parameters
parentParent widget.

◆ ~NoPdTouchEdit()

NoPdTouchEdit::~NoPdTouchEdit ( )
virtual

Destructor.

Member Function Documentation

◆ changeEvent()

void NoPdTouchEdit::changeEvent ( QEvent *  event)
overrideprotected

React to state changes.

References event().

◆ drawText()

void NoPdTouchEdit::drawText ( QPaintEvent *  event,
QPainter &  painter 
)
protected

Draws the text.

Parameters
eventPaint event flags.
painterPainter.

References event().

Referenced by paintEvent().

◆ event()

bool NoPdTouchEdit::event ( QEvent *  event)
overrideprotected

Eventhandler.

Referenced by changeEvent(), drawText(), and paintEvent().

◆ getAlignment()

Qt::Alignment NoPdTouchEdit::getAlignment ( ) const

◆ getDecimals()

quint32 NoPdTouchEdit::getDecimals ( ) const

◆ getLowerLimit()

double NoPdTouchEdit::getLowerLimit ( ) const

◆ getSuffix()

QString NoPdTouchEdit::getSuffix ( ) const

◆ getUpperLimit()

double NoPdTouchEdit::getUpperLimit ( ) const

◆ getValue()

double NoPdTouchEdit::getValue ( ) const

◆ paintEvent()

void NoPdTouchEdit::paintEvent ( QPaintEvent *  event)
overrideprotected

Paint function.

Parameters
eventPaint event flags.

References drawText(), and event().

◆ resetAlignment()

void NoPdTouchEdit::resetAlignment ( )

Resets the number of decimals.

References DEFAULT_ALIGNMENT, and setAlignment().

◆ resetDecimals()

void NoPdTouchEdit::resetDecimals ( )

Resets the number of decimals.

References DEFAULT_DECIMALS, and setDecimals().

◆ resetLowerLimit()

void NoPdTouchEdit::resetLowerLimit ( )

Resets the lowerLimit.

References DEFAULT_LOWERLIMIT, and setLowerLimit().

◆ resetSuffix()

void NoPdTouchEdit::resetSuffix ( )

Resets the suffix to display after the value.

References DEFAULT_SUFFIX, and setSuffix().

◆ resetUpperLimit()

void NoPdTouchEdit::resetUpperLimit ( )

Resets the upperLimit.

References DEFAULT_UPPERLIMIT, and setUpperLimit().

◆ resetValue()

void NoPdTouchEdit::resetValue ( )

Resets the value.

References DEFAULT_VALUE, and setValue().

◆ setAlignment()

void NoPdTouchEdit::setAlignment ( Qt::Alignment  a)

Sets the text alignment.

Referenced by resetAlignment().

◆ setDecimals()

void NoPdTouchEdit::setDecimals ( quint32  decimals)

Sets the number of decimals.

References decimals.

Referenced by resetDecimals().

◆ setLowerLimit()

void NoPdTouchEdit::setLowerLimit ( double  limit)

Sets the lowerLimit.

Referenced by resetLowerLimit().

◆ setSuffix()

void NoPdTouchEdit::setSuffix ( const QString &  suffix)

Sets the suffix to display after the value.

References suffix.

Referenced by resetSuffix().

◆ setUpperLimit()

void NoPdTouchEdit::setUpperLimit ( double  limit)

Sets the upperLimit.

Referenced by resetUpperLimit().

◆ setValue()

void NoPdTouchEdit::setValue ( double  v)

Sets the text value.

References valueChanged().

Referenced by resetValue().

◆ sizeHint()

QSize NoPdTouchEdit::sizeHint ( ) const

Gives a hint aboute the optimal size.

◆ valueChanged

void Pd::NoPdTouchEdit::valueChanged ( )
signal

Referenced by setValue().

Member Data Documentation

◆ d_ptr

QScopedPointer<NoPdTouchEditPrivate> const Pd::NoPdTouchEdit::d_ptr
private

Property Documentation

◆ alignment

Qt::Alignment Pd::NoPdTouchEdit::alignment
readwrite

◆ decimals

quint32 Pd::NoPdTouchEdit::decimals
readwrite

Referenced by setDecimals().

◆ lowerLimit

double Pd::NoPdTouchEdit::lowerLimit
readwrite

◆ suffix

QString Pd::NoPdTouchEdit::suffix
readwrite

Referenced by setSuffix().

◆ upperLimit

double Pd::NoPdTouchEdit::upperLimit
readwrite

◆ value

double Pd::NoPdTouchEdit::value
readwrite

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