Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qquickrangeslider.cpp File Reference

(2451ff25a531a2427825726f4b5f015fb01d2663)

#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 391 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 378 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 373 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 337 of file qquickrangeslider.cpp.

Referenced by QQuickRangeSlider::componentComplete().

◆ defaultTo

const qreal defaultTo = 1.0
static

Definition at line 338 of file qquickrangeslider.cpp.

Referenced by QQuickRangeSlider::componentComplete().