RangeSliderPrivate

RangeSliderPrivate

RangeSliderPrivate

Public Types

Name
enumHandle { NoHandle = 0x0, MinimumHandle = 0x1, MaximumHandle = 0x2}

Public Functions

Name
RangeSliderPrivate(RangeSlider & object)
voidinit()
HandlehandleAtPos(const QPoint & pos, QRect & handleRect) const
intpixelPosToRangeValue(int pos) const
Copied verbatim from QSliderPrivate class (see QSlider.cpp)
intpixelPosFromRangeValue(int val) const
voiddrawMinimumSlider(QStylePainter * painter) const
Draw the bottom and top sliders.
voiddrawMaximumSlider(QStylePainter * painter) const

Public Attributes

Name
intm_MaximumValue
End points of the range on the Model.
intm_MinimumValue
intm_MaximumPosition
End points of the range on the GUI. This is synced with the model.
intm_MinimumPosition
QStyle::SubControlm_MinimumSliderSelected
Controls selected ?
QStyle::SubControlm_MaximumSliderSelected
intm_SubclassClickOffset
intm_SubclassPosition
intm_SubclassWidth
Original width between the 2 bounds before any moves.
RangeSliderPrivate::Handlesm_SelectedHandles
boolm_SymmetricMoves
QStringm_HandleToolTip

Protected Attributes

Name
RangeSlider *constq_ptr

Public Types Documentation

enum Handle

EnumeratorValueDescription
NoHandle0x0
MinimumHandle0x1
MaximumHandle0x2

Boolean indicates the selected handle True for the minimum range handle, false for the maximum range handle

Public Functions Documentation

function RangeSliderPrivate

RangeSliderPrivate(
    RangeSlider & object
)

function init

void init()

function handleAtPos

Handle handleAtPos(
    const QPoint & pos,
    QRect & handleRect
) const

Return the handle at the given pos, or none if no handle is at the pos. If a handle is selected, handleRect is set to the handle rect. otherwise return NoHandle and handleRect is set to the combined rect of the min and max handles

function pixelPosToRangeValue

int pixelPosToRangeValue(
    int pos
) const

Copied verbatim from QSliderPrivate class (see QSlider.cpp)

function pixelPosFromRangeValue

int pixelPosFromRangeValue(
    int val
) const

function drawMinimumSlider

void drawMinimumSlider(
    QStylePainter * painter
) const

Draw the bottom and top sliders.

function drawMaximumSlider

void drawMaximumSlider(
    QStylePainter * painter
) const

Public Attributes Documentation

variable m_MaximumValue

int m_MaximumValue;

End points of the range on the Model.

variable m_MinimumValue

int m_MinimumValue;

variable m_MaximumPosition

int m_MaximumPosition;

End points of the range on the GUI. This is synced with the model.

variable m_MinimumPosition

int m_MinimumPosition;

variable m_MinimumSliderSelected

QStyle::SubControl m_MinimumSliderSelected;

Controls selected ?

variable m_MaximumSliderSelected

QStyle::SubControl m_MaximumSliderSelected;

variable m_SubclassClickOffset

int m_SubclassClickOffset;

See QSliderPrivate::clickOffset. Overrides this ivar

variable m_SubclassPosition

int m_SubclassPosition;

See QSliderPrivate::position Overrides this ivar.

variable m_SubclassWidth

int m_SubclassWidth;

Original width between the 2 bounds before any moves.

variable m_SelectedHandles

RangeSliderPrivate::Handles m_SelectedHandles;

variable m_SymmetricMoves

bool m_SymmetricMoves;

When symmetricMoves is true, moving a handle will move the other handle symmetrically, otherwise the handles are independent.

variable m_HandleToolTip

QString m_HandleToolTip;

Protected Attributes Documentation

variable q_ptr

RangeSlider *const q_ptr;

Updated on 2024-09-05 at 17:39:59 +0000