40 #include <QtWidgets/private/qtwidgetsglobal_p.h>
41 #include "private/qstylehelper_p.h"
45 #include <QtCore/qmath.h>
191 if (
window->isActiveWindow())
205 #ifdef QT_KEYPAD_NAVIGATION
206 if (
widget->hasEditFocus())
207 state |= QStyle::State_HasEditFocus;
706 textAlignment(
Qt::
AlignLeft), lineWidth(0), midLineWidth(0)
1062 #if QT_CONFIG(toolbar)
1104 QStyleOptionToolBar::QStyleOptionToolBar()
1105 : QStyleOptionToolBar(
Version)
1118 QStyleOptionToolBar::QStyleOptionToolBar(
int version)
1249 #if QT_CONFIG(tabbar)
1288 QStyleOptionTab::QStyleOptionTab()
1289 : QStyleOptionTab(QStyleOptionTab::
Version)
1296 QStyleOptionTab::QStyleOptionTab(
int version)
1301 selectedPosition(NotAdjacent), cornerWidgets(QStyleOptionTab::NoCornerWidgets),
1302 documentMode(
false),
1303 features(QStyleOptionTab::
None)
1535 minimum(0), maximum(0), progress(0), textAlignment(
Qt::
AlignLeft), textVisible(
false),
1536 invertedAppearance(
false), bottomToTop(
false)
1696 checkType(NotCheckable), checked(
false), menuHasCheckableItems(
true), maxIconWidth(0),
1697 reservedShortcutWidth(0)
1954 #if QT_CONFIG(slider)
1982 QStyleOptionSlider::QStyleOptionSlider()
1990 QStyleOptionSlider::QStyleOptionSlider(
int version)
1992 tickPosition(
QSlider::NoTicks), tickInterval(0), upsideDown(
false),
1993 sliderPosition(0), sliderValue(0), singleStep(0), pageStep(0), notchTarget(0.0),
1994 dialWrapping(
false), keyboardModifiers{}
2151 #if QT_CONFIG(spinbox)
2179 QStyleOptionSpinBox::QStyleOptionSpinBox()
2180 : QStyleOptionSpinBox(
Version)
2187 QStyleOptionSpinBox::QStyleOptionSpinBox(
int version)
2789 #if QT_CONFIG(rubberband)
2817 QStyleOptionRubberBand::QStyleOptionRubberBand()
2818 : QStyleOptionRubberBand(
Version)
2825 QStyleOptionRubberBand::QStyleOptionRubberBand(
int version)
2994 #if QT_CONFIG(itemviews)
3059 QStyleOptionViewItem::QStyleOptionViewItem()
3060 : QStyleOptionViewItem(
Version)
3067 QStyleOptionViewItem::QStyleOptionViewItem(
int version)
3257 #if QT_CONFIG(tabwidget)
3284 QStyleOptionTabWidgetFrame::QStyleOptionTabWidgetFrame()
3285 : QStyleOptionTabWidgetFrame(
Version)
3296 QStyleOptionTabWidgetFrame::QStyleOptionTabWidgetFrame(
int version)
3395 #if QT_CONFIG(tabbar)
3426 QStyleOptionTabBarBase::QStyleOptionTabBarBase()
3427 : QStyleOptionTabBarBase(
Version)
3432 QStyleOptionTabBarBase::QStyleOptionTabBarBase(
int version)
3509 #if QT_CONFIG(sizegrip)
3681 return qSqrt(worldTransform.
map(
v1).length() * worldTransform.
map(
v2).length());
3939 #if !defined(QT_NO_DEBUG_STREAM)
3942 #if !defined(QT_NO_DEBUG)
3943 switch (optionType) {
3945 debug <<
"SO_Default";
break;
3947 debug <<
"SO_FocusRect";
break;
3949 debug <<
"SO_Button";
break;
3951 debug <<
"SO_Tab";
break;
3953 debug <<
"SO_MenuItem";
break;
3955 debug <<
"SO_Frame";
break;
3957 debug <<
"SO_ProgressBar";
break;
3959 debug <<
"SO_ToolBox";
break;
3961 debug <<
"SO_Header";
break;
3963 debug <<
"SO_DockWidget";
break;
3965 debug <<
"SO_ViewItem";
break;
3967 debug <<
"SO_TabWidgetFrame";
break;
3969 debug <<
"SO_TabBarBase";
break;
3971 debug <<
"SO_RubberBand";
break;
3973 debug <<
"SO_Complex";
break;
3975 debug <<
"SO_Slider";
break;
3977 debug <<
"SO_SpinBox";
break;
3979 debug <<
"SO_ToolButton";
break;
3981 debug <<
"SO_ComboBox";
break;
3983 debug <<
"SO_TitleBar";
break;
3985 debug <<
"SO_CustomBase";
break;
3987 debug <<
"SO_GroupBox";
break;
3989 debug <<
"SO_ToolBar";
break;
3991 debug <<
"SO_ComplexCustomBase";
break;
3993 debug <<
"SO_SizeGrip";
break;
3995 debug <<
"SO_GraphicsItem";
break;
4005 #if !defined(QT_NO_DEBUG)
4006 debug <<
"QStyleOption(";
The QAbstractSpinBox class provides a spinbox and a line edit to display values.
operator<<(QDataStream &ds, qfloat16 f)
The QDebug class provides an output stream for debugging information.
The QFont class specifies a query for a font used for drawing text.
The QFrame class is the base class of widgets that can have a frame.
The QGuiApplication class manages the GUI application's control flow and main settings.
The QLineF class provides a two-dimensional vector using floating point precision.
The QRubberBand class provides a rectangle or line that can indicate a selection or a boundary.
The QSlider widget provides a vertical or horizontal slider.
the exposed rectangle, in item coordinates
QStyleHintReturn(int version=QStyleOption::Version, int type=SH_Default)
the type of the style hint container
QStyleHintReturnMask()
the region for style hints that return a QRegion
QStyleHintReturnVariant()
the variant for style hints that return a QVariant
~QStyleHintReturnVariant()
The QStyle class is an abstract base class that encapsulates the look and feel of a GUI.
@ State_KeyboardFocusChange
an OR combination of the tool button's features
QStyleOptionComplex(int version=QStyleOptionComplex::Version, int type=SO_Complex)
the palette that should be used when painting the control
the background color on which the focus rectangle is being drawn
The QStyleOptionGraphicsItem class is used to describe the parameters needed to draw a QGraphicsItem.
static qreal levelOfDetailFromTransform(const QTransform &worldTransform)
QStyleOptionGraphicsItem()
a bitwise OR of the features that describe this frame.
QStyleOptionGroupBox()
the line width for drawing the panel
The QStyleOption class stores the parameters used by QStyle functions.
QStyleOption(int version=QStyleOption::Version, int type=SO_Default)
void initFrom(const QWidget *w)
Qt::LayoutDirection direction
QStyleOption & operator=(const QStyleOption &other)
a bitwise OR of the features that describe this button
QStyleOptionProgressBar()
the position of the selected tab in relation to this tab
The QTabBar class provides a tab bar, e.g. for use in tabbed dialogs.
QHighDpiScaling::Point position(T, QHighDpiScaling::Point::Kind)
WidgetSizePolicy widgetSizePolicy(const QWidget *widget, const QStyleOption *opt)
QT_END_INCLUDE_NAMESPACE typedef double qreal
GLint GLfloat GLfloat GLfloat v2
GLenum GLenum GLsizei void * row
QObject * styleObject(const QStyleOption *option)