45 # include "private/qt_mac_p.h" 49 #include <QtCore/qmath.h> 168 : version(version), type(type), state(
QStyle::State_None),
235 #ifdef QT_KEYPAD_NAVIGATION 236 if (widget->hasEditFocus())
237 state |= QStyle::State_HasEditFocus;
970 (void)QStyleOptionViewItemV2::operator=(other);
1076 (void)QStyleOptionViewItemV3::operator=(other);
1110 #ifndef QT_NO_ITEMVIEWS 1267 (void)QStyleOptionViewItemV4::operator=(other);
1299 #endif // QT_NO_ITEMVIEWS 1444 textAlignment(
Qt::
AlignLeft), lineWidth(0), midLineWidth(0)
1845 #ifndef QT_NO_TOOLBAR 2067 #ifndef QT_NO_TABBAR 2111 selectedPosition(NotAdjacent), cornerWidgets(
QStyleOptionTab::NoCornerWidgets)
2405 if (
const QStyleOptionTabV2 *tab = qstyleoption_cast<const QStyleOptionTabV2 *>(&other)) {
2426 if (
const QStyleOptionTabV2 *tab = qstyleoption_cast<const QStyleOptionTabV2 *>(&other))
2526 , documentMode(false)
2569 if (
const QStyleOptionTabV3 *tab = qstyleoption_cast<const QStyleOptionTabV3 *>(&other)) {
2591 if (
const QStyleOptionTabV3 *tab = qstyleoption_cast<const QStyleOptionTabV3 *>(&other)) {
2602 #endif // QT_NO_TABBAR 2642 minimum(0), maximum(0), progress(0), textAlignment(
Qt::
AlignLeft), textVisible(false)
2826 orientation(
Qt::
Horizontal), invertedAppearance(false), bottomToTop(false)
2995 checkType(NotCheckable), checked(false), menuHasCheckableItems(true), maxIconWidth(0), tabWidth(0)
3315 #ifndef QT_NO_SLIDER 3345 tickPosition(
QSlider::NoTicks), tickInterval(0), upsideDown(false),
3346 sliderPosition(0), sliderValue(0), singleStep(0), pageStep(0), notchTarget(0.0),
3558 #endif // QT_NO_SLIDER 3560 #ifndef QT_NO_SPINBOX 3683 #endif // QT_NO_SPINBOX 3735 itemY(0), childCount(0)
3882 sortColumn(0), itemMargin(0), treeStepSize(0), rootIsDecorated(false)
4165 movable(false), floatable(false)
4187 (void)QStyleOptionDockWidgetV2::operator=(other);
4906 #ifndef QT_NO_RUBBERBAND 5012 #endif // QT_NO_RUBBERBAND 5224 showDecorationSelected(false)
5363 #ifndef QT_NO_TABWIDGET 5642 #endif // QT_NO_TABWIDGET 5644 #ifndef QT_NO_TABBAR 5824 , documentMode(false)
5843 (void)QStyleOptionTabBarBaseV2::operator=(other);
5868 #endif // QT_NO_TABBAR 5870 #ifndef QT_NO_SIZEGRIP 5964 #endif // QT_NO_SIZEGRIP 6063 return qSqrt(worldTransform.
map(v1).length() * worldTransform.
map(v2).length());
6228 : version(version), type(type)
6395 #if !defined(QT_NO_DEBUG_STREAM) 6398 #if !defined(QT_NO_DEBUG) 6399 switch (optionType) {
6401 debug <<
"SO_Default";
break;
6403 debug <<
"SO_FocusRect";
break;
6405 debug <<
"SO_Button";
break;
6407 debug <<
"SO_Tab";
break;
6409 debug <<
"SO_MenuItem";
break;
6411 debug <<
"SO_Frame";
break;
6413 debug <<
"SO_ProgressBar";
break;
6415 debug <<
"SO_ToolBox";
break;
6417 debug <<
"SO_Header";
break;
6419 debug <<
"SO_Q3DockWindow";
break;
6421 debug <<
"SO_DockWidget";
break;
6423 debug <<
"SO_Q3ListViewItem";
break;
6425 debug <<
"SO_ViewItem";
break;
6427 debug <<
"SO_TabWidgetFrame";
break;
6429 debug <<
"SO_TabBarBase";
break;
6431 debug <<
"SO_RubberBand";
break;
6433 debug <<
"SO_Complex";
break;
6435 debug <<
"SO_Slider";
break;
6437 debug <<
"SO_SpinBox";
break;
6439 debug <<
"SO_ToolButton";
break;
6441 debug <<
"SO_ComboBox";
break;
6443 debug <<
"SO_Q3ListView";
break;
6445 debug <<
"SO_TitleBar";
break;
6447 debug <<
"SO_CustomBase";
break;
6449 debug <<
"SO_GroupBox";
break;
6451 debug <<
"SO_ToolBar";
break;
6453 debug <<
"SO_ComplexCustomBase";
break;
6455 debug <<
"SO_SizeGrip";
break;
6457 debug <<
"SO_GraphicsItem";
break;
6467 #if !defined(QT_NO_DEBUG) 6468 debug <<
"QStyleOption(";
6471 debug <<
',' << option.
state;
6472 debug <<
',' << option.
rect;
QStyleOptionViewItemV3 & operator=(const QStyleOptionViewItem &other)
Assigns the other style option to this style option.
int version
the version of the style option
qreal notchTarget
the number of pixel between notches
The QDebug class provides an output stream for debugging information.
int height
the height of the item
QStyleOptionFrame()
Constructs a QStyleOptionFrame, initializing the members variables to their default values...
QStyleOptionTabV3 & operator=(const QStyleOptionTab &other)
Assigns the other style option to this QStyleOptionTabV3.
QStyleOptionTabV3()
Constructs a QStyleOptionTabV3.
The QApplication class manages the GUI application's control flow and main settings.
Qt::Alignment decorationAlignment
the alignment of the decoration for the item
The QStyleHintReturn class provides style hints that return more than basic data types.
bool rootIsDecorated
whether root items are decorated
int type
the option type of the style option
QStyleHintReturnMask()
Constructs a QStyleHintReturnMask.
#define QT_END_NAMESPACE
This macro expands to.
QStyleOptionComboBox()
Creates a QStyleOptionComboBox, initializing the members variables to their default values...
int sliderValue
the value of the slider
QPointer< QWidget > widget
int maximum
the maximum value for the progress bar
bool frame
whether the combo box has a frame
int itemMargin
the margin for items in the list view
The QStyleOptionTabV2 class is used to describe the parameters necessary for drawing a tabs in Qt 4...
QStyleOptionProgressBarV2()
Constructs a QStyleOptionProgressBarV2, initializing he members variables to their default values...
QIcon icon
The icon (if any) to be drawn in the view item.
QStyle::State state
the style flags that are used when drawing the control
QStyleOptionTabBarBase()
Construct a QStyleOptionTabBarBase, initializing the members vaiables to their default values...
QStyleHintReturnVariant()
Constructs a QStyleHintReturnVariant.
QBrush backgroundBrush
The QBrush that should be used to paint the view items background.
QStyleOptionTabV2 & operator=(const QStyleOptionTab &other)
Assigns the other style option to this QStyleOptionTabV2.
QFrame::Shape frameShape
This property holds the frame shape value of the frame.
Qt::Orientation orientation
the progress bar's orientation (horizontal or vertical); the default orentation is Qt::Horizontal ...
QStyleOptionFrameV2::FrameFeatures features
the features of the group box frame
static qreal position(QGraphicsObject *item, QDeclarativeAnchorLine::AnchorLine anchorLine)
The QStyleOptionViewItemV4 class is used to describe the parameters necessary for drawing a frame in ...
Position decorationPosition
the position of the decoration for the item
QStyleOptionRubberBand()
Creates a QStyleOptionRubberBand, initializing the members variables to their default values...
int tickInterval
the interval that should be drawn between tick marks
QStyleOptionTabV2()
Constructs a QStyleOptionTabV2.
int childCount
the number of children the item has
Qt::TextElideMode textElideMode
where ellipsis should be added for text that is too long to fit into an item
void init(const QWidget *w)
Use initFrom(widget) instead.
bool bottomToTop
whether the text reads from bottom to top when the progress bar is vertical
QAbstractSpinBox::StepEnabled stepEnabled
which buttons of the spin box that are enabled
QSlider::TickPosition tickPosition
the position of the slider's tick marks, if any
TabPosition position
the position of the tab in the tab bar
The QTabBar class provides a tab bar, e.g.
qreal levelOfDetail
Use QStyleOptionGraphicsItem::levelOfDetailFromTransform() together with QPainter::worldTransform() i...
bool editable
whether or not the combobox is editable or not
QStyleOptionQ3DockWindow()
Constructs a QStyleOptionQ3DockWindow, initializing the member variables to their default values...
QFontMetrics fontMetrics
the font metrics that should be used when drawing text in the control
Qt::Alignment textAlignment
the alignment of the group box title
QStyleOptionViewItem()
Constructs a QStyleOptionViewItem, initializing the members variables to their default values...
Qt::Corner corner
The corner in which the size grip is located.
QStyleOptionTitleBar()
Constructs a QStyleOptionTitleBar, initializing the members variables to their default values...
QTabBar::Shape shape
the tab shape used to draw the tab; by default QTabBar::RoundedNorth
QStyleOptionTabBarBaseV2 & operator=(const QStyleOptionTabBarBase &other)
Constructs a QStyleOptionTabBarBaseV2 copy of the other style option which can be either of the QStyl...
bool frame
whether the spin box has a frame
QStyleOptionTabBarBaseV2()
Construct a QStyleOptionTabBarBaseV2, initializing the members vaiables to their default values...
bool qt_mac_can_clickThrough(const QWidget *)
T qstyleoption_cast(const QStyleOption *option)
bool dialWrapping
whether the dial should wrap or not
The QStyleOptionViewItemV2 class is used to describe the parameters necessary for drawing a frame in ...
The QLineF class provides a two-dimensional vector using floating point precision.
bool closeEnabled
whether the dock window has a close button
int sortColumn
the sort column of the list view
QStyleOptionQ3ListView()
Creates a QStyleOptionQ3ListView, initializing the members variables to their default values...
bool upsideDown
the slider control orientation
int lineWidth
the line width for drawing the frame
The QStyleOptionProgressBarV2 class is used to describe the parameters necessary for drawing a progre...
#define QT_BEGIN_NAMESPACE
This macro expands to.
QStyleOption & operator=(const QStyleOption &other)
Assign other to this QStyleOption.
int totalHeight
the total height of the item, including its children
The QStyleOptionViewItemV3 class is used to describe the parameters necessary for drawing a frame in ...
ViewItemFeatures features
a bitwise OR of the features that describe this view item
QStyleOptionViewItemV4()
Constructs a QStyleOptionViewItemV4 object.
bool documentMode
whether the tabbar is in document mode.
The QStyleOption class stores the parameters used by QStyle functions.
QStyleOptionSlider()
Constructs a QStyleOptionSlider, initializing the members variables to their default values...
~QStyleOption()
Destroys this style option object.
int progress
the current progress for the progress bar
Q3ListViewItemFeatures features
the features for this item
bool showDecorationSelected
whether the decoration should be highlighted on selected items
The QStyleOptionFrame class is used to describe the parameters for drawing a frame.
Qt::CheckState checkState
If this view item is checkable, i.
Qt::Alignment textAlignment
the text alignment for the text in the QProgressBar
int row
which row the tab is currently in
int sliderPosition
the position of the slider handle
The QSlider widget provides a vertical or horizontal slider.
QStyleOptionProgressBarV2 & operator=(const QStyleOptionProgressBar &other)
Assigns the other style option to this style option.
int minimum
the minimum value for the progress bar
The QStyleOptionTabBarBase class is used to describe the base of a tab bar, i.e.
QStyleOptionFrameV3 & operator=(const QStyleOptionFrame &other)
Assigns the other style option to this style option.
QStyleOptionViewItemV2()
Constructs a QStyleOptionViewItemV2 object.
QStyleOptionFrameV3()
Constructs a QStyleOptionFrameV3 object.
The QAbstractSpinBox class provides a spinbox and a line edit to display values.
QStyleOptionSpinBox()
Constructs a QStyleOptionSpinBox, initializing the members variables to their default values...
bool opaque
whether the rubber band is required to be drawn in an opaque style
int treeStepSize
the number of pixel to offset children items from their parents
CornerWidgets cornerWidgets
an OR combination of CornerWidget values indicating the corner widgets of the tab bar ...
FrameFeatures features
a bitwise OR of the features that describe this frame.
QStyleOptionGroupBox()
Constructs a QStyleOptionGroupBox, initializing the members variables to their default values...
QSize rightButtonSize
the size for the right widget on the tab.
QStyleOptionGraphicsItem()
Constructs a QStyleOptionGraphicsItem.
QStyleOptionFrameV2 & operator=(const QStyleOptionFrame &other)
Assigns the other style option to this style option.
bool documentMode
whether the tabbar is in document mode.
ViewItemPosition viewItemPosition
Gives the position of this view item relative to other items.
The QStyleOptionTabBarBaseV2 class is used to describe the base of a tab bar, i.e.
QPalette palette
the palette that should be used when painting the control
QStyleOptionQ3ListViewItem()
Constructs a QStyleOptionQ3ListViewItem, initializing the members variables to their default values...
QAbstractSpinBox::ButtonSymbols buttonSymbols
the type of button symbols to draw for the spin box
SelectedPosition selectedPosition
the position of the selected tab in relation to this tab
QStyleOptionSizeGrip()
Constructs a QStyleOptionSizeGrip.
bool textVisible
a flag indicating whether or not text is visible
QStyleOption(int version=QStyleOption::Version, int type=SO_Default)
Constructs a QStyleOption with the specified version and type.
int maximum
the maximum value for the slider
QStyleHintReturn(int version=QStyleOption::Version, int type=SH_Default)
Constructs a QStyleHintReturn with version version and type type.
int midLineWidth
the mid-line width for drawing the panel
The QFont class specifies a font used for drawing text.
int midLineWidth
the mid-line width for drawing the frame
int lineWidth
the line width for drawing the panel
int minimum
the minimum value for the slider
The QStyleOptionFrameV3 class is used to describe the parameters necessary for drawing a frame in Qt ...
QModelIndex index
The model index that is to be drawn.
QStyleOptionTab()
Constructs a QStyleOptionTab object, initializing the members variables to their default values...
static WidgetSizePolicy widgetSizePolicy(const QWidget *w)
Qt::Alignment displayAlignment
the alignment of the display value for the item
The QStyle class is an abstract base class that encapsulates the look and feel of a GUI...
OptionType
This enum is used internally by QStyleOption, its subclasses, and qstyleoption_cast() to determine th...
QSize iconSize
the size for the icons
The QStyleOptionTabV3 class is used to describe the parameters necessary for drawing a tabs in Qt 4...
Qt::LayoutDirection direction
the text layout direction that should be used when drawing text in the control
QTabBar::Shape shape
the shape of the tab bar
QRubberBand::Shape shape
the shape of the rubber band
The QStyleOptionFrameV2 class is used to describe the parameters necessary for drawing a frame in Qt ...
Qt::Orientation orientation
the slider's orientation (horizontal or vertical)
QStyleOptionFrameV2()
Constructs a QStyleOptionFrameV2 object.
The QStyleOptionTab class is used to describe the parameters for drawing a tab bar.
QStyleOptionViewItemV2 & operator=(const QStyleOptionViewItem &other)
Assigns the other style option to this style option.
bool docked
whether the dock window is currently docked
int itemY
the Y-coordinate for the item
QPalette::ColorRole viewportBGRole
the background role of Q3ListView's viewport
int pageStep
the size of the page step of the slider
int singleStep
the size of the single step of the slider
The QSize class defines the size of a two-dimensional object using integer point precision.
QStyleOptionViewItemV3()
Constructs a QStyleOptionViewItemV3 object.
Qt::WindowFlags titleBarFlags
the widget flags for the title bar
The QStyleOptionComplex class is used to hold parameters that are common to all complex controls...
The QStyleOptionViewItem class is used to describe the parameters used to draw an item in a view widg...
The QStyleOptionProgressBar class is used to describe the parameters necessary for drawing a progress...
QSize leftButtonSize
the size for the left widget on the tab.
bool invertedAppearance
whether the progress bar's appearance is inverted
int titleBarState
the state of the title bar
The QRubberBand class provides a rectangle or line that can indicate a selection or a boundary...
The QFrame class is the base class of widgets that can have a frame.
QStyleOptionViewItemV4 & operator=(const QStyleOptionViewItem &other)
Assigns the other style option to this style option.
#define Q_UNUSED(x)
Indicates to the compiler that the parameter with the specified name is not used in the body of a fun...
QDebug operator<<(QDebug debug, const QStyleOption::OptionType &optionType)
QStyleOptionProgressBar()
Constructs a QStyleOptionProgressBar, initializing the members variables to their default values...
QRect rect
the area that should be used for various calculations and painting
QStyleOptionFocusRect()
Constructs a QStyleOptionFocusRect, initializing the members variables to their default values...
static qreal levelOfDetailFromTransform(const QTransform &worldTransform)
Returns the level of detail from the worldTransform.
QString text
The text (if any) to be drawn in the view item.
QStyleOptionComplex(int version=QStyleOptionComplex::Version, int type=SO_Complex)
Constructs a QStyleOptionComplex of the specified type and version, initializing the member variables...
Qt::LayoutDirection direction
The QPalette class contains color groups for each widget state.