Qt 4.8
Classes | Macros | Functions
qscrollbar.cpp File Reference
#include "qapplication.h"
#include "qcursor.h"
#include "qevent.h"
#include "qpainter.h"
#include "qscrollbar.h"
#include "qstyle.h"
#include "qstyleoption.h"
#include "qmenu.h"
#include <QtCore/qelapsedtimer.h>
#include "qaccessible.h"
#include <limits.h>
#include "qabstractslider_p.h"

Go to the source code of this file.

Classes

class  QScrollBarPrivate
 

Macros

#define HORIZONTAL   (d_func()->orientation == Qt::Horizontal)
 
#define VERTICAL   !HORIZONTAL
 

Functions

Q_GUI_EXPORT QStyleOptionSlider qt_qscrollbarStyleOption (QScrollBar *scrollbar)
 Returns the style option for scroll bar. More...
 

Macro Definition Documentation

◆ HORIZONTAL

#define HORIZONTAL   (d_func()->orientation == Qt::Horizontal)

◆ VERTICAL

#define VERTICAL   !HORIZONTAL

Definition at line 331 of file qscrollbar.cpp.

Function Documentation

◆ qt_qscrollbarStyleOption()

Q_GUI_EXPORT QStyleOptionSlider qt_qscrollbarStyleOption ( QScrollBar scrollbar)

Returns the style option for scroll bar.

Warning
This function is not part of the public interface.

Definition at line 766 of file qscrollbar.cpp.

Referenced by QAccessibleScrollBar::rect().

767 {
768  QStyleOptionSlider opt;
769  scrollbar->initStyleOption(&opt);
770  return opt;
771 }
void initStyleOption(QStyleOptionSlider *option) const
Initialize option with the values from this QScrollBar.
Definition: qscrollbar.cpp:308
The QStyleOptionSlider class is used to describe the parameters needed for drawing a slider...
Definition: qstyleoption.h:701