7#include <private/qguiapplication_p.h>
9#include <QtCore/qdebug.h>
10#include <QtCore/qmath.h>
24
25
26
32
33
34
44
45
46
50 window = other.window;
52 direction = other.direction;
54 fontMetrics = other.fontMetrics;
55 palette = other.palette;
56 styleObject = other.styleObject;
61
62
63
64
68 state |= QStyle::State_KeyboardFocusChange;
72
73
77 state |= QStyle::State_KeyboardFocusChange;
81
82
83
84
92
93
101
102
103
104
118
119
120
121
132
133
144
145
146
147
154
155
162
163
164
165
173
174
175
176
185
186
187
188
210
211
212
213
219
220
221
222
238
239
240
241
249
250
258
259
260
261
262
270
271
272
273
283
284
294
295
296
297
305
306
314
315
316
317
325
326
334
335
336
337
352
353
354
355
367
368
369
370
382
383
384
385
398
399
400
401
413
414
415
416
427#if QT_CONFIG(quick_itemview)
429
430
431
432
453
454
455
456
468
469
470
471
483
484
485
497
498
499
511
512
513
514
515
516
517
518
519
520
521
522
525 if (worldTransform.type() <= QTransform::TxTranslate)
529 QLineF v1(0, 0, 1, 0);
530 QLineF v2(0, 0, 0, 1);
532 return qSqrt(worldTransform.map(v1).length() * worldTransform.map(v2).length());
536
537
538
539
540
541
542
543
544
545
552
553
560
561
562
563
573
574
575
576
585#if !defined(QT_NO_DEBUG_STREAM)
588#if !defined(QT_NO_DEBUG)
589 switch (optionType) {
591 debug <<
"SO_Default";
break;
593 debug <<
"SO_FocusRect";
break;
595 debug <<
"SO_Button";
break;
597 debug <<
"SO_Tab";
break;
599 debug <<
"SO_MenuItem";
break;
601 debug <<
"SO_Frame";
break;
603 debug <<
"SO_ProgressBar";
break;
605 debug <<
"SO_ToolBox";
break;
607 debug <<
"SO_Header";
break;
609 debug <<
"SO_DockWidget";
break;
611 debug <<
"SO_ViewItem";
break;
613 debug <<
"SO_TabWidgetFrame";
break;
615 debug <<
"SO_TabBarBase";
break;
617 debug <<
"SO_RubberBand";
break;
619 debug <<
"SO_Complex";
break;
621 debug <<
"SO_SearchField";
break;
623 debug <<
"SO_Slider";
break;
625 debug <<
"SO_SpinBox";
break;
627 debug <<
"SO_ToolButton";
break;
629 debug <<
"SO_ComboBox";
break;
631 debug <<
"SO_TitleBar";
break;
633 debug <<
"SO_CustomBase";
break;
635 debug <<
"SO_GroupBox";
break;
637 debug <<
"SO_ToolBar";
break;
639 debug <<
"SO_ComplexCustomBase";
break;
641 debug <<
"SO_SizeGrip";
break;
643 debug <<
"SO_GraphicsItem";
break;
646 Q_UNUSED(optionType);
653#if !defined(QT_NO_DEBUG)
654 debug <<
"QStyleOption(";
656 debug <<
',' << (option.direction == Qt::RightToLeft ?
"RightToLeft" :
"LeftToRight");
657 debug <<
',' << option.state;
658 debug <<
',' << option.rect;
659 debug <<
',' << option.styleObject;
QStyleHintReturnVariant()
~QStyleHintReturnVariant()
QStyleHintReturn(int version=QStyleOption::Version, int type=SH_Default)
QStyleOptionComboBox(int version)
QStyleOptionComplex(int version=QStyleOptionComplex::Version, int type=SO_Complex)
QStyleOptionFocusRect(int version)
QStyleOptionGraphicsItem()
QStyleOptionGraphicsItem(int version)
QStyleOptionGroupBox(int version)
QStyleOptionProgressBar()
QStyleOptionProgressBar(int version)
QStyleOptionRubberBand(int version)
QStyleOptionSearchField(int version)
QStyleOptionSearchField()
QStyleOptionSizeGrip(int version)
TickPosition tickPosition
QStyleOptionSlider(int version)
ButtonSymbols buttonSymbols
StepEnabledFlag stepEnabled
QStyleOptionSpinBox(int version)
QStyleOptionTabBarBase(int version)
QStyleOptionTab(int version)
QStyleOptionTitleBar(int version)
QStyleOption(int version=QStyleOption::Version, int type=SO_Default)
QStyleOption(const QStyleOption &other)
QStyleOption & operator=(const QStyleOption &other)
QDebug operator<<(QDebug debug, const QStyleOption &option)
QDebug operator<<(QDebug debug, const QStyleOption::OptionType &optionType)
Combined button and popup list for selecting options.