Qt 4.8
Functions
rangecontrols.cpp File Reference
#include "rangecontrols.h"
#include <qslider.h>
#include <qdial.h>
#include <qspinbox.h>
#include <qscrollbar.h>
#include <qstyle.h>
#include <qstyleoption.h>
#include <qdebug.h>
#include <qglobal.h>
#include <QDoubleSpinBox>
#include <QDial>
#include <qmath.h>
#include <private/qmath_p.h>

Go to the source code of this file.

Functions

QString Q_GUI_EXPORT qt_accStripAmp (const QString &text)
 
QStyleOptionSlider Q_GUI_EXPORT qt_qscrollbarStyleOption (QScrollBar *scrollBar)
 Returns the style option for scroll bar. More...
 
QStyleOptionSlider Q_GUI_EXPORT qt_qsliderStyleOption (QSlider *slider)
 Returns the style option for slider. More...
 

Function Documentation

◆ qt_accStripAmp()

QString Q_GUI_EXPORT qt_accStripAmp ( const QString text)

Definition at line 135 of file qaccessiblewidget.cpp.

136 {
137  QString newText(text);
138  int ampIndex = qt_accAmpIndex(newText);
139  if (ampIndex != -1)
140  newText.remove(ampIndex, 1);
141 
142  return newText.replace(QLatin1String("&&"), QLatin1String("&"));
143 }
QLatin1String(DBUS_INTERFACE_DBUS))) Q_GLOBAL_STATIC_WITH_ARGS(QString
The QString class provides a Unicode character string.
Definition: qstring.h:83
static int qt_accAmpIndex(const QString &text)

◆ qt_qscrollbarStyleOption()

QStyleOptionSlider Q_GUI_EXPORT 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

◆ qt_qsliderStyleOption()

QStyleOptionSlider Q_GUI_EXPORT 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