Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qquickrangeslider.cpp File Reference
#include "qquickrangeslider_p.h"
#include "qquickcontrol_p_p.h"
#include "qquickdeferredexecute_p_p.h"
#include <QtCore/qscopedpointer.h>
#include <QtQuick/private/qquickwindow_p.h>
#include "moc_qquickrangeslider_p.cpp"
+ Include dependency graph for qquickrangeslider.cpp:

Go to the source code of this file.

Classes

class  QQuickRangeSliderNodePrivate
 Used to select a range of values by sliding two handles along a track. More...
 
class  QQuickRangeSliderPrivate
 

Functions

static qreal valueAt (const QQuickRangeSlider *slider, qreal position)
 
static qreal snapPosition (const QQuickRangeSlider *slider, qreal position)
 
static qreal positionAt (const QQuickRangeSlider *slider, QQuickItem *handle, const QPointF &point)
 

Variables

static const qreal defaultFrom = 0.0
 
static const qreal defaultTo = 1.0
 

Function Documentation

◆ positionAt()

static qreal positionAt ( const QQuickRangeSlider slider,
QQuickItem handle,
const QPointF point 
)
static

Definition at line 388 of file qquickrangeslider.cpp.

References QQuickControl::availableHeight, QQuickControl::availableWidth, QQuickControl::bottomPadding, QQuickItem::height, Qt::Horizontal, QQuickControl::isMirrored(), QQuickControl::leftPadding, QQuickRangeSlider::orientation, qFuzzyIsNull(), QQuickControl::rightPadding, QQuickItem::width, QPointF::x(), and QPointF::y().

Referenced by QQuickRangeSliderPrivate::handleMove(), QQuickRangeSliderPrivate::handlePress(), QQuickRangeSliderPrivate::handleRelease(), and QQuickTextInputPrivate::positionAt().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ snapPosition()

static qreal snapPosition ( const QQuickRangeSlider slider,
qreal  position 
)
static

Definition at line 375 of file qquickrangeslider.cpp.

References QQuickRangeSlider::from, position(), qFuzzyIsNull(), qRound(), QQuickRangeSlider::stepSize, and QQuickRangeSlider::to.

Referenced by QQuickRangeSliderPrivate::handleMove(), and QQuickRangeSliderPrivate::handleRelease().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ valueAt()

static qreal valueAt ( const QQuickRangeSlider slider,
qreal  position 
)
static

Definition at line 370 of file qquickrangeslider.cpp.

References QQuickRangeSlider::from, position(), and QQuickRangeSlider::to.

Referenced by QQuickRangeSliderPrivate::handleMove(), and QQuickRangeSliderPrivate::handleRelease().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Variable Documentation

◆ defaultFrom

const qreal defaultFrom = 0.0
static

Definition at line 335 of file qquickrangeslider.cpp.

Referenced by QQuickRangeSlider::componentComplete().

◆ defaultTo

const qreal defaultTo = 1.0
static

Definition at line 336 of file qquickrangeslider.cpp.

Referenced by QQuickRangeSlider::componentComplete().