itom
Loading...
Searching...
No Matches
RangeSliderPrivate Class Reference

Public Types

enum  Handle { NoHandle = 0x0 , MinimumHandle = 0x1 , MaximumHandle = 0x2 }
 

Public Member Functions

 Q_DECLARE_FLAGS (Handles, Handle)
 
 RangeSliderPrivate (RangeSlider &object)
 
void init ()
 
Handle handleAtPos (const QPoint &pos, QRect &handleRect) const
 
qint64 bound (qint64 min, qint64 max, qint64 step, qint64 value, bool snapToBoundaries=true) const
 
uint boundUnsigned (uint min, uint max, uint step, uint value, bool snapToBoundaries=true) const
 
void rangeBound (int valLimitMin, int valLimitMax, Handle handleChangePriority, int &valMin, int &valMax)
 
int pixelPosToRangeValue (int pos) const
 Copied verbatim from QSliderPrivate class (see QSlider.cpp)
 
int pixelPosFromRangeValue (int val) const
 
void drawMinimumSlider (QStylePainter *painter, const QRect &rect) const
 Draw the bottom and top sliders.
 
void drawMaximumSlider (QStylePainter *painter, const QRect &rect) const
 
void drawMinMaxSlider (QStylePainter *painter, const QRect &rect, bool isSliderDown, QStyleOptionSlider &option) const
 

Public Attributes

int m_MaximumValue
 End points of the range on the Model.
 
int m_MinimumValue
 
int m_MaximumPosition
 End points of the range on the GUI. This is synced with the model.
 
int m_MinimumPosition
 
uint m_PositionStepSize
 
uint m_MinimumRange
 
uint m_MaximumRange
 
uint m_StepSizeRange
 
bool m_RangeIncludesLimits
 
QStyle::SubControl m_MinimumSliderSelected
 Controls selected ?
 
QStyle::SubControl m_MaximumSliderSelected
 
int m_SubclassClickOffset
 
int m_SubclassPosition
 
float m_SubclassWidth
 Original width between the 2 bounds before any moves.
 
RangeSliderPrivate::Handles m_SelectedHandles
 
bool m_SymmetricMoves
 
bool m_UseStyleSheets
 
float m_HandleBorderRadius
 
QString m_HandleToolTip
 

Protected Attributes

RangeSlider *const q_ptr
 

Private Member Functions

 Q_DECLARE_PUBLIC (RangeSlider)
 
 Q_DISABLE_COPY (RangeSliderPrivate)
 

Member Enumeration Documentation

◆ Handle

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

Member Function Documentation

◆ handleAtPos()

RangeSliderPrivate::Handle RangeSliderPrivate::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

Member Data Documentation

◆ m_SubclassClickOffset

int RangeSliderPrivate::m_SubclassClickOffset

See QSliderPrivate::clickOffset. Overrides this ivar

◆ m_SubclassPosition

int RangeSliderPrivate::m_SubclassPosition

See QSliderPrivate::position Overrides this ivar.

◆ m_SymmetricMoves

bool RangeSliderPrivate::m_SymmetricMoves

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


The documentation for this class was generated from the following file: