PlasmaComponents
#include <qrangemodel.h>
Definition at line 51 of file qrangemodel.h.
QRangeModel::QRangeModel |
( |
QObject * |
parent = 0 | ) |
|
QRangeModel::~QRangeModel |
( |
| ) |
|
|
virtual |
bool Plasma::QRangeModel::inverted |
( |
| ) |
const |
void Plasma::QRangeModel::invertedChanged |
( |
bool |
inverted | ) |
|
|
signal |
qreal QRangeModel::maximum |
( |
| ) |
const |
void Plasma::QRangeModel::maximumChanged |
( |
qreal |
max | ) |
|
|
signal |
qreal QRangeModel::minimum |
( |
| ) |
const |
void Plasma::QRangeModel::minimumChanged |
( |
qreal |
min | ) |
|
|
signal |
qreal Plasma::QRangeModel::position |
( |
| ) |
const |
qreal Plasma::QRangeModel::positionAtMaximum |
( |
| ) |
const |
void Plasma::QRangeModel::positionAtMaximumChanged |
( |
qreal |
max | ) |
|
|
signal |
qreal Plasma::QRangeModel::positionAtMinimum |
( |
| ) |
const |
void Plasma::QRangeModel::positionAtMinimumChanged |
( |
qreal |
min | ) |
|
|
signal |
void Plasma::QRangeModel::positionChanged |
( |
qreal |
position | ) |
|
|
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 | ) |
|
void QRangeModel::setMaximum |
( |
qreal |
max | ) |
|
void QRangeModel::setMinimum |
( |
qreal |
min | ) |
|
void QRangeModel::setPosition |
( |
qreal |
position | ) |
|
|
slot |
void QRangeModel::setPositionAtMaximum |
( |
qreal |
posAtMax | ) |
|
void QRangeModel::setPositionAtMinimum |
( |
qreal |
posAtMin | ) |
|
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 | ) |
|
void QRangeModel::setValue |
( |
qreal |
value | ) |
|
|
slot |
qreal Plasma::QRangeModel::stepSize |
( |
| ) |
const |
void Plasma::QRangeModel::stepSizeChanged |
( |
qreal |
stepSize | ) |
|
|
signal |
void QRangeModel::toMaximum |
( |
| ) |
|
|
slot |
void QRangeModel::toMinimum |
( |
| ) |
|
|
slot |
qreal Plasma::QRangeModel::value |
( |
| ) |
const |
void Plasma::QRangeModel::valueChanged |
( |
qreal |
value | ) |
|
|
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.
bool QRangeModel::inverted |
|
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.
QRangeModel::maximumValue |
|
readwrite |
the maximum value that value can assume
This property's default value is 99
Definition at line 57 of file qrangemodel.h.
QRangeModel::minimumValue |
|
readwrite |
the minimum value that value can assume
This property's default value is 0
Definition at line 56 of file qrangemodel.h.
qreal QRangeModel::position |
|
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.
qreal QRangeModel::positionAtMaximum |
|
readwrite |
the maximum value that position can assume
This property's default value is 0
Definition at line 61 of file qrangemodel.h.
qreal QRangeModel::positionAtMinimum |
|
readwrite |
the minimum value that position can assume
This property's default value is 0
Definition at line 60 of file qrangemodel.h.
qreal QRangeModel::stepSize |
|
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.
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:
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:02:47 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.