Qt 4.8
Classes | Functions
qslider.cpp File Reference
#include "qslider.h"
#include "qaccessible.h"
#include "qapplication.h"
#include "qevent.h"
#include "qpainter.h"
#include "qstyle.h"
#include "qstyleoption.h"
#include "private/qabstractslider_p.h"
#include "qdebug.h"

Go to the source code of this file.

Classes

class  QSliderPrivate
 

Functions

Q_GUI_EXPORT QStyleOptionSlider qt_qsliderStyleOption (QSlider *slider)
 Returns the style option for slider. More...
 

Function Documentation

◆ qt_qsliderStyleOption()

Q_GUI_EXPORT QStyleOptionSlider qt_qsliderStyleOption ( QSlider slider)

Returns the style option for slider.

Warning
This function is not part of the public interface.

Definition at line 684 of file qslider.cpp.

Referenced by QAccessibleSlider::rect().

685 {
686  QStyleOptionSlider sliderOption;
687  slider->initStyleOption(&sliderOption);
688  return sliderOption;
689 }
void initStyleOption(QStyleOptionSlider *option) const
Initialize option with the values from this QSlider.
Definition: qslider.cpp:134
The QStyleOptionSlider class is used to describe the parameters needed for drawing a slider...
Definition: qstyleoption.h:701