PlasmaComponents
#include <qrangemodel.h>

Public Slots | |
void | setPosition (qreal position) |
void | setValue (qreal value) |
void | toMaximum () |
void | toMinimum () |
Signals | |
void | invertedChanged (bool inverted) |
void | maximumChanged (qreal max) |
void | minimumChanged (qreal min) |
void | positionAtMaximumChanged (qreal max) |
void | positionAtMinimumChanged (qreal min) |
void | positionChanged (qreal position) |
void | stepSizeChanged (qreal stepSize) |
void | valueChanged (qreal value) |
Public Member Functions | |
QRangeModel (QObject *parent=0) | |
virtual | ~QRangeModel () |
bool | inverted () const |
qreal | maximum () const |
qreal | minimum () const |
qreal | position () const |
qreal | positionAtMaximum () const |
qreal | positionAtMinimum () const |
Q_INVOKABLE qreal | positionForValue (qreal value) const |
void | setInverted (bool inverted) |
void | setMaximum (qreal max) |
void | setMinimum (qreal min) |
void | setPositionAtMaximum (qreal posAtMax) |
void | setPositionAtMinimum (qreal posAtMin) |
void | setPositionRange (qreal min, qreal max) |
void | setRange (qreal min, qreal max) |
void | setStepSize (qreal stepSize) |
qreal | stepSize () const |
qreal | value () const |
Q_INVOKABLE qreal | valueForPosition (qreal position) const |
![]() | |
QObject (QObject *parent) | |
QObject (QObject *parent, const char *name) | |
virtual | ~QObject () |
bool | blockSignals (bool block) |
QObject * | child (const char *objName, const char *inheritsClass, bool recursiveSearch) const |
const QObjectList & | children () const |
const char * | className () const |
bool | connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const |
void | deleteLater () |
void | destroyed (QObject *obj) |
bool | disconnect (const QObject *receiver, const char *method) |
bool | disconnect (const char *signal, const QObject *receiver, const char *method) |
void | dumpObjectInfo () |
void | dumpObjectTree () |
QList< QByteArray > | dynamicPropertyNames () const |
virtual bool | event (QEvent *e) |
virtual bool | eventFilter (QObject *watched, QEvent *event) |
T | findChild (const QString &name) const |
QList< T > | findChildren (const QRegExp ®Exp) const |
QList< T > | findChildren (const QString &name) const |
bool | inherits (const char *className) const |
void | insertChild (QObject *object) |
void | installEventFilter (QObject *filterObj) |
bool | isA (const char *className) const |
bool | isWidgetType () const |
void | killTimer (int id) |
virtual const QMetaObject * | metaObject () const |
void | moveToThread (QThread *targetThread) |
const char * | name () const |
const char * | name (const char *defaultName) const |
QString | objectName () const |
QObject * | parent () const |
QVariant | property (const char *name) const |
void | removeChild (QObject *object) |
void | removeEventFilter (QObject *obj) |
void | setName (const char *name) |
void | setObjectName (const QString &name) |
void | setParent (QObject *parent) |
bool | setProperty (const char *name, const QVariant &value) |
bool | signalsBlocked () const |
int | startTimer (int interval) |
QThread * | thread () const |
Protected Member Functions | |
QRangeModel (QRangeModelPrivate &dd, QObject *parent) | |
![]() | |
bool | checkConnectArgs (const char *signal, const QObject *object, const char *method) |
virtual void | childEvent (QChildEvent *event) |
virtual void | connectNotify (const char *signal) |
virtual void | customEvent (QEvent *event) |
virtual void | disconnectNotify (const char *signal) |
int | receivers (const char *signal) const |
QObject * | sender () const |
int | senderSignalIndex () const |
virtual void | timerEvent (QTimerEvent *event) |
Protected Attributes | |
QRangeModelPrivate * | d_ptr |
Properties | |
bool | inverted |
qreal | maximumValue |
qreal | minimumValue |
qreal | position |
qreal | positionAtMaximum |
qreal | positionAtMinimum |
qreal | stepSize |
qreal | value |
![]() | |
objectName | |
Additional Inherited Members | |
![]() | |
bool | connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type) |
bool | connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type) |
bool | disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method) |
bool | disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method) |
QString | tr (const char *sourceText, const char *disambiguation, int n) |
QString | trUtf8 (const char *sourceText, const char *disambiguation, int n) |
![]() | |
QByteArray | normalizeSignalSlot (const char *signalSlot) |
Detailed Description
Definition at line 51 of file qrangemodel.h.
Constructor & Destructor Documentation
QRangeModel::QRangeModel | ( | QObject * | parent = 0 | ) |
Constructs a QRangeModel with parent
Definition at line 185 of file qrangemodel.cpp.
|
virtual |
Destroys the QRangeModel
Definition at line 208 of file qrangemodel.cpp.
|
protected |
Constructs a QRangeModel with private class pointer dd and parent
Definition at line 197 of file qrangemodel.cpp.
Member Function Documentation
bool Plasma::QRangeModel::inverted | ( | ) | const |
|
signal |
qreal QRangeModel::maximum | ( | ) | const |
Definition at line 316 of file qrangemodel.cpp.
|
signal |
qreal QRangeModel::minimum | ( | ) | const |
Definition at line 295 of file qrangemodel.cpp.
|
signal |
qreal Plasma::QRangeModel::position | ( | ) | const |
qreal Plasma::QRangeModel::positionAtMaximum | ( | ) | const |
|
signal |
qreal Plasma::QRangeModel::positionAtMinimum | ( | ) | const |
|
signal |
|
signal |
qreal QRangeModel::positionForValue | ( | qreal | value | ) | const |
Returns a valid position, respecting the positionAtMinimum, positionAtMaximum and the stepSize properties. Such calculation is based on the parameter value (which is valid externally).
Definition at line 358 of file qrangemodel.cpp.
void QRangeModel::setInverted | ( | bool | inverted | ) |
Definition at line 497 of file qrangemodel.cpp.
void QRangeModel::setMaximum | ( | qreal | max | ) |
Definition at line 308 of file qrangemodel.cpp.
void QRangeModel::setMinimum | ( | qreal | min | ) |
Definition at line 289 of file qrangemodel.cpp.
|
slot |
Definition at line 385 of file qrangemodel.cpp.
void QRangeModel::setPositionAtMaximum | ( | qreal | posAtMax | ) |
Definition at line 427 of file qrangemodel.cpp.
void QRangeModel::setPositionAtMinimum | ( | qreal | posAtMin | ) |
Definition at line 408 of file qrangemodel.cpp.
void QRangeModel::setPositionRange | ( | qreal | min, |
qreal | max | ||
) |
Sets the range of valid positions, that position can assume externally, with min and max. Such range is represented by positionAtMinimum and positionAtMaximum
Definition at line 220 of file qrangemodel.cpp.
void QRangeModel::setRange | ( | qreal | min, |
qreal | max | ||
) |
Sets the range of valid values, that value can assume externally, with min and max. The range has the following constraint: min must be less or equal max Such range is represented by minimumValue and maximumValue
Definition at line 255 of file qrangemodel.cpp.
void QRangeModel::setStepSize | ( | qreal | stepSize | ) |
Definition at line 330 of file qrangemodel.cpp.
|
slot |
Definition at line 472 of file qrangemodel.cpp.
qreal Plasma::QRangeModel::stepSize | ( | ) | const |
|
signal |
|
slot |
Sets the value to maximumValue.
Definition at line 530 of file qrangemodel.cpp.
|
slot |
Sets the value to minimumValue.
Definition at line 520 of file qrangemodel.cpp.
qreal Plasma::QRangeModel::value | ( | ) | const |
|
signal |
qreal QRangeModel::valueForPosition | ( | qreal | position | ) | const |
Returns a valid value, respecting the minimumValue, maximumValue and the stepSize properties. Such calculation is based on the parameter position (which is valid externally).
Definition at line 445 of file qrangemodel.cpp.
Member Data Documentation
|
protected |
Definition at line 116 of file qrangemodel.h.
Property Documentation
|
readwrite |
the model is inverted or not
The model can be represented with an inverted behavior, e.g. when value assumes the maximum value (represented by maximumValue) the position will be at its minimum (represented by positionAtMinimum).
Definition at line 62 of file qrangemodel.h.
|
readwrite |
the maximum value that value can assume
This property's default value is 99
Definition at line 57 of file qrangemodel.h.
|
readwrite |
the minimum value that value can assume
This property's default value is 0
Definition at line 56 of file qrangemodel.h.
|
readwrite |
the current position of the model
Represents a valid external position, based on the positionAtMinimum, positionAtMaximum and the stepSize properties. The user can set it internally with a position, that is not within the current position range, since it can become valid if the user changes the position range later.
Definition at line 59 of file qrangemodel.h.
|
readwrite |
the maximum value that position can assume
This property's default value is 0
Definition at line 61 of file qrangemodel.h.
|
readwrite |
the minimum value that position can assume
This property's default value is 0
Definition at line 60 of file qrangemodel.h.
|
readwrite |
the value that is added to the value and position property
Example: If a user sets a range of [0,100] and stepSize to 30, the valid values that are going to be seen externally would be: 0, 30, 60, 90, 100.
Definition at line 58 of file qrangemodel.h.
|
readwrite |
the current value of the model
Represents a valid external value, based on the minimumValue, maximumValue and the stepSize properties. The user can set it internally with a value, that is not within the current range, since it can become valid if the user changes the range later.
Definition at line 55 of file qrangemodel.h.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:08:40 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.