RangeSliderPrivate
RangeSliderPrivate
Public Types
Name | |
---|---|
enum | Handle { NoHandle = 0x0, MinimumHandle = 0x1, MaximumHandle = 0x2} |
Public Functions
Name | |
---|---|
RangeSliderPrivate(RangeSlider & object) | |
void | init() |
Handle | handleAtPos(const QPoint & pos, QRect & handleRect) const |
int | pixelPosToRangeValue(int pos) const Copied verbatim from QSliderPrivate class (see QSlider.cpp) |
int | pixelPosFromRangeValue(int val) const |
void | drawMinimumSlider(QStylePainter * painter) const Draw the bottom and top sliders. |
void | drawMaximumSlider(QStylePainter * painter) const |
Public Attributes
Name | |
---|---|
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 |
QStyle::SubControl | m_MinimumSliderSelected Controls selected ? |
QStyle::SubControl | m_MaximumSliderSelected |
int | m_SubclassClickOffset |
int | m_SubclassPosition |
int | m_SubclassWidth Original width between the 2 bounds before any moves. |
RangeSliderPrivate::Handles | m_SelectedHandles |
bool | m_SymmetricMoves |
QString | m_HandleToolTip |
Protected Attributes
Name | |
---|---|
RangeSlider *const | q_ptr |
Public Types Documentation
enum Handle
Enumerator | Value | Description |
---|---|---|
NoHandle | 0x0 | |
MinimumHandle | 0x1 | |
MaximumHandle | 0x2 |
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-11-06 at 17:10:29 +0000