styles/qstyleoption.cpp

Source codeSwitch to Preprocessed file
LineSource CodeCoverage
1/**************************************************************************** -
2** -
3** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies). -
4** Contact: http://www.qt-project.org/legal -
5** -
6** This file is part of the QtGui module of the Qt Toolkit. -
7** -
8** $QT_BEGIN_LICENSE:LGPL$ -
9** Commercial License Usage -
10** Licensees holding valid commercial Qt licenses may use this file in -
11** accordance with the commercial license agreement provided with the -
12** Software or, alternatively, in accordance with the terms contained in -
13** a written agreement between you and Digia. For licensing terms and -
14** conditions see http://qt.digia.com/licensing. For further information -
15** use the contact form at http://qt.digia.com/contact-us. -
16** -
17** GNU Lesser General Public License Usage -
18** Alternatively, this file may be used under the terms of the GNU Lesser -
19** General Public License version 2.1 as published by the Free Software -
20** Foundation and appearing in the file LICENSE.LGPL included in the -
21** packaging of this file. Please review the following information to -
22** ensure the GNU Lesser General Public License version 2.1 requirements -
23** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -
24** -
25** In addition, as a special exception, Digia gives you certain additional -
26** rights. These rights are described in the Digia Qt LGPL Exception -
27** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -
28** -
29** GNU General Public License Usage -
30** Alternatively, this file may be used under the terms of the GNU -
31** General Public License version 3.0 as published by the Free Software -
32** Foundation and appearing in the file LICENSE.GPL included in the -
33** packaging of this file. Please review the following information to -
34** ensure the GNU General Public License version 3.0 requirements will be -
35** met: http://www.gnu.org/copyleft/gpl.html. -
36** -
37** -
38** $QT_END_LICENSE$ -
39** -
40****************************************************************************/ -
41 -
42#include "qstyleoption.h" -
43#include "qapplication.h" -
44#ifdef Q_OS_MAC -
45# include "qmacstyle_mac_p.h" -
46#endif -
47#include <qdebug.h> -
48#include <QtCore/qmath.h> -
49 -
50QT_BEGIN_NAMESPACE -
51 -
52/*! -
53 \class QStyleOption -
54 \brief The QStyleOption class stores the parameters used by QStyle functions. -
55 -
56 \ingroup appearance -
57 \inmodule QtWidgets -
58 -
59 QStyleOption and its subclasses contain all the information that -
60 QStyle functions need to draw a graphical element. -
61 -
62 For performance reasons, there are few member functions and the -
63 access to the member variables is direct (i.e., using the \c . or -
64 \c -> operator). This low-level feel makes the structures -
65 straightforward to use and emphasizes that these are simply -
66 parameters used by the style functions. -
67 -
68 The caller of a QStyle function usually creates QStyleOption -
69 objects on the stack. This combined with Qt's extensive use of -
70 \l{implicit sharing} for types such as QString, QPalette, and -
71 QColor ensures that no memory allocation needlessly takes place. -
72 -
73 The following code snippet shows how to use a specific -
74 QStyleOption subclass to paint a push button: -
75 -
76 \snippet qstyleoption/main.cpp 0 -
77 -
78 In our example, the control is a QStyle::CE_PushButton, and -
79 according to the QStyle::drawControl() documentation the -
80 corresponding class is QStyleOptionButton. -
81 -
82 When reimplementing QStyle functions that take a QStyleOption -
83 parameter, you often need to cast the QStyleOption to a subclass. -
84 For safety, you can use qstyleoption_cast() to ensure that the -
85 pointer type is correct. For example: -
86 -
87 \snippet qstyleoption/main.cpp 4 -
88 -
89 The qstyleoption_cast() function will return 0 if the object to -
90 which \c option points is not of the correct type. -
91 -
92 For an example demonstrating how style options can be used, see -
93 the \l {widgets/styles}{Styles} example. -
94 -
95 \sa QStyle, QStylePainter -
96*/ -
97 -
98/*! -
99 \enum QStyleOption::OptionType -
100 -
101 This enum is used internally by QStyleOption, its subclasses, and -
102 qstyleoption_cast() to determine the type of style option. In -
103 general you do not need to worry about this unless you want to -
104 create your own QStyleOption subclass and your own styles. -
105 -
106 \value SO_Button \l QStyleOptionButton -
107 \value SO_ComboBox \l QStyleOptionComboBox -
108 \value SO_Complex \l QStyleOptionComplex -
109 \value SO_Default QStyleOption -
110 \value SO_DockWidget \l QStyleOptionDockWidget -
111 \value SO_FocusRect \l QStyleOptionFocusRect -
112 \value SO_Frame \l QStyleOptionFrame -
113 \value SO_GraphicsItem \l QStyleOptionGraphicsItem -
114 \value SO_GroupBox \l QStyleOptionGroupBox -
115 \value SO_Header \l QStyleOptionHeader -
116 \value SO_MenuItem \l QStyleOptionMenuItem -
117 \value SO_ProgressBar \l QStyleOptionProgressBar -
118 \value SO_RubberBand \l QStyleOptionRubberBand -
119 \value SO_SizeGrip \l QStyleOptionSizeGrip -
120 \value SO_Slider \l QStyleOptionSlider -
121 \value SO_SpinBox \l QStyleOptionSpinBox -
122 \value SO_Tab \l QStyleOptionTab -
123 \value SO_TabBarBase \l QStyleOptionTabBarBase -
124 \value SO_TabWidgetFrame \l QStyleOptionTabWidgetFrame -
125 \value SO_TitleBar \l QStyleOptionTitleBar -
126 \value SO_ToolBar \l QStyleOptionToolBar -
127 \value SO_ToolBox \l QStyleOptionToolBox -
128 \value SO_ToolButton \l QStyleOptionToolButton -
129 \value SO_ViewItem \l QStyleOptionViewItem (used in Interviews) -
130 -
131 The following values are used for custom controls: -
132 -
133 \value SO_CustomBase Reserved for custom QStyleOptions; -
134 all custom controls values must be above this value -
135 \value SO_ComplexCustomBase Reserved for custom QStyleOptions; -
136 all custom complex controls values must be above this value -
137 -
138 \sa type -
139*/ -
140 -
141/*! -
142 Constructs a QStyleOption with the specified \a version and \a -
143 type. -
144 -
145 The version has no special meaning for QStyleOption; it can be -
146 used by subclasses to distinguish between different version of -
147 the same option type. -
148 -
149 The \l state member variable is initialized to -
150 QStyle::State_None. -
151 -
152 \sa version, type -
153*/ -
154 -
155QStyleOption::QStyleOption(int version, int type) -
156 : version(version), type(type), state(QStyle::State_None), -
157 direction(QApplication::layoutDirection()), fontMetrics(QFont()), styleObject(0) -
158{ -
159}
executed: }
Execution Count:541566
541566
160 -
161 -
162/*! -
163 Destroys this style option object. -
164*/ -
165QStyleOption::~QStyleOption() -
166{ -
167} -
168 -
169/*! -
170 \fn void QStyleOption::initFrom(const QWidget *widget) -
171 \since 4.1 -
172 -
173 Initializes the \l state, \l direction, \l rect, \l palette, \l fontMetrics -
174 and \l styleObject member variables based on the specified \a widget. -
175 -
176 This is a convenience function; the member variables can also be -
177 initialized manually. -
178 -
179 \sa QWidget::layoutDirection(), QWidget::rect(), -
180 QWidget::palette(), QWidget::fontMetrics() -
181*/ -
182 -
183/*! -
184 \obsolete -
185 -
186 Use initFrom(\a widget) instead. -
187*/ -
188void QStyleOption::init(const QWidget *widget) -
189{ -
190 QWidget *window = widget->window();
executed (the execution status of this line is deduced): QWidget *window = widget->window();
-
191 state = QStyle::State_None;
executed (the execution status of this line is deduced): state = QStyle::State_None;
-
192 if (widget->isEnabled())
evaluated: widget->isEnabled()
TRUEFALSE
yes
Evaluation Count:321589
yes
Evaluation Count:797
797-321589
193 state |= QStyle::State_Enabled;
executed: state |= QStyle::State_Enabled;
Execution Count:321589
321589
194 if (widget->hasFocus())
evaluated: widget->hasFocus()
TRUEFALSE
yes
Evaluation Count:35600
yes
Evaluation Count:286786
35600-286786
195 state |= QStyle::State_HasFocus;
executed: state |= QStyle::State_HasFocus;
Execution Count:35600
35600
196 if (window->testAttribute(Qt::WA_KeyboardFocusChange))
evaluated: window->testAttribute(Qt::WA_KeyboardFocusChange)
TRUEFALSE
yes
Evaluation Count:424
yes
Evaluation Count:321962
424-321962
197 state |= QStyle::State_KeyboardFocusChange;
executed: state |= QStyle::State_KeyboardFocusChange;
Execution Count:424
424
198 if (widget->underMouse())
evaluated: widget->underMouse()
TRUEFALSE
yes
Evaluation Count:25251
yes
Evaluation Count:297135
25251-297135
199 state |= QStyle::State_MouseOver;
executed: state |= QStyle::State_MouseOver;
Execution Count:25251
25251
200 if (window->isActiveWindow())
evaluated: window->isActiveWindow()
TRUEFALSE
yes
Evaluation Count:66514
yes
Evaluation Count:255872
66514-255872
201 state |= QStyle::State_Active;
executed: state |= QStyle::State_Active;
Execution Count:66514
66514
202 if (widget->isWindow())
evaluated: widget->isWindow()
TRUEFALSE
yes
Evaluation Count:85555
yes
Evaluation Count:236831
85555-236831
203 state |= QStyle::State_Window;
executed: state |= QStyle::State_Window;
Execution Count:85555
85555
204#ifdef Q_WS_MAC -
205 extern bool qt_mac_can_clickThrough(const QWidget *w); //qwidget_mac.cpp -
206 if (!(state & QStyle::State_Active) && !qt_mac_can_clickThrough(widget)) -
207 state &= ~QStyle::State_Enabled; -
208#endif -
209#ifdef Q_OS_MAC -
210 switch (QMacStyle::widgetSizePolicy(widget)) { -
211 case QMacStyle::SizeSmall: -
212 state |= QStyle::State_Small; -
213 break; -
214 case QMacStyle::SizeMini: -
215 state |= QStyle::State_Mini; -
216 break; -
217 default: -
218 ; -
219 } -
220#endif -
221#ifdef QT_KEYPAD_NAVIGATION -
222 if (widget->hasEditFocus()) -
223 state |= QStyle::State_HasEditFocus; -
224#endif -
225 -
226 direction = widget->layoutDirection();
executed (the execution status of this line is deduced): direction = widget->layoutDirection();
-
227 rect = widget->rect();
executed (the execution status of this line is deduced): rect = widget->rect();
-
228 palette = widget->palette();
executed (the execution status of this line is deduced): palette = widget->palette();
-
229 fontMetrics = widget->fontMetrics();
executed (the execution status of this line is deduced): fontMetrics = widget->fontMetrics();
-
230 styleObject = const_cast<QWidget*>(widget);
executed (the execution status of this line is deduced): styleObject = const_cast<QWidget*>(widget);
-
231}
executed: }
Execution Count:322386
322386
232 -
233/*! -
234 Constructs a copy of \a other. -
235*/ -
236QStyleOption::QStyleOption(const QStyleOption &other) -
237 : version(Version), type(Type), state(other.state), -
238 direction(other.direction), rect(other.rect), fontMetrics(other.fontMetrics), -
239 palette(other.palette), styleObject(other.styleObject) -
240{ -
241}
executed: }
Execution Count:11779
11779
242 -
243/*! -
244 Assign \a other to this QStyleOption. -
245*/ -
246QStyleOption &QStyleOption::operator=(const QStyleOption &other) -
247{ -
248 state = other.state;
executed (the execution status of this line is deduced): state = other.state;
-
249 direction = other.direction;
executed (the execution status of this line is deduced): direction = other.direction;
-
250 rect = other.rect;
executed (the execution status of this line is deduced): rect = other.rect;
-
251 fontMetrics = other.fontMetrics;
executed (the execution status of this line is deduced): fontMetrics = other.fontMetrics;
-
252 palette = other.palette;
executed (the execution status of this line is deduced): palette = other.palette;
-
253 styleObject = other.styleObject;
executed (the execution status of this line is deduced): styleObject = other.styleObject;
-
254 return *this;
executed: return *this;
Execution Count:214207
214207
255} -
256 -
257/*! -
258 \enum QStyleOption::StyleOptionType -
259 -
260 This enum is used to hold information about the type of the style option, and -
261 is defined for each QStyleOption subclass. -
262 -
263 \value Type The type of style option provided (\l{SO_Default} for -
264 this class). -
265 -
266 The type is used internally by QStyleOption, its subclasses, and -
267 qstyleoption_cast() to determine the type of style option. In -
268 general you do not need to worry about this unless you want to -
269 create your own QStyleOption subclass and your own styles. -
270 -
271 \sa StyleOptionVersion -
272*/ -
273 -
274/*! -
275 \enum QStyleOption::StyleOptionVersion -
276 -
277 This enum is used to hold information about the version of the style option, and -
278 is defined for each QStyleOption subclass. -
279 -
280 \value Version 1 -
281 -
282 The version is used by QStyleOption subclasses to implement -
283 extensions without breaking compatibility. If you use -
284 qstyleoption_cast(), you normally do not need to check it. -
285 -
286 \sa StyleOptionType -
287*/ -
288 -
289/*! -
290 \variable QStyleOption::palette -
291 \brief the palette that should be used when painting the control -
292 -
293 By default, the application's default palette is used. -
294 -
295 \sa initFrom() -
296*/ -
297 -
298/*! -
299 \variable QStyleOption::direction -
300 \brief the text layout direction that should be used when drawing text in the control -
301 -
302 By default, the layout direction is Qt::LeftToRight. -
303 -
304 \sa initFrom() -
305*/ -
306 -
307/*! -
308 \variable QStyleOption::fontMetrics -
309 \brief the font metrics that should be used when drawing text in the control -
310 -
311 By default, the application's default font is used. -
312 -
313 \sa initFrom() -
314*/ -
315 -
316/*! -
317 \variable QStyleOption::styleObject -
318 \brief the object being styled -
319 -
320 The built-in styles support the following types: QWidget, QGraphicsObject and QQuickItem. -
321 -
322 \sa initFrom() -
323*/ -
324 -
325/*! -
326 \variable QStyleOption::rect -
327 \brief the area that should be used for various calculations and painting -
328 -
329 This can have different meanings for different types of elements. -
330 For example, for a \l QStyle::CE_PushButton element it would be -
331 the rectangle for the entire button, while for a \l -
332 QStyle::CE_PushButtonLabel element it would be just the area for -
333 the push button label. -
334 -
335 The default value is a null rectangle, i.e. a rectangle with both -
336 the width and the height set to 0. -
337 -
338 \sa initFrom() -
339*/ -
340 -
341/*! -
342 \variable QStyleOption::state -
343 \brief the style flags that are used when drawing the control -
344 -
345 The default value is QStyle::State_None. -
346 -
347 \sa initFrom(), QStyle::drawPrimitive(), QStyle::drawControl(), -
348 QStyle::drawComplexControl(), QStyle::State -
349*/ -
350 -
351/*! -
352 \variable QStyleOption::type -
353 \brief the option type of the style option -
354 -
355 The default value is SO_Default. -
356 -
357 \sa OptionType -
358*/ -
359 -
360/*! -
361 \variable QStyleOption::version -
362 \brief the version of the style option -
363 -
364 This value can be used by subclasses to implement extensions -
365 without breaking compatibility. If you use the qstyleoption_cast() -
366 function, you normally do not need to check it. -
367 -
368 The default value is 1. -
369*/ -
370 -
371/*! -
372 \class QStyleOptionFocusRect -
373 \brief The QStyleOptionFocusRect class is used to describe the -
374 parameters for drawing a focus rectangle with QStyle. -
375 -
376 \inmodule QtWidgets -
377 -
378 For performance reasons, the access to the member variables is -
379 direct (i.e., using the \c . or \c -> operator). This low-level feel -
380 makes the structures straightforward to use and emphasizes that -
381 these are simply parameters used by the style functions. -
382 -
383 For an example demonstrating how style options can be used, see -
384 the \l {widgets/styles}{Styles} example. -
385 -
386 \sa QStyleOption -
387*/ -
388 -
389/*! -
390 Constructs a QStyleOptionFocusRect, initializing the members -
391 variables to their default values. -
392*/ -
393 -
394QStyleOptionFocusRect::QStyleOptionFocusRect() -
395 : QStyleOption(Version, SO_FocusRect) -
396{ -
397 state |= QStyle::State_KeyboardFocusChange; // assume we had one, will be corrected in initFrom()
executed (the execution status of this line is deduced): state |= QStyle::State_KeyboardFocusChange;
-
398}
executed: }
Execution Count:1395
1395
399 -
400/*! -
401 \internal -
402*/ -
403QStyleOptionFocusRect::QStyleOptionFocusRect(int version) -
404 : QStyleOption(version, SO_FocusRect) -
405{ -
406 state |= QStyle::State_KeyboardFocusChange; // assume we had one, will be corrected in initFrom()
never executed (the execution status of this line is deduced): state |= QStyle::State_KeyboardFocusChange;
-
407}
never executed: }
0
408 -
409/*! -
410 \enum QStyleOptionFocusRect::StyleOptionType -
411 -
412 This enum is used to hold information about the type of the style option, and -
413 is defined for each QStyleOption subclass. -
414 -
415 \value Type The type of style option provided (\l{SO_FocusRect} for this class). -
416 -
417 The type is used internally by QStyleOption, its subclasses, and -
418 qstyleoption_cast() to determine the type of style option. In -
419 general you do not need to worry about this unless you want to -
420 create your own QStyleOption subclass and your own styles. -
421 -
422 \sa StyleOptionVersion -
423*/ -
424 -
425/*! -
426 \enum QStyleOptionFocusRect::StyleOptionVersion -
427 -
428 This enum is used to hold information about the version of the style option, and -
429 is defined for each QStyleOption subclass. -
430 -
431 \value Version 1 -
432 -
433 The version is used by QStyleOption subclasses to implement -
434 extensions without breaking compatibility. If you use -
435 qstyleoption_cast(), you normally do not need to check it. -
436 -
437 \sa StyleOptionType -
438*/ -
439 -
440/*! -
441 \fn QStyleOptionFocusRect::QStyleOptionFocusRect(const QStyleOptionFocusRect &other) -
442 -
443 Constructs a copy of the \a other style option. -
444*/ -
445 -
446/*! -
447 \variable QStyleOptionFocusRect::backgroundColor -
448 \brief the background color on which the focus rectangle is being drawn -
449 -
450 The default value is an invalid color with the RGB value (0, 0, -
451 0). An invalid color is a color that is not properly set up for -
452 the underlying window system. -
453*/ -
454 -
455/*! -
456 \class QStyleOptionFrame -
457 \brief The QStyleOptionFrame class is used to describe the -
458 parameters for drawing a frame. -
459 -
460 \inmodule QtWidgets -
461 -
462 QStyleOptionFrame is used for drawing several built-in Qt widgets, -
463 including QFrame, QGroupBox, QLineEdit, and QMenu. -
464 -
465 An instance of the QStyleOptionFrame class has -
466 \l{QStyleOption::type} {type} SO_Frame and \l{QStyleOption::version} -
467 {version} 3. -
468 -
469 The type is used internally by QStyleOption, its subclasses, and -
470 qstyleoption_cast() to determine the type of style option. In -
471 general you do not need to worry about this unless you want to -
472 create your own QStyleOption subclass and your own styles. The -
473 version is used by QStyleOption subclasses to implement extensions -
474 without breaking compatibility. If you use qstyleoption_cast(), -
475 you normally do not need to check it. -
476 -
477 For an example demonstrating how style options can be used, see -
478 the \l {widgets/styles}{Styles} example. -
479 -
480 \sa QStyleOption -
481*/ -
482 -
483/*! -
484 \typedef QStyleOptionFrameV2 -
485 \relates QStyleOptionFrame -
486 -
487 Synonym for QStyleOptionFrame. -
488*/ -
489 -
490/*! -
491 \typedef QStyleOptionFrameV3 -
492 \relates QStyleOptionFrame -
493 -
494 Synonym for QStyleOptionFrame. -
495*/ -
496 -
497/*! -
498 Constructs a QStyleOptionFrame, initializing the members -
499 variables to their default values. -
500*/ -
501 -
502QStyleOptionFrame::QStyleOptionFrame() -
503 : QStyleOption(Version, SO_Frame), lineWidth(0), midLineWidth(0), -
504 features(None), frameShape(QFrame::NoFrame) -
505{ -
506}
executed: }
Execution Count:43847
43847
507 -
508/*! -
509 \internal -
510*/ -
511QStyleOptionFrame::QStyleOptionFrame(int version) -
512 : QStyleOption(version, SO_Frame), lineWidth(0), midLineWidth(0), -
513 features(None), frameShape(QFrame::NoFrame) -
514{ -
515}
never executed: }
0
516 -
517/*! -
518 \fn QStyleOptionFrame::QStyleOptionFrame(const QStyleOptionFrame &other) -
519 -
520 Constructs a copy of the \a other style option. -
521*/ -
522 -
523/*! -
524 \enum QStyleOptionFrame::StyleOptionType -
525 -
526 This enum is used to hold information about the type of the style option, and -
527 is defined for each QStyleOption subclass. -
528 -
529 \value Type The type of style option provided (\l{SO_Frame} for this class). -
530 -
531 The type is used internally by QStyleOption, its subclasses, and -
532 qstyleoption_cast() to determine the type of style option. In -
533 general you do not need to worry about this unless you want to -
534 create your own QStyleOption subclass and your own styles. -
535 -
536 \sa StyleOptionVersion -
537*/ -
538 -
539/*! -
540 \enum QStyleOptionFrame::StyleOptionVersion -
541 -
542 This enum is used to hold information about the version of the style option, and -
543 is defined for each QStyleOption subclass. -
544 -
545 \value Version 3 -
546 -
547 The version is used by QStyleOption subclasses to implement -
548 extensions without breaking compatibility. If you use -
549 qstyleoption_cast(), you normally do not need to check it. -
550 -
551 \sa StyleOptionType -
552*/ -
553 -
554/*! -
555 \variable QStyleOptionFrame::lineWidth -
556 \brief the line width for drawing the frame -
557 -
558 The default value is 0. -
559 -
560 \sa QFrame::lineWidth -
561*/ -
562 -
563/*! -
564 \variable QStyleOptionFrame::midLineWidth -
565 \brief the mid-line width for drawing the frame -
566 -
567 This is usually used in drawing sunken or raised frames. -
568 -
569 The default value is 0. -
570 -
571 \sa QFrame::midLineWidth -
572*/ -
573 -
574/*! -
575 \enum QStyleOptionFrame::FrameFeature -
576 -
577 This enum describes the different types of features a frame can have. -
578 -
579 \value None Indicates a normal frame. -
580 \value Flat Indicates a flat frame. -
581 \value Rounded Indicates a rounded frame. -
582*/ -
583 -
584/*! -
585 \variable QStyleOptionFrame::features -
586 \brief a bitwise OR of the features that describe this frame. -
587 -
588 \sa FrameFeature -
589*/ -
590 -
591/*! -
592 \variable QStyleOptionFrame::frameShape -
593 \brief This property holds the frame shape value of the frame. -
594 -
595 \sa QFrame::frameShape -
596*/ -
597 -
598/*! -
599 \class QStyleOptionGroupBox -
600 \brief The QStyleOptionGroupBox class describes the parameters for -
601 drawing a group box. -
602 -
603 \since 4.1 -
604 \inmodule QtWidgets -
605 -
606 QStyleOptionButton contains all the information that QStyle -
607 functions need the various graphical elements of a group box. -
608 -
609 It holds the lineWidth and the midLineWidth for drawing the panel, -
610 the group box's \l {text}{title} and the title's \l -
611 {textAlignment}{alignment} and \l {textColor}{color}. -
612 -
613 For performance reasons, the access to the member variables is -
614 direct (i.e., using the \c . or \c -> operator). This low-level feel -
615 makes the structures straightforward to use and emphasizes that -
616 these are simply parameters used by the style functions. -
617 -
618 For an example demonstrating how style options can be used, see -
619 the \l {widgets/styles}{Styles} example. -
620 -
621 \sa QStyleOption, QStyleOptionComplex, QGroupBox -
622*/ -
623 -
624/*! -
625 \enum QStyleOptionGroupBox::StyleOptionType -
626 -
627 This enum is used to hold information about the type of the style option, and -
628 is defined for each QStyleOption subclass. -
629 -
630 \value Type The type of style option provided (\l{SO_GroupBox} for this class). -
631 -
632 The type is used internally by QStyleOption, its subclasses, and -
633 qstyleoption_cast() to determine the type of style option. In -
634 general you do not need to worry about this unless you want to -
635 create your own QStyleOption subclass and your own styles. -
636 -
637 \sa StyleOptionVersion -
638*/ -
639 -
640/*! -
641 \enum QStyleOptionGroupBox::StyleOptionVersion -
642 -
643 This enum is used to hold information about the version of the style option, and -
644 is defined for each QStyleOption subclass. -
645 -
646 \value Version 1 -
647 -
648 The version is used by QStyleOption subclasses to implement -
649 extensions without breaking compatibility. If you use -
650 qstyleoption_cast(), you normally do not need to check it. -
651 -
652 \sa StyleOptionType -
653*/ -
654 -
655/*! -
656 \variable QStyleOptionGroupBox::lineWidth -
657 \brief the line width for drawing the panel -
658 -
659 The value of this variable is, currently, always 1. -
660 -
661 \sa QFrame::lineWidth -
662*/ -
663 -
664/*! -
665 \variable QStyleOptionGroupBox::midLineWidth -
666 \brief the mid-line width for drawing the panel -
667 -
668 The mid-line width is usually used when drawing sunken or raised -
669 group box frames. The value of this variable is, currently, always 0. -
670 -
671 \sa QFrame::midLineWidth -
672*/ -
673 -
674/*! -
675 \variable QStyleOptionGroupBox::text -
676 \brief the text of the group box -
677 -
678 The default value is an empty string. -
679 -
680 \sa QGroupBox::title -
681*/ -
682 -
683/*! -
684 \variable QStyleOptionGroupBox::textAlignment -
685 \brief the alignment of the group box title -
686 -
687 The default value is Qt::AlignLeft. -
688 -
689 \sa QGroupBox::alignment -
690*/ -
691 -
692/*! -
693 \variable QStyleOptionGroupBox::features -
694 \brief the features of the group box frame -
695 -
696 The frame is flat by default. -
697 -
698 \sa QStyleOptionFrame::FrameFeature -
699*/ -
700 -
701/*! -
702 \variable QStyleOptionGroupBox::textColor -
703 \brief the color of the group box title -
704 -
705 The default value is an invalid color with the RGB value (0, 0, -
706 0). An invalid color is a color that is not properly set up for -
707 the underlying window system. -
708*/ -
709 -
710/*! -
711 Constructs a QStyleOptionGroupBox, initializing the members -
712 variables to their default values. -
713*/ -
714QStyleOptionGroupBox::QStyleOptionGroupBox() -
715 : QStyleOptionComplex(Version, Type), features(QStyleOptionFrame::None), -
716 textAlignment(Qt::AlignLeft), lineWidth(0), midLineWidth(0) -
717{ -
718}
executed: }
Execution Count:1030
1030
719 -
720/*! -
721 \fn QStyleOptionGroupBox::QStyleOptionGroupBox(const QStyleOptionGroupBox &other) -
722 -
723 Constructs a copy of the \a other style option. -
724*/ -
725 -
726/*! -
727 \internal -
728*/ -
729QStyleOptionGroupBox::QStyleOptionGroupBox(int version) -
730 : QStyleOptionComplex(version, Type), features(QStyleOptionFrame::None), -
731 textAlignment(Qt::AlignLeft), lineWidth(0), midLineWidth(0) -
732{ -
733}
never executed: }
0
734 -
735/*! -
736 \class QStyleOptionHeader -
737 \brief The QStyleOptionHeader class is used to describe the -
738 parameters for drawing a header. -
739 -
740 \inmodule QtWidgets -
741 -
742 QStyleOptionHeader contains all the information that QStyle -
743 functions need to draw the item views' header pane, header sort -
744 arrow, and header label. -
745 -
746 For performance reasons, the access to the member variables is -
747 direct (i.e., using the \c . or \c -> operator). This low-level feel -
748 makes the structures straightforward to use and emphasizes that -
749 these are simply parameters used by the style functions. -
750 -
751 For an example demonstrating how style options can be used, see -
752 the \l {widgets/styles}{Styles} example. -
753 -
754 \sa QStyleOption -
755*/ -
756 -
757/*! -
758 Constructs a QStyleOptionHeader, initializing the members -
759 variables to their default values. -
760*/ -
761 -
762QStyleOptionHeader::QStyleOptionHeader() -
763 : QStyleOption(QStyleOptionHeader::Version, SO_Header), -
764 section(0), textAlignment(Qt::AlignLeft), iconAlignment(Qt::AlignLeft), -
765 position(QStyleOptionHeader::Beginning), -
766 selectedPosition(QStyleOptionHeader::NotAdjacent), sortIndicator(None), -
767 orientation(Qt::Horizontal) -
768{ -
769}
executed: }
Execution Count:26952
26952
770 -
771/*! -
772 \internal -
773*/ -
774QStyleOptionHeader::QStyleOptionHeader(int version) -
775 : QStyleOption(version, SO_Header), -
776 section(0), textAlignment(Qt::AlignLeft), iconAlignment(Qt::AlignLeft), -
777 position(QStyleOptionHeader::Beginning), -
778 selectedPosition(QStyleOptionHeader::NotAdjacent), sortIndicator(None), -
779 orientation(Qt::Horizontal) -
780{ -
781}
never executed: }
0
782 -
783/*! -
784 \variable QStyleOptionHeader::orientation -
785 \brief the header's orientation (horizontal or vertical) -
786 -
787 The default orientation is Qt::Horizontal -
788*/ -
789 -
790/*! -
791 \fn QStyleOptionHeader::QStyleOptionHeader(const QStyleOptionHeader &other) -
792 -
793 Constructs a copy of the \a other style option. -
794*/ -
795 -
796/*! -
797 \enum QStyleOptionHeader::StyleOptionType -
798 -
799 This enum is used to hold information about the type of the style option, and -
800 is defined for each QStyleOption subclass. -
801 -
802 \value Type The type of style option provided (\l{SO_Header} for this class). -
803 -
804 The type is used internally by QStyleOption, its subclasses, and -
805 qstyleoption_cast() to determine the type of style option. In -
806 general you do not need to worry about this unless you want to -
807 create your own QStyleOption subclass and your own styles. -
808 -
809 \sa StyleOptionVersion -
810*/ -
811 -
812/*! -
813 \enum QStyleOptionHeader::StyleOptionVersion -
814 -
815 This enum is used to hold information about the version of the style option, and -
816 is defined for each QStyleOption subclass. -
817 -
818 \value Version 1 -
819 -
820 The version is used by QStyleOption subclasses to implement -
821 extensions without breaking compatibility. If you use -
822 qstyleoption_cast(), you normally do not need to check it. -
823 -
824 \sa StyleOptionType -
825*/ -
826 -
827/*! -
828 \variable QStyleOptionHeader::section -
829 \brief which section of the header is being painted -
830 -
831 The default value is 0. -
832*/ -
833 -
834/*! -
835 \variable QStyleOptionHeader::text -
836 \brief the text of the header -
837 -
838 The default value is an empty string. -
839*/ -
840 -
841/*! -
842 \variable QStyleOptionHeader::textAlignment -
843 \brief the alignment flags for the text of the header -
844 -
845 The default value is Qt::AlignLeft. -
846*/ -
847 -
848/*! -
849 \variable QStyleOptionHeader::icon -
850 \brief the icon of the header -
851 -
852 The default value is an empty icon, i.e. an icon with neither a -
853 pixmap nor a filename. -
854*/ -
855 -
856/*! -
857 \variable QStyleOptionHeader::iconAlignment -
858 \brief the alignment flags for the icon of the header -
859 -
860 The default value is Qt::AlignLeft. -
861*/ -
862 -
863/*! -
864 \variable QStyleOptionHeader::position -
865 \brief the section's position in relation to the other sections -
866 -
867 The default value is QStyleOptionHeader::Beginning. -
868*/ -
869 -
870/*! -
871 \variable QStyleOptionHeader::selectedPosition -
872 \brief the section's position in relation to the selected section -
873 -
874 The default value is QStyleOptionHeader::NotAdjacent -
875*/ -
876 -
877/*! -
878 \variable QStyleOptionHeader::sortIndicator -
879 \brief the direction the sort indicator should be drawn -
880 -
881 The default value is QStyleOptionHeader::None. -
882*/ -
883 -
884/*! -
885 \enum QStyleOptionHeader::SectionPosition -
886 -
887 This enum lets you know where the section's position is in relation to the other sections. -
888 -
889 \value Beginning At the beginining of the header -
890 \value Middle In the middle of the header -
891 \value End At the end of the header -
892 \value OnlyOneSection Only one header section -
893 -
894 \sa position -
895*/ -
896 -
897/*! -
898 \enum QStyleOptionHeader::SelectedPosition -
899 -
900 This enum lets you know where the section's position is in relation to the selected section. -
901 -
902 \value NotAdjacent Not adjacent to the selected section -
903 \value NextIsSelected The next section is selected -
904 \value PreviousIsSelected The previous section is selected -
905 \value NextAndPreviousAreSelected Both the next and previous section are selected -
906 -
907 \sa selectedPosition -
908*/ -
909 -
910/*! -
911 \enum QStyleOptionHeader::SortIndicator -
912 -
913 Indicates which direction the sort indicator should be drawn -
914 -
915 \value None No sort indicator is needed -
916 \value SortUp Draw an up indicator -
917 \value SortDown Draw a down indicator -
918 -
919 \sa sortIndicator -
920*/ -
921 -
922/*! -
923 \class QStyleOptionButton -
924 \brief The QStyleOptionButton class is used to describe the -
925 parameters for drawing buttons. -
926 -
927 \inmodule QtWidgets -
928 -
929 QStyleOptionButton contains all the information that QStyle -
930 functions need to draw graphical elements like QPushButton, -
931 QCheckBox, and QRadioButton. -
932 -
933 For performance reasons, the access to the member variables is -
934 direct (i.e., using the \c . or \c -> operator). This low-level feel -
935 makes the structures straightforward to use and emphasizes that -
936 these are simply parameters used by the style functions. -
937 -
938 For an example demonstrating how style options can be used, see -
939 the \l {widgets/styles}{Styles} example. -
940 -
941 \sa QStyleOption, QStyleOptionToolButton -
942*/ -
943 -
944/*! -
945 \enum QStyleOptionButton::ButtonFeature -
946 -
947 This enum describes the different types of features a push button can have. -
948 -
949 \value None Indicates a normal push button. -
950 \value Flat Indicates a flat push button. -
951 \value HasMenu Indicates that the button has a drop down menu. -
952 \value DefaultButton Indicates that the button is a default button. -
953 \value AutoDefaultButton Indicates that the button is an auto default button. -
954 \value CommandLinkButton Indicates that the button is a Windows Vista type command link. -
955 -
956 \sa features -
957*/ -
958 -
959/*! -
960 Constructs a QStyleOptionButton, initializing the members -
961 variables to their default values. -
962*/ -
963 -
964QStyleOptionButton::QStyleOptionButton() -
965 : QStyleOption(QStyleOptionButton::Version, SO_Button), features(None) -
966{ -
967}
executed: }
Execution Count:8798
8798
968 -
969/*! -
970 \internal -
971*/ -
972QStyleOptionButton::QStyleOptionButton(int version) -
973 : QStyleOption(version, SO_Button), features(None) -
974{ -
975}
never executed: }
0
976 -
977/*! -
978 \fn QStyleOptionButton::QStyleOptionButton(const QStyleOptionButton &other) -
979 -
980 Constructs a copy of the \a other style option. -
981*/ -
982 -
983/*! -
984 \enum QStyleOptionButton::StyleOptionType -
985 -
986 This enum is used to hold information about the type of the style option, and -
987 is defined for each QStyleOption subclass. -
988 -
989 \value Type The type of style option provided (\l{SO_Button} for this class). -
990 -
991 The type is used internally by QStyleOption, its subclasses, and -
992 qstyleoption_cast() to determine the type of style option. In -
993 general you do not need to worry about this unless you want to -
994 create your own QStyleOption subclass and your own styles. -
995 -
996 \sa StyleOptionVersion -
997*/ -
998 -
999/*! -
1000 \enum QStyleOptionButton::StyleOptionVersion -
1001 -
1002 This enum is used to hold information about the version of the style option, and -
1003 is defined for each QStyleOption subclass. -
1004 -
1005 \value Version 1 -
1006 -
1007 The version is used by QStyleOption subclasses to implement -
1008 extensions without breaking compatibility. If you use -
1009 qstyleoption_cast(), you normally do not need to check it. -
1010 -
1011 \sa StyleOptionType -
1012*/ -
1013 -
1014/*! -
1015 \variable QStyleOptionButton::features -
1016 \brief a bitwise OR of the features that describe this button -
1017 -
1018 \sa ButtonFeature -
1019*/ -
1020 -
1021/*! -
1022 \variable QStyleOptionButton::text -
1023 \brief the text of the button -
1024 -
1025 The default value is an empty string. -
1026*/ -
1027 -
1028/*! -
1029 \variable QStyleOptionButton::icon -
1030 \brief the icon of the button -
1031 -
1032 The default value is an empty icon, i.e. an icon with neither a -
1033 pixmap nor a filename. -
1034 -
1035 \sa iconSize -
1036*/ -
1037 -
1038/*! -
1039 \variable QStyleOptionButton::iconSize -
1040 \brief the size of the icon for the button -
1041 -
1042 The default value is QSize(-1, -1), i.e. an invalid size. -
1043*/ -
1044 -
1045 -
1046#ifndef QT_NO_TOOLBAR -
1047/*! -
1048 \class QStyleOptionToolBar -
1049 \brief The QStyleOptionToolBar class is used to describe the -
1050 parameters for drawing a toolbar. -
1051 -
1052 \since 4.1 -
1053 \inmodule QtWidgets -
1054 -
1055 QStyleOptionToolBar contains all the information that QStyle -
1056 functions need to draw QToolBar. -
1057 -
1058 For performance reasons, the access to the member variables is -
1059 direct (i.e., using the \c . or \c -> operator). This low-level feel -
1060 makes the structures straightforward to use and emphasizes that -
1061 these are simply parameters used by the style functions. -
1062 -
1063 The QStyleOptionToolBar class holds the lineWidth and the -
1064 midLineWidth for drawing the widget. It also stores information -
1065 about which \l {toolBarArea}{area} the toolbar should be located -
1066 in, whether it is movable or not, which position the toolbar line -
1067 should have (positionOfLine), and the toolbar's position within -
1068 the line (positionWithinLine). -
1069 -
1070 In addition, the class provides a couple of enums: The -
1071 ToolBarFeature enum is used to describe whether a toolbar is -
1072 movable or not, and the ToolBarPosition enum is used to describe -
1073 the position of a toolbar line, as well as the toolbar's position -
1074 within the line. -
1075 -
1076 For an example demonstrating how style options can be used, see -
1077 the \l {widgets/styles}{Styles} example. -
1078 -
1079 \sa QStyleOption -
1080*/ -
1081 -
1082/*! -
1083 Constructs a QStyleOptionToolBar, initializing the members -
1084 variables to their default values. -
1085*/ -
1086 -
1087QStyleOptionToolBar::QStyleOptionToolBar() -
1088 : QStyleOption(Version, SO_ToolBar), positionOfLine(OnlyOne), positionWithinLine(OnlyOne), -
1089 toolBarArea(Qt::TopToolBarArea), features(None), lineWidth(0), midLineWidth(0) -
1090{ -
1091}
executed: }
Execution Count:158
158
1092 -
1093/*! -
1094 \fn QStyleOptionToolBar::QStyleOptionToolBar(const QStyleOptionToolBar &other) -
1095 -
1096 Constructs a copy of the \a other style option. -
1097*/ -
1098 -
1099/*! -
1100 \internal -
1101*/ -
1102QStyleOptionToolBar::QStyleOptionToolBar(int version) -
1103: QStyleOption(version, SO_ToolBar), positionOfLine(OnlyOne), positionWithinLine(OnlyOne), -
1104 toolBarArea(Qt::TopToolBarArea), features(None), lineWidth(0), midLineWidth(0) -
1105{ -
1106 -
1107}
never executed: }
0
1108 -
1109/*! -
1110 \enum QStyleOptionToolBar::ToolBarPosition -
1111 -
1112 \image qstyleoptiontoolbar-position.png -
1113 -
1114 This enum is used to describe the position of a toolbar line, as -
1115 well as the toolbar's position within the line. -
1116 -
1117 The order of the positions within a line starts at the top of a -
1118 vertical line, and from the left within a horizontal line. The -
1119 order of the positions for the lines is always from the the -
1120 parent widget's boundary edges. -
1121 -
1122 \value Beginning The toolbar is located at the beginning of the line, -
1123 or the toolbar line is the first of several lines. There can -
1124 only be one toolbar (and only one line) with this position. -
1125 \value Middle The toolbar is located in the middle of the line, -
1126 or the toolbar line is in the middle of several lines. There can -
1127 several toolbars (and lines) with this position. -
1128 \value End The toolbar is located at the end of the line, -
1129 or the toolbar line is the last of several lines. There can -
1130 only be one toolbar (and only one line) with this position. -
1131 \value OnlyOne There is only one toolbar or line. This is the default value -
1132 of the positionOfLine and positionWithinLine variables. -
1133 -
1134 \sa positionWithinLine, positionOfLine -
1135*/ -
1136 -
1137/*! -
1138 \enum QStyleOptionToolBar::ToolBarFeature -
1139 -
1140 This enum is used to describe whether a toolbar is movable or not. -
1141 -
1142 \value None The toolbar cannot be moved. The default value. -
1143 \value Movable The toolbar is movable, and a handle will appear when -
1144 holding the cursor over the toolbar's boundary. -
1145 -
1146 \sa features, QToolBar::isMovable() -
1147*/ -
1148 -
1149/*! -
1150 \variable QStyleOptionToolBar::positionOfLine -
1151 -
1152 This variable holds the position of the toolbar line. -
1153 -
1154 The default value is QStyleOptionToolBar::OnlyOne. -
1155*/ -
1156 -
1157/*! -
1158 \variable QStyleOptionToolBar::positionWithinLine -
1159 -
1160 This variable holds the position of the toolbar within a line. -
1161 -
1162 The default value is QStyleOptionToolBar::OnlyOne. -
1163*/ -
1164 -
1165/*! -
1166 \variable QStyleOptionToolBar::toolBarArea -
1167 -
1168 This variable holds the location for drawing the toolbar. -
1169 -
1170 The default value is Qt::TopToolBarArea. -
1171 -
1172 \sa Qt::ToolBarArea -
1173*/ -
1174 -
1175/*! -
1176 \variable QStyleOptionToolBar::features -
1177 -
1178 This variable holds whether the toolbar is movable or not. -
1179 -
1180 The default value is \l None. -
1181*/ -
1182 -
1183/*! -
1184 \variable QStyleOptionToolBar::lineWidth -
1185 -
1186 This variable holds the line width for drawing the toolbar. -
1187 -
1188 The default value is 0. -
1189*/ -
1190 -
1191/*! -
1192 \variable QStyleOptionToolBar::midLineWidth -
1193 -
1194 This variable holds the mid-line width for drawing the toolbar. -
1195 -
1196 The default value is 0. -
1197*/ -
1198 -
1199/*! -
1200 \enum QStyleOptionToolBar::StyleOptionType -
1201 -
1202 This enum is used to hold information about the type of the style -
1203 option, and is defined for each QStyleOption subclass. -
1204 -
1205 \value Type The type of style option provided (\l{SO_ToolBar} for -
1206 this class). -
1207 -
1208 The type is used internally by QStyleOption, its subclasses, and -
1209 qstyleoption_cast() to determine the type of style option. In -
1210 general you do not need to worry about this unless you want to -
1211 create your own QStyleOption subclass and your own styles. -
1212 -
1213 \sa StyleOptionVersion -
1214*/ -
1215 -
1216/*! -
1217 \enum QStyleOptionToolBar::StyleOptionVersion -
1218 -
1219 This enum is used to hold information about the version of the -
1220 style option, and is defined for each QStyleOption subclass. -
1221 -
1222 \value Version 1 -
1223 -
1224 The version is used by QStyleOption subclasses to implement -
1225 extensions without breaking compatibility. If you use -
1226 qstyleoption_cast(), you normally do not need to check it. -
1227 -
1228 \sa StyleOptionType -
1229*/ -
1230 -
1231#endif -
1232 -
1233#ifndef QT_NO_TABBAR -
1234/*! -
1235 \class QStyleOptionTab -
1236 \brief The QStyleOptionTab class is used to describe the -
1237 parameters for drawing a tab bar. -
1238 -
1239 \inmodule QtWidgets -
1240 -
1241 The QStyleOptionTab class is used for drawing several built-in Qt -
1242 widgets including \l QTabBar and the panel for \l QTabWidget. -
1243 -
1244 An instance of the QStyleOptionTab class has -
1245 \l{QStyleOption::type} {type} \l SO_Tab and -
1246 \l{QStyleOption::version} {version} 3. The type is used internally -
1247 by QStyleOption, its subclasses, and qstyleoption_cast() to -
1248 determine the type of style option. In general you do not need to -
1249 worry about this unless you want to create your own QStyleOption -
1250 subclass and your own styles. The version is used by QStyleOption -
1251 subclasses to implement extensions without breaking -
1252 compatibility. If you use qstyleoption_cast(), you normally do not -
1253 need to check it. -
1254 -
1255 For an example demonstrating how style options can be used, see -
1256 the \l {widgets/styles}{Styles} example. -
1257 -
1258 \sa QStyleOption -
1259*/ -
1260 -
1261/*! -
1262 \typedef QStyleOptionTabV2 -
1263 \relates QStyleOptionTab -
1264 -
1265 Synonym for QStyleOptionTab. -
1266*/ -
1267 -
1268/*! -
1269 \typedef QStyleOptionTabV3 -
1270 \relates QStyleOptionTab -
1271 -
1272 Synonym for QStyleOptionTab. -
1273*/ -
1274 -
1275/*! -
1276 Constructs a QStyleOptionTab object, initializing the members -
1277 variables to their default values. -
1278*/ -
1279 -
1280QStyleOptionTab::QStyleOptionTab() -
1281 : QStyleOption(QStyleOptionTab::Version, SO_Tab), -
1282 shape(QTabBar::RoundedNorth), -
1283 row(0), -
1284 position(Beginning), -
1285 selectedPosition(NotAdjacent), cornerWidgets(QStyleOptionTab::NoCornerWidgets), -
1286 documentMode(false), -
1287 features(QStyleOptionTab::None) -
1288{ -
1289}
executed: }
Execution Count:963
963
1290 -
1291/*! -
1292 \internal -
1293*/ -
1294QStyleOptionTab::QStyleOptionTab(int version) -
1295 : QStyleOption(version, SO_Tab), -
1296 shape(QTabBar::RoundedNorth), -
1297 row(0), -
1298 position(Beginning), -
1299 selectedPosition(NotAdjacent), cornerWidgets(QStyleOptionTab::NoCornerWidgets), -
1300 documentMode(false), -
1301 features(QStyleOptionTab::None) -
1302{ -
1303}
never executed: }
0
1304 -
1305/*! -
1306 \fn QStyleOptionTab::QStyleOptionTab(const QStyleOptionTab &other) -
1307 -
1308 Constructs a copy of the \a other style option. -
1309*/ -
1310 -
1311/*! -
1312 \enum QStyleOptionTab::StyleOptionType -
1313 -
1314 This enum is used to hold information about the type of the style option, and -
1315 is defined for each QStyleOption subclass. -
1316 -
1317 \value Type The type of style option provided (\l{SO_Tab} for this class). -
1318 -
1319 The type is used internally by QStyleOption, its subclasses, and -
1320 qstyleoption_cast() to determine the type of style option. In -
1321 general you do not need to worry about this unless you want to -
1322 create your own QStyleOption subclass and your own styles. -
1323 -
1324 \sa StyleOptionVersion -
1325*/ -
1326 -
1327/*! -
1328 \enum QStyleOptionTab::StyleOptionVersion -
1329 -
1330 This enum is used to hold information about the version of the style option, and -
1331 is defined for each QStyleOption subclass. -
1332 -
1333 \value Version 3 -
1334 -
1335 The version is used by QStyleOption subclasses to implement -
1336 extensions without breaking compatibility. If you use -
1337 qstyleoption_cast(), you normally do not need to check it. -
1338 -
1339 \sa StyleOptionType -
1340*/ -
1341 -
1342/*! -
1343 \enum QStyleOptionTab::TabPosition -
1344 -
1345 This enum describes the position of the tab. -
1346 -
1347 \value Beginning The tab is the first tab in the tab bar. -
1348 \value Middle The tab is neither the first nor the last tab in the tab bar. -
1349 \value End The tab is the last tab in the tab bar. -
1350 \value OnlyOneTab The tab is both the first and the last tab in the tab bar. -
1351 -
1352 \sa position -
1353*/ -
1354 -
1355/*! -
1356 \enum QStyleOptionTab::CornerWidget -
1357 -
1358 These flags indicate the corner widgets in a tab. -
1359 -
1360 \value NoCornerWidgets There are no corner widgets -
1361 \value LeftCornerWidget Left corner widget -
1362 \value RightCornerWidget Right corner widget -
1363 -
1364 \sa cornerWidgets -
1365*/ -
1366 -
1367/*! \enum QStyleOptionTab::SelectedPosition -
1368 -
1369 This enum describes the position of the selected tab. Some styles -
1370 need to draw a tab differently depending on whether or not it is -
1371 adjacent to the selected tab. -
1372 -
1373 \value NotAdjacent The tab is not adjacent to a selected tab (or is the selected tab). -
1374 \value NextIsSelected The next tab (typically the tab on the right) is selected. -
1375 \value PreviousIsSelected The previous tab (typically the tab on the left) is selected. -
1376 -
1377 \sa selectedPosition -
1378*/ -
1379 -
1380/*! -
1381 \variable QStyleOptionTab::selectedPosition -
1382 \brief the position of the selected tab in relation to this tab -
1383 -
1384 The default value is NotAdjacent, i.e. the tab is not adjacent to -
1385 a selected tab nor is it the selected tab. -
1386*/ -
1387 -
1388/*! -
1389 \variable QStyleOptionTab::cornerWidgets -
1390 \brief an OR combination of CornerWidget values indicating the -
1391 corner widgets of the tab bar -
1392 -
1393 The default value is NoCornerWidgets. -
1394 -
1395 \sa CornerWidget -
1396*/ -
1397 -
1398 -
1399/*! -
1400 \variable QStyleOptionTab::shape -
1401 \brief the tab shape used to draw the tab; by default -
1402 QTabBar::RoundedNorth -
1403 -
1404 \sa QTabBar::Shape -
1405*/ -
1406 -
1407/*! -
1408 \variable QStyleOptionTab::text -
1409 \brief the text of the tab -
1410 -
1411 The default value is an empty string. -
1412*/ -
1413 -
1414/*! -
1415 \variable QStyleOptionTab::icon -
1416 \brief the icon for the tab -
1417 -
1418 The default value is an empty icon, i.e. an icon with neither a -
1419 pixmap nor a filename. -
1420*/ -
1421 -
1422/*! -
1423 \variable QStyleOptionTab::row -
1424 \brief which row the tab is currently in -
1425 -
1426 The default value is 0, indicating the front row. Currently this -
1427 property can only be 0. -
1428*/ -
1429 -
1430/*! -
1431 \variable QStyleOptionTab::position -
1432 \brief the position of the tab in the tab bar -
1433 -
1434 The default value is \l Beginning, i.e. the tab is the first tab -
1435 in the tab bar. -
1436*/ -
1437/*! -
1438 \variable QStyleOptionTab::iconSize -
1439 \brief the size for the icons -
1440 -
1441 The default value is QSize(-1, -1), i.e. an invalid size; use -
1442 QStyle::pixelMetric() to find the default icon size for tab bars. -
1443 -
1444 \sa QTabBar::iconSize() -
1445*/ -
1446 -
1447/*! -
1448 \variable QStyleOptionTab::documentMode -
1449 \brief whether the tabbar is in document mode. -
1450 -
1451 The default value is false; -
1452*/ -
1453 -
1454/*! -
1455 \enum QStyleOptionTab::TabFeature -
1456 -
1457 Describes the various features that a tab button can have. -
1458 -
1459 \value None A normal tab button. -
1460 \value HasFrame The tab button is positioned on a tab frame -
1461 -
1462 \sa features -
1463*/ -
1464 -
1465/*! -
1466 \variable QStyleOptionTab::leftButtonSize -
1467 \brief the size for the left widget on the tab. -
1468 -
1469 The default value is QSize(-1, -1), i.e. an invalid size; -
1470*/ -
1471 -
1472/*! -
1473 \variable QStyleOptionTab::rightButtonSize -
1474 \brief the size for the right widget on the tab. -
1475 -
1476 The default value is QSize(-1, -1), i.e. an invalid size; -
1477*/ -
1478 -
1479#endif // QT_NO_TABBAR -
1480 -
1481/*! -
1482 \class QStyleOptionProgressBar -
1483 \brief The QStyleOptionProgressBar class is used to describe the -
1484 parameters necessary for drawing a progress bar. -
1485 -
1486 \inmodule QtWidgets -
1487 -
1488 An instance of the QStyleOptionProgressBar class has type -
1489 SO_ProgressBar and version 2. -
1490 -
1491 The type is used internally by QStyleOption, its subclasses, and -
1492 qstyleoption_cast() to determine the type of style option. In -
1493 general you do not need to worry about this unless you want to -
1494 create your own QStyleOption subclass and your own styles. The -
1495 version is used by QStyleOption subclasses to implement extensions -
1496 without breaking compatibility. If you use qstyleoption_cast(), -
1497 you normally do not need to check it. -
1498 -
1499 For an example demonstrating how style options can be used, see -
1500 the \l {widgets/styles}{Styles} example. -
1501 -
1502 \sa QStyleOption -
1503*/ -
1504 -
1505/*! -
1506 \typedef QStyleOptionProgressBarV2 -
1507 \relates QStyleOptionProgressBar -
1508 -
1509 Synonym for QStyleOptionProgressBar. -
1510*/ -
1511 -
1512/*! -
1513 Constructs a QStyleOptionProgressBar, initializing the members -
1514 variables to their default values. -
1515*/ -
1516 -
1517QStyleOptionProgressBar::QStyleOptionProgressBar() -
1518 : QStyleOption(QStyleOptionProgressBar::Version, SO_ProgressBar), -
1519 minimum(0), maximum(0), progress(0), textAlignment(Qt::AlignLeft), textVisible(false), -
1520 orientation(Qt::Horizontal), invertedAppearance(false), bottomToTop(false) -
1521{ -
1522}
executed: }
Execution Count:140
140
1523 -
1524/*! -
1525 \internal -
1526*/ -
1527QStyleOptionProgressBar::QStyleOptionProgressBar(int version) -
1528 : QStyleOption(version, SO_ProgressBar), -
1529 minimum(0), maximum(0), progress(0), textAlignment(Qt::AlignLeft), textVisible(false), -
1530 orientation(Qt::Horizontal), invertedAppearance(false), bottomToTop(false) -
1531{ -
1532}
never executed: }
0
1533 -
1534/*! -
1535 \fn QStyleOptionProgressBar::QStyleOptionProgressBar(const QStyleOptionProgressBar &other) -
1536 -
1537 Constructs a copy of the \a other style option. -
1538*/ -
1539 -
1540/*! -
1541 \enum QStyleOptionProgressBar::StyleOptionType -
1542 -
1543 This enum is used to hold information about the type of the style option, and -
1544 is defined for each QStyleOption subclass. -
1545 -
1546 \value Type The type of style option provided (\l{SO_ProgressBar} for this class). -
1547 -
1548 The type is used internally by QStyleOption, its subclasses, and -
1549 qstyleoption_cast() to determine the type of style option. In -
1550 general you do not need to worry about this unless you want to -
1551 create your own QStyleOption subclass and your own styles. -
1552 -
1553 \sa StyleOptionVersion -
1554*/ -
1555 -
1556/*! -
1557 \enum QStyleOptionProgressBar::StyleOptionVersion -
1558 -
1559 This enum is used to hold information about the version of the style option, and -
1560 is defined for each QStyleOption subclass. -
1561 -
1562 \value Version 2 -
1563 -
1564 The version is used by QStyleOption subclasses to implement -
1565 extensions without breaking compatibility. If you use -
1566 qstyleoption_cast(), you normally do not need to check it. -
1567 -
1568 \sa StyleOptionType -
1569*/ -
1570 -
1571/*! -
1572 \variable QStyleOptionProgressBar::minimum -
1573 \brief the minimum value for the progress bar -
1574 -
1575 This is the minimum value in the progress bar. The default value -
1576 is 0. -
1577 -
1578 \sa QProgressBar::minimum -
1579*/ -
1580 -
1581/*! -
1582 \variable QStyleOptionProgressBar::maximum -
1583 \brief the maximum value for the progress bar -
1584 -
1585 This is the maximum value in the progress bar. The default value -
1586 is 0. -
1587 -
1588 \sa QProgressBar::maximum -
1589*/ -
1590 -
1591/*! -
1592 \variable QStyleOptionProgressBar::text -
1593 \brief the text for the progress bar -
1594 -
1595 The progress bar text is usually just the progress expressed as a -
1596 string. An empty string indicates that the progress bar has not -
1597 started yet. The default value is an empty string. -
1598 -
1599 \sa QProgressBar::text -
1600*/ -
1601 -
1602/*! -
1603 \variable QStyleOptionProgressBar::textVisible -
1604 \brief a flag indicating whether or not text is visible -
1605 -
1606 If this flag is true then the text is visible. Otherwise, the text -
1607 is not visible. The default value is false. -
1608 -
1609 \sa QProgressBar::textVisible -
1610*/ -
1611 -
1612 -
1613/*! -
1614 \variable QStyleOptionProgressBar::textAlignment -
1615 \brief the text alignment for the text in the QProgressBar -
1616 -
1617 This can be used as a guide on where the text should be in the -
1618 progress bar. The default value is Qt::AlignLeft. -
1619*/ -
1620 -
1621/*! -
1622 \variable QStyleOptionProgressBar::progress -
1623 \brief the current progress for the progress bar -
1624 -
1625 The current progress. A value of QStyleOptionProgressBar::minimum -
1626 - 1 indicates that the progress hasn't started yet. The default -
1627 value is 0. -
1628 -
1629 \sa QProgressBar::value -
1630*/ -
1631 -
1632/*! -
1633 \variable QStyleOptionProgressBar::orientation -
1634 \brief the progress bar's orientation (horizontal or vertical); -
1635 the default orentation is Qt::Horizontal -
1636 -
1637 \sa QProgressBar::orientation -
1638*/ -
1639 -
1640/*! -
1641 \variable QStyleOptionProgressBar::invertedAppearance -
1642 \brief whether the progress bar's appearance is inverted -
1643 -
1644 The default value is false. -
1645 -
1646 \sa QProgressBar::invertedAppearance -
1647*/ -
1648 -
1649/*! -
1650 \variable QStyleOptionProgressBar::bottomToTop -
1651 \brief whether the text reads from bottom to top when the progress -
1652 bar is vertical -
1653 -
1654 The default value is false. -
1655 -
1656 \sa QProgressBar::textDirection -
1657*/ -
1658 -
1659/*! -
1660 \class QStyleOptionMenuItem -
1661 \brief The QStyleOptionMenuItem class is used to describe the -
1662 parameter necessary for drawing a menu item. -
1663 -
1664 \inmodule QtWidgets -
1665 -
1666 QStyleOptionMenuItem contains all the information that QStyle -
1667 functions need to draw the menu items from \l QMenu. It is also -
1668 used for drawing other menu-related widgets. -
1669 -
1670 For performance reasons, the access to the member variables is -
1671 direct (i.e., using the \c . or \c -> operator). This low-level feel -
1672 makes the structures straightforward to use and emphasizes that -
1673 these are simply parameters used by the style functions. -
1674 -
1675 For an example demonstrating how style options can be used, see -
1676 the \l {widgets/styles}{Styles} example. -
1677 -
1678 \sa QStyleOption -
1679*/ -
1680 -
1681/*! -
1682 Constructs a QStyleOptionMenuItem, initializing the members -
1683 variables to their default values. -
1684*/ -
1685 -
1686QStyleOptionMenuItem::QStyleOptionMenuItem() -
1687 : QStyleOption(QStyleOptionMenuItem::Version, SO_MenuItem), menuItemType(Normal), -
1688 checkType(NotCheckable), checked(false), menuHasCheckableItems(true), maxIconWidth(0), tabWidth(0) -
1689{ -
1690}
executed: }
Execution Count:2632
2632
1691 -
1692/*! -
1693 \internal -
1694*/ -
1695QStyleOptionMenuItem::QStyleOptionMenuItem(int version) -
1696 : QStyleOption(version, SO_MenuItem), menuItemType(Normal), -
1697 checkType(NotCheckable), checked(false), menuHasCheckableItems(true), maxIconWidth(0), tabWidth(0) -
1698{ -
1699}
never executed: }
0
1700 -
1701/*! -
1702 \fn QStyleOptionMenuItem::QStyleOptionMenuItem(const QStyleOptionMenuItem &other) -
1703 -
1704 Constructs a copy of the \a other style option. -
1705*/ -
1706 -
1707/*! -
1708 \enum QStyleOptionMenuItem::StyleOptionType -
1709 -
1710 This enum is used to hold information about the type of the style option, and -
1711 is defined for each QStyleOption subclass. -
1712 -
1713 \value Type The type of style option provided (\l{SO_MenuItem} for this class). -
1714 -
1715 The type is used internally by QStyleOption, its subclasses, and -
1716 qstyleoption_cast() to determine the type of style option. In -
1717 general you do not need to worry about this unless you want to -
1718 create your own QStyleOption subclass and your own styles. -
1719 -
1720 \sa StyleOptionVersion -
1721*/ -
1722 -
1723/*! -
1724 \enum QStyleOptionMenuItem::StyleOptionVersion -
1725 -
1726 This enum is used to hold information about the version of the style option, and -
1727 is defined for each QStyleOption subclass. -
1728 -
1729 \value Version 1 -
1730 -
1731 The version is used by QStyleOption subclasses to implement -
1732 extensions without breaking compatibility. If you use -
1733 qstyleoption_cast(), you normally do not need to check it. -
1734 -
1735 \sa StyleOptionType -
1736*/ -
1737 -
1738/*! -
1739 \enum QStyleOptionMenuItem::MenuItemType -
1740 -
1741 This enum indicates the type of menu item that the structure describes. -
1742 -
1743 \value Normal A normal menu item. -
1744 \value DefaultItem A menu item that is the default action as specified with \l QMenu::defaultAction(). -
1745 \value Separator A menu separator. -
1746 \value SubMenu Indicates the menu item points to a sub-menu. -
1747 \value Scroller A popup menu scroller (currently only used on Mac OS X). -
1748 \value TearOff A tear-off handle for the menu. -
1749 \value Margin The margin of the menu. -
1750 \value EmptyArea The empty area of the menu. -
1751 -
1752 \sa menuItemType -
1753*/ -
1754 -
1755/*! -
1756 \enum QStyleOptionMenuItem::CheckType -
1757 -
1758 This enum is used to indicate whether or not a check mark should be -
1759 drawn for the item, or even if it should be drawn at all. -
1760 -
1761 \value NotCheckable The item is not checkable. -
1762 \value Exclusive The item is an exclusive check item (like a radio button). -
1763 \value NonExclusive The item is a non-exclusive check item (like a check box). -
1764 -
1765 \sa checkType, QAction::checkable, QAction::checked, QActionGroup::exclusive -
1766*/ -
1767 -
1768/*! -
1769 \variable QStyleOptionMenuItem::menuItemType -
1770 \brief the type of menu item -
1771 -
1772 The default value is \l Normal. -
1773 -
1774 \sa MenuItemType -
1775*/ -
1776 -
1777/*! -
1778 \variable QStyleOptionMenuItem::checkType -
1779 \brief the type of checkmark of the menu item -
1780 -
1781 The default value is \l NotCheckable. -
1782 -
1783 \sa CheckType -
1784*/ -
1785 -
1786/*! -
1787 \variable QStyleOptionMenuItem::checked -
1788 \brief whether the menu item is checked or not -
1789 -
1790 The default value is false. -
1791*/ -
1792 -
1793/*! -
1794 \variable QStyleOptionMenuItem::menuHasCheckableItems -
1795 \brief whether the menu as a whole has checkable items or not -
1796 -
1797 The default value is true. -
1798 -
1799 If this option is set to false, then the menu has no checkable -
1800 items. This makes it possible for GUI styles to save some -
1801 horizontal space that would normally be used for the check column. -
1802*/ -
1803 -
1804/*! -
1805 \variable QStyleOptionMenuItem::menuRect -
1806 \brief the rectangle for the entire menu -
1807 -
1808 The default value is a null rectangle, i.e. a rectangle with both -
1809 the width and the height set to 0. -
1810*/ -
1811 -
1812/*! -
1813 \variable QStyleOptionMenuItem::text -
1814 \brief the text for the menu item -
1815 -
1816 Note that the text format is something like this "Menu -
1817 text\b{\\t}Shortcut". -
1818 -
1819 If the menu item doesn't have a shortcut, it will just contain the -
1820 menu item's text. The default value is an empty string. -
1821*/ -
1822 -
1823/*! -
1824 \variable QStyleOptionMenuItem::icon -
1825 \brief the icon for the menu item -
1826 -
1827 The default value is an empty icon, i.e. an icon with neither a -
1828 pixmap nor a filename. -
1829*/ -
1830 -
1831/*! -
1832 \variable QStyleOptionMenuItem::maxIconWidth -
1833 \brief the maximum icon width for the icon in the menu item -
1834 -
1835 This can be used for drawing the icon into the correct place or -
1836 properly aligning items. The variable must be set regardless of -
1837 whether or not the menu item has an icon. The default value is 0. -
1838*/ -
1839 -
1840/*! -
1841 \variable QStyleOptionMenuItem::tabWidth -
1842 \brief the tab width for the menu item -
1843 -
1844 The tab width is the distance between the text of the menu item -
1845 and the shortcut. The default value is 0. -
1846*/ -
1847 -
1848 -
1849/*! -
1850 \variable QStyleOptionMenuItem::font -
1851 \brief the font used for the menu item text -
1852 -
1853 This is the font that should be used for drawing the menu text -
1854 minus the shortcut. The shortcut is usually drawn using the -
1855 painter's font. By default, the application's default font is -
1856 used. -
1857*/ -
1858 -
1859/*! -
1860 \class QStyleOptionComplex -
1861 \brief The QStyleOptionComplex class is used to hold parameters that are -
1862 common to all complex controls. -
1863 -
1864 \inmodule QtWidgets -
1865 -
1866 This class is not used on its own. Instead it is used to derive -
1867 other complex control options, for example QStyleOptionSlider and -
1868 QStyleOptionSpinBox. -
1869 -
1870 For performance reasons, the access to the member variables is -
1871 direct (i.e., using the \c . or \c -> operator). -
1872 -
1873 For an example demonstrating how style options can be used, see -
1874 the \l {widgets/styles}{Styles} example. -
1875 -
1876 \sa QStyleOption -
1877*/ -
1878 -
1879/*! -
1880 Constructs a QStyleOptionComplex of the specified \a type and \a -
1881 version, initializing the member variables to their default -
1882 values. This constructor is usually called by subclasses. -
1883*/ -
1884 -
1885QStyleOptionComplex::QStyleOptionComplex(int version, int type) -
1886 : QStyleOption(version, type), subControls(QStyle::SC_All), activeSubControls(QStyle::SC_None) -
1887{ -
1888}
executed: }
Execution Count:129535
129535
1889 -
1890/*! -
1891 \fn QStyleOptionComplex::QStyleOptionComplex(const QStyleOptionComplex &other) -
1892 -
1893 Constructs a copy of the \a other style option. -
1894*/ -
1895 -
1896/*! -
1897 \enum QStyleOptionComplex::StyleOptionType -
1898 -
1899 This enum is used to hold information about the type of the style option, and -
1900 is defined for each QStyleOption subclass. -
1901 -
1902 \value Type The type of style option provided (\l{SO_Complex} for this class). -
1903 -
1904 The type is used internally by QStyleOption, its subclasses, and -
1905 qstyleoption_cast() to determine the type of style option. In -
1906 general you do not need to worry about this unless you want to -
1907 create your own QStyleOption subclass and your own styles. -
1908 -
1909 \sa StyleOptionVersion -
1910*/ -
1911 -
1912/*! -
1913 \enum QStyleOptionComplex::StyleOptionVersion -
1914 -
1915 This enum is used to hold information about the version of the style option, and -
1916 is defined for each QStyleOption subclass. -
1917 -
1918 \value Version 1 -
1919 -
1920 The version is used by QStyleOption subclasses to implement -
1921 extensions without breaking compatibility. If you use -
1922 qstyleoption_cast(), you normally do not need to check it. -
1923 -
1924 \sa StyleOptionType -
1925*/ -
1926 -
1927/*! -
1928 \variable QStyleOptionComplex::subControls -
1929 -
1930 This variable holds a bitwise OR of the \l{QStyle::SubControl} -
1931 {sub-controls} to be drawn for the complex control. -
1932 -
1933 The default value is QStyle::SC_All. -
1934 -
1935 \sa QStyle::SubControl -
1936*/ -
1937 -
1938/*! -
1939 \variable QStyleOptionComplex::activeSubControls -
1940 -
1941 This variable holds a bitwise OR of the \l{QStyle::SubControl} -
1942 {sub-controls} that are active for the complex control. -
1943 -
1944 The default value is QStyle::SC_None. -
1945 -
1946 \sa QStyle::SubControl -
1947*/ -
1948 -
1949#ifndef QT_NO_SLIDER -
1950/*! -
1951 \class QStyleOptionSlider -
1952 \brief The QStyleOptionSlider class is used to describe the -
1953 parameters needed for drawing a slider. -
1954 -
1955 \inmodule QtWidgets -
1956 -
1957 QStyleOptionSlider contains all the information that QStyle -
1958 functions need to draw QSlider and QScrollBar. -
1959 -
1960 For performance reasons, the access to the member variables is -
1961 direct (i.e., using the \c . or \c -> operator). This low-level feel -
1962 makes the structures straightforward to use and emphasizes that -
1963 these are simply parameters used by the style functions. -
1964 -
1965 For an example demonstrating how style options can be used, see -
1966 the \l {widgets/styles}{Styles} example. -
1967 -
1968 \sa QStyleOptionComplex, QSlider, QScrollBar -
1969*/ -
1970 -
1971/*! -
1972 Constructs a QStyleOptionSlider, initializing the members -
1973 variables to their default values. -
1974*/ -
1975 -
1976QStyleOptionSlider::QStyleOptionSlider() -
1977 : QStyleOptionComplex(Version, SO_Slider), orientation(Qt::Horizontal), minimum(0), maximum(0), -
1978 tickPosition(QSlider::NoTicks), tickInterval(0), upsideDown(false), -
1979 sliderPosition(0), sliderValue(0), singleStep(0), pageStep(0), notchTarget(0.0), -
1980 dialWrapping(false) -
1981{ -
1982}
executed: }
Execution Count:99105
99105
1983 -
1984/*! -
1985 \internal -
1986*/ -
1987QStyleOptionSlider::QStyleOptionSlider(int version) -
1988 : QStyleOptionComplex(version, SO_Slider), orientation(Qt::Horizontal), minimum(0), maximum(0), -
1989 tickPosition(QSlider::NoTicks), tickInterval(0), upsideDown(false), -
1990 sliderPosition(0), sliderValue(0), singleStep(0), pageStep(0), notchTarget(0.0), -
1991 dialWrapping(false) -
1992{ -
1993}
never executed: }
0
1994 -
1995/*! -
1996 \fn QStyleOptionSlider::QStyleOptionSlider(const QStyleOptionSlider &other) -
1997 -
1998 Constructs a copy of the \a other style option. -
1999*/ -
2000 -
2001/*! -
2002 \enum QStyleOptionSlider::StyleOptionType -
2003 -
2004 This enum is used to hold information about the type of the style option, and -
2005 is defined for each QStyleOption subclass. -
2006 -
2007 \value Type The type of style option provided (\l{SO_Slider} for this class). -
2008 -
2009 The type is used internally by QStyleOption, its subclasses, and -
2010 qstyleoption_cast() to determine the type of style option. In -
2011 general you do not need to worry about this unless you want to -
2012 create your own QStyleOption subclass and your own styles. -
2013 -
2014 \sa StyleOptionVersion -
2015*/ -
2016 -
2017/*! -
2018 \enum QStyleOptionSlider::StyleOptionVersion -
2019 -
2020 This enum is used to hold information about the version of the style option, and -
2021 is defined for each QStyleOption subclass. -
2022 -
2023 \value Version 1 -
2024 -
2025 The version is used by QStyleOption subclasses to implement -
2026 extensions without breaking compatibility. If you use -
2027 qstyleoption_cast(), you normally do not need to check it. -
2028 -
2029 \sa StyleOptionType -
2030*/ -
2031 -
2032/*! -
2033 \variable QStyleOptionSlider::orientation -
2034 \brief the slider's orientation (horizontal or vertical) -
2035 -
2036 The default orientation is Qt::Horizontal. -
2037 -
2038 \sa Qt::Orientation -
2039*/ -
2040 -
2041/*! -
2042 \variable QStyleOptionSlider::minimum -
2043 \brief the minimum value for the slider -
2044 -
2045 The default value is 0. -
2046*/ -
2047 -
2048/*! -
2049 \variable QStyleOptionSlider::maximum -
2050 \brief the maximum value for the slider -
2051 -
2052 The default value is 0. -
2053*/ -
2054 -
2055/*! -
2056 \variable QStyleOptionSlider::tickPosition -
2057 \brief the position of the slider's tick marks, if any -
2058 -
2059 The default value is QSlider::NoTicks. -
2060 -
2061 \sa QSlider::TickPosition -
2062*/ -
2063 -
2064/*! -
2065 \variable QStyleOptionSlider::tickInterval -
2066 \brief the interval that should be drawn between tick marks -
2067 -
2068 The default value is 0. -
2069*/ -
2070 -
2071/*! -
2072 \variable QStyleOptionSlider::notchTarget -
2073 \brief the number of pixel between notches -
2074 -
2075 The default value is 0.0. -
2076 -
2077 \sa QDial::notchTarget() -
2078*/ -
2079 -
2080/*! -
2081 \variable QStyleOptionSlider::dialWrapping -
2082 \brief whether the dial should wrap or not -
2083 -
2084 The default value is false, i.e. the dial is not wrapped. -
2085 -
2086 \sa QDial::wrapping() -
2087*/ -
2088 -
2089/*! -
2090 \variable QStyleOptionSlider::upsideDown -
2091 \brief the slider control orientation -
2092 -
2093 Normally a slider increases as it moves up or to the right; -
2094 upsideDown indicates that it should do the opposite (increase as -
2095 it moves down or to the left). The default value is false, -
2096 i.e. the slider increases as it moves up or to the right. -
2097 -
2098 \sa QStyle::sliderPositionFromValue(), -
2099 QStyle::sliderValueFromPosition(), -
2100 QAbstractSlider::invertedAppearance -
2101*/ -
2102 -
2103/*! -
2104 \variable QStyleOptionSlider::sliderPosition -
2105 \brief the position of the slider handle -
2106 -
2107 If the slider has active feedback (i.e., -
2108 QAbstractSlider::tracking is true), this value will be the same as -
2109 \l sliderValue. Otherwise, it will have the current position of -
2110 the handle. The default value is 0. -
2111 -
2112 \sa QAbstractSlider::tracking, sliderValue -
2113*/ -
2114 -
2115/*! -
2116 \variable QStyleOptionSlider::sliderValue -
2117 \brief the value of the slider -
2118 -
2119 If the slider has active feedback (i.e., -
2120 QAbstractSlider::tracking is true), this value will be the same -
2121 as \l sliderPosition. Otherwise, it will have the value the -
2122 slider had before the mouse was pressed. -
2123 -
2124 The default value is 0. -
2125 -
2126 \sa QAbstractSlider::tracking, sliderPosition -
2127*/ -
2128 -
2129/*! -
2130 \variable QStyleOptionSlider::singleStep -
2131 \brief the size of the single step of the slider -
2132 -
2133 The default value is 0. -
2134 -
2135 \sa QAbstractSlider::singleStep -
2136*/ -
2137 -
2138/*! -
2139 \variable QStyleOptionSlider::pageStep -
2140 \brief the size of the page step of the slider -
2141 -
2142 The default value is 0. -
2143 -
2144 \sa QAbstractSlider::pageStep -
2145*/ -
2146#endif // QT_NO_SLIDER -
2147 -
2148#ifndef QT_NO_SPINBOX -
2149/*! -
2150 \class QStyleOptionSpinBox -
2151 \brief The QStyleOptionSpinBox class is used to describe the -
2152 parameters necessary for drawing a spin box. -
2153 -
2154 \inmodule QtWidgets -
2155 -
2156 QStyleOptionSpinBox contains all the information that QStyle -
2157 functions need to draw QSpinBox and QDateTimeEdit. -
2158 -
2159 For performance reasons, the access to the member variables is -
2160 direct (i.e., using the \c . or \c -> operator). This low-level feel -
2161 makes the structures straightforward to use and emphasizes that -
2162 these are simply parameters used by the style functions. -
2163 -
2164 For an example demonstrating how style options can be used, see -
2165 the \l {widgets/styles}{Styles} example. -
2166 -
2167 \sa QStyleOption, QStyleOptionComplex -
2168*/ -
2169 -
2170/*! -
2171 Constructs a QStyleOptionSpinBox, initializing the members -
2172 variables to their default values. -
2173*/ -
2174 -
2175QStyleOptionSpinBox::QStyleOptionSpinBox() -
2176 : QStyleOptionComplex(Version, SO_SpinBox), buttonSymbols(QAbstractSpinBox::UpDownArrows), -
2177 stepEnabled(QAbstractSpinBox::StepNone), frame(false) -
2178{ -
2179}
executed: }
Execution Count:1657
1657
2180 -
2181/*! -
2182 \internal -
2183*/ -
2184QStyleOptionSpinBox::QStyleOptionSpinBox(int version) -
2185 : QStyleOptionComplex(version, SO_SpinBox), buttonSymbols(QAbstractSpinBox::UpDownArrows), -
2186 stepEnabled(QAbstractSpinBox::StepNone), frame(false) -
2187{ -
2188}
never executed: }
0
2189 -
2190/*! -
2191 \fn QStyleOptionSpinBox::QStyleOptionSpinBox(const QStyleOptionSpinBox &other) -
2192 -
2193 Constructs a copy of the \a other style option. -
2194*/ -
2195 -
2196/*! -
2197 \enum QStyleOptionSpinBox::StyleOptionType -
2198 -
2199 This enum is used to hold information about the type of the style option, and -
2200 is defined for each QStyleOption subclass. -
2201 -
2202 \value Type The type of style option provided (\l{SO_SpinBox} for this class). -
2203 -
2204 The type is used internally by QStyleOption, its subclasses, and -
2205 qstyleoption_cast() to determine the type of style option. In -
2206 general you do not need to worry about this unless you want to -
2207 create your own QStyleOption subclass and your own styles. -
2208 -
2209 \sa StyleOptionVersion -
2210*/ -
2211 -
2212/*! -
2213 \enum QStyleOptionSpinBox::StyleOptionVersion -
2214 -
2215 This enum is used to hold information about the version of the style option, and -
2216 is defined for each QStyleOption subclass. -
2217 -
2218 \value Version 1 -
2219 -
2220 The version is used by QStyleOption subclasses to implement -
2221 extensions without breaking compatibility. If you use -
2222 qstyleoption_cast(), you normally do not need to check it. -
2223 -
2224 \sa StyleOptionType -
2225*/ -
2226 -
2227/*! -
2228 \variable QStyleOptionSpinBox::buttonSymbols -
2229 \brief the type of button symbols to draw for the spin box -
2230 -
2231 The default value is QAbstractSpinBox::UpDownArrows specufying -
2232 little arrows in the classic style. -
2233 -
2234 \sa QAbstractSpinBox::ButtonSymbols -
2235*/ -
2236 -
2237/*! -
2238 \variable QStyleOptionSpinBox::stepEnabled -
2239 \brief which buttons of the spin box that are enabled -
2240 -
2241 The default value is QAbstractSpinBox::StepNone. -
2242 -
2243 \sa QAbstractSpinBox::StepEnabled -
2244*/ -
2245 -
2246/*! -
2247 \variable QStyleOptionSpinBox::frame -
2248 \brief whether the spin box has a frame -
2249 -
2250 The default value is false, i.e. the spin box has no frame. -
2251*/ -
2252#endif // QT_NO_SPINBOX -
2253 -
2254/*! -
2255 \class QStyleOptionDockWidget -
2256 \brief The QStyleOptionDockWidget class is used to describe the -
2257 parameters for drawing a dock widget. -
2258 -
2259 \inmodule QtWidgets -
2260 -
2261 QStyleOptionDockWidget contains all the information that QStyle -
2262 functions need to draw graphical elements like QDockWidget. -
2263 -
2264 For performance reasons, the access to the member variables is -
2265 direct (i.e., using the \c . or \c -> operator). This low-level feel -
2266 makes the structures straightforward to use and emphasizes that -
2267 these are simply parameters used by the style functions. -
2268 -
2269 For an example demonstrating how style options can be used, see -
2270 the \l {widgets/styles}{Styles} example. -
2271 -
2272 \sa QStyleOption -
2273*/ -
2274 -
2275/*! -
2276 \typedef QStyleOptionDockWidgetV2 -
2277 \relates QStyleOptionDockWidget -
2278 -
2279 Synonym for QStyleOptionDockWidget. -
2280*/ -
2281 -
2282/*! -
2283 Constructs a QStyleOptionDockWidget, initializing the member -
2284 variables to their default values. -
2285*/ -
2286 -
2287QStyleOptionDockWidget::QStyleOptionDockWidget() -
2288 : QStyleOption(Version, SO_DockWidget), closable(false), -
2289 movable(false), floatable(false), verticalTitleBar(false) -
2290{ -
2291}
executed: }
Execution Count:184
184
2292 -
2293/*! -
2294 \internal -
2295*/ -
2296QStyleOptionDockWidget::QStyleOptionDockWidget(int version) -
2297 : QStyleOption(version, SO_DockWidget), closable(false), -
2298 movable(false), floatable(false), verticalTitleBar(false) -
2299{ -
2300}
never executed: }
0
2301 -
2302/*! -
2303 \fn QStyleOptionDockWidget::QStyleOptionDockWidget(const QStyleOptionDockWidget &other) -
2304 -
2305 Constructs a copy of the \a other style option. -
2306*/ -
2307 -
2308/*! -
2309 \enum QStyleOptionDockWidget::StyleOptionType -
2310 -
2311 This enum is used to hold information about the type of the style option, and -
2312 is defined for each QStyleOption subclass. -
2313 -
2314 \value Type The type of style option provided (\l{SO_DockWidget} for this class). -
2315 -
2316 The type is used internally by QStyleOption, its subclasses, and -
2317 qstyleoption_cast() to determine the type of style option. In -
2318 general you do not need to worry about this unless you want to -
2319 create your own QStyleOption subclass and your own styles. -
2320 -
2321 \sa StyleOptionVersion -
2322*/ -
2323 -
2324/*! -
2325 \enum QStyleOptionDockWidget::StyleOptionVersion -
2326 -
2327 This enum is used to hold information about the version of the style option, and -
2328 is defined for each QStyleOption subclass. -
2329 -
2330 \value Version 2 -
2331 -
2332 The version is used by QStyleOption subclasses to implement -
2333 extensions without breaking compatibility. If you use -
2334 qstyleoption_cast(), you normally do not need to check it. -
2335 -
2336 \sa StyleOptionType -
2337*/ -
2338 -
2339/*! -
2340 \variable QStyleOptionDockWidget::title -
2341 \brief the title of the dock window -
2342 -
2343 The default value is an empty string. -
2344*/ -
2345 -
2346/*! -
2347 \variable QStyleOptionDockWidget::closable -
2348 \brief whether the dock window is closable -
2349 -
2350 The default value is true. -
2351*/ -
2352 -
2353/*! -
2354 \variable QStyleOptionDockWidget::movable -
2355 \brief whether the dock window is movable -
2356 -
2357 The default value is false. -
2358*/ -
2359 -
2360/*! -
2361 \variable QStyleOptionDockWidget::floatable -
2362 \brief whether the dock window is floatable -
2363 -
2364 The default value is true. -
2365*/ -
2366 -
2367/*! -
2368 \class QStyleOptionToolButton -
2369 \brief The QStyleOptionToolButton class is used to describe the -
2370 parameters for drawing a tool button. -
2371 -
2372 \inmodule QtWidgets -
2373 -
2374 QStyleOptionToolButton contains all the information that QStyle -
2375 functions need to draw QToolButton. -
2376 -
2377 For performance reasons, the access to the member variables is -
2378 direct (i.e., using the \c . or \c -> operator). This low-level feel -
2379 makes the structures straightforward to use and emphasizes that -
2380 these are simply parameters used by the style functions. -
2381 -
2382 For an example demonstrating how style options can be used, see -
2383 the \l {widgets/styles}{Styles} example. -
2384 -
2385 \sa QStyleOption, QStyleOptionComplex, QStyleOptionButton -
2386*/ -
2387 -
2388/*! -
2389 \enum QStyleOptionToolButton::ToolButtonFeature -
2390 Describes the various features that a tool button can have. -
2391 -
2392 \value None A normal tool button. -
2393 \value Arrow The tool button is an arrow. -
2394 \value Menu The tool button has a menu. -
2395 \value PopupDelay There is a delay to showing the menu. -
2396 \value HasMenu The button has a popup menu. -
2397 \value MenuButtonPopup The button should display an arrow to -
2398 indicate that a menu is present. -
2399 -
2400 \sa features, QToolButton::toolButtonStyle(), QToolButton::popupMode() -
2401*/ -
2402 -
2403/*! -
2404 Constructs a QStyleOptionToolButton, initializing the members -
2405 variables to their default values. -
2406*/ -
2407 -
2408QStyleOptionToolButton::QStyleOptionToolButton() -
2409 : QStyleOptionComplex(Version, SO_ToolButton), features(None), arrowType(Qt::DownArrow) -
2410 , toolButtonStyle(Qt::ToolButtonIconOnly) -
2411{ -
2412}
executed: }
Execution Count:1826
1826
2413 -
2414/*! -
2415 \internal -
2416*/ -
2417QStyleOptionToolButton::QStyleOptionToolButton(int version) -
2418 : QStyleOptionComplex(version, SO_ToolButton), features(None), arrowType(Qt::DownArrow) -
2419 , toolButtonStyle(Qt::ToolButtonIconOnly) -
2420 -
2421{ -
2422}
never executed: }
0
2423 -
2424/*! -
2425 \fn QStyleOptionToolButton::QStyleOptionToolButton(const QStyleOptionToolButton &other) -
2426 -
2427 Constructs a copy of the \a other style option. -
2428*/ -
2429 -
2430/*! -
2431 \enum QStyleOptionToolButton::StyleOptionType -
2432 -
2433 This enum is used to hold information about the type of the style option, and -
2434 is defined for each QStyleOption subclass. -
2435 -
2436 \value Type The type of style option provided (\l{SO_ToolButton} for this class). -
2437 -
2438 The type is used internally by QStyleOption, its subclasses, and -
2439 qstyleoption_cast() to determine the type of style option. In -
2440 general you do not need to worry about this unless you want to -
2441 create your own QStyleOption subclass and your own styles. -
2442 -
2443 \sa StyleOptionVersion -
2444*/ -
2445 -
2446/*! -
2447 \enum QStyleOptionToolButton::StyleOptionVersion -
2448 -
2449 This enum is used to hold information about the version of the style option, and -
2450 is defined for each QStyleOption subclass. -
2451 -
2452 \value Version 1 -
2453 -
2454 The version is used by QStyleOption subclasses to implement -
2455 extensions without breaking compatibility. If you use -
2456 qstyleoption_cast(), you normally do not need to check it. -
2457 -
2458 \sa StyleOptionType -
2459*/ -
2460 -
2461/*! -
2462 \variable QStyleOptionToolButton::features -
2463 \brief an OR combination of the tool button's features -
2464 -
2465 The default value is \l None. -
2466 -
2467 \sa ToolButtonFeature -
2468*/ -
2469 -
2470/*! -
2471 \variable QStyleOptionToolButton::icon -
2472 \brief the icon for the tool button -
2473 -
2474 The default value is an empty icon, i.e. an icon with neither a -
2475 pixmap nor a filename. -
2476 -
2477 \sa iconSize -
2478*/ -
2479 -
2480/*! -
2481 \variable QStyleOptionToolButton::iconSize -
2482 \brief the size of the icon for the tool button -
2483 -
2484 The default value is QSize(-1, -1), i.e. an invalid size. -
2485*/ -
2486 -
2487/*! -
2488 \variable QStyleOptionToolButton::text -
2489 \brief the text of the tool button -
2490 -
2491 This value is only used if toolButtonStyle is -
2492 Qt::ToolButtonTextUnderIcon, Qt::ToolButtonTextBesideIcon, or -
2493 Qt::ToolButtonTextOnly. The default value is an empty string. -
2494*/ -
2495 -
2496/*! -
2497 \variable QStyleOptionToolButton::arrowType -
2498 \brief the direction of the arrow for the tool button -
2499 -
2500 This value is only used if \l features includes \l Arrow. The -
2501 default value is Qt::DownArrow. -
2502*/ -
2503 -
2504/*! -
2505 \variable QStyleOptionToolButton::toolButtonStyle -
2506 \brief a Qt::ToolButtonStyle value describing the appearance of -
2507 the tool button -
2508 -
2509 The default value is Qt::ToolButtonIconOnly. -
2510 -
2511 \sa QToolButton::toolButtonStyle() -
2512*/ -
2513 -
2514/*! -
2515 \variable QStyleOptionToolButton::pos -
2516 \brief the position of the tool button -
2517 -
2518 The default value is a null point, i.e. (0, 0) -
2519*/ -
2520 -
2521/*! -
2522 \variable QStyleOptionToolButton::font -
2523 \brief the font that is used for the text -
2524 -
2525 This value is only used if toolButtonStyle is -
2526 Qt::ToolButtonTextUnderIcon, Qt::ToolButtonTextBesideIcon, or -
2527 Qt::ToolButtonTextOnly. By default, the application's default font -
2528 is used. -
2529*/ -
2530 -
2531/*! -
2532 \class QStyleOptionComboBox -
2533 \brief The QStyleOptionComboBox class is used to describe the -
2534 parameter for drawing a combobox. -
2535 -
2536 \inmodule QtWidgets -
2537 -
2538 QStyleOptionButton contains all the information that QStyle -
2539 functions need to draw QComboBox. -
2540 -
2541 For performance reasons, the access to the member variables is -
2542 direct (i.e., using the \c . or \c -> operator). This low-level feel -
2543 makes the structures straightforward to use and emphasizes that -
2544 these are simply parameters used by the style functions. -
2545 -
2546 For an example demonstrating how style options can be used, see -
2547 the \l {widgets/styles}{Styles} example. -
2548 -
2549 \sa QStyleOption, QStyleOptionComplex, QComboBox -
2550*/ -
2551 -
2552/*! -
2553 Creates a QStyleOptionComboBox, initializing the members variables -
2554 to their default values. -
2555*/ -
2556 -
2557QStyleOptionComboBox::QStyleOptionComboBox() -
2558 : QStyleOptionComplex(Version, SO_ComboBox), editable(false), frame(true) -
2559{ -
2560}
executed: }
Execution Count:4341
4341
2561 -
2562/*! -
2563 \internal -
2564*/ -
2565QStyleOptionComboBox::QStyleOptionComboBox(int version) -
2566 : QStyleOptionComplex(version, SO_ComboBox), editable(false), frame(true) -
2567{ -
2568}
never executed: }
0
2569 -
2570/*! -
2571 \fn QStyleOptionComboBox::QStyleOptionComboBox(const QStyleOptionComboBox &other) -
2572 -
2573 Constructs a copy of the \a other style option. -
2574*/ -
2575 -
2576/*! -
2577 \enum QStyleOptionComboBox::StyleOptionType -
2578 -
2579 This enum is used to hold information about the type of the style option, and -
2580 is defined for each QStyleOption subclass. -
2581 -
2582 \value Type The type of style option provided (\l{SO_ComboBox} for this class). -
2583 -
2584 The type is used internally by QStyleOption, its subclasses, and -
2585 qstyleoption_cast() to determine the type of style option. In -
2586 general you do not need to worry about this unless you want to -
2587 create your own QStyleOption subclass and your own styles. -
2588 -
2589 \sa StyleOptionVersion -
2590*/ -
2591 -
2592/*! -
2593 \enum QStyleOptionComboBox::StyleOptionVersion -
2594 -
2595 This enum is used to hold information about the version of the style option, and -
2596 is defined for each QStyleOption subclass. -
2597 -
2598 \value Version 1 -
2599 -
2600 The version is used by QStyleOption subclasses to implement -
2601 extensions without breaking compatibility. If you use -
2602 qstyleoption_cast(), you normally do not need to check it. -
2603 -
2604 \sa StyleOptionType -
2605*/ -
2606 -
2607/*! -
2608 \variable QStyleOptionComboBox::editable -
2609 \brief whether or not the combobox is editable or not -
2610 -
2611 the default -
2612 value is false -
2613 -
2614 \sa QComboBox::isEditable() -
2615*/ -
2616 -
2617 -
2618/*! -
2619 \variable QStyleOptionComboBox::frame -
2620 \brief whether the combo box has a frame -
2621 -
2622 The default value is true. -
2623*/ -
2624 -
2625/*! -
2626 \variable QStyleOptionComboBox::currentText -
2627 \brief the text for the current item of the combo box -
2628 -
2629 The default value is an empty string. -
2630*/ -
2631 -
2632/*! -
2633 \variable QStyleOptionComboBox::currentIcon -
2634 \brief the icon for the current item of the combo box -
2635 -
2636 The default value is an empty icon, i.e. an icon with neither a -
2637 pixmap nor a filename. -
2638*/ -
2639 -
2640/*! -
2641 \variable QStyleOptionComboBox::iconSize -
2642 \brief the icon size for the current item of the combo box -
2643 -
2644 The default value is QSize(-1, -1), i.e. an invalid size. -
2645*/ -
2646 -
2647/*! -
2648 \variable QStyleOptionComboBox::popupRect -
2649 \brief the popup rectangle for the combobox -
2650 -
2651 The default value is a null rectangle, i.e. a rectangle with both -
2652 the width and the height set to 0. -
2653 -
2654 This variable is currently unused. You can safely ignore it. -
2655 -
2656 \sa QStyle::SC_ComboBoxListBoxPopup -
2657*/ -
2658 -
2659/*! -
2660 \class QStyleOptionToolBox -
2661 \brief The QStyleOptionToolBox class is used to describe the -
2662 parameters needed for drawing a tool box. -
2663 -
2664 \inmodule QtWidgets -
2665 -
2666 QStyleOptionToolBox contains all the information that QStyle -
2667 functions need to draw QToolBox. -
2668 -
2669 For performance reasons, the access to the member variables is -
2670 direct (i.e., using the \c . or \c -> operator). This low-level feel -
2671 makes the structures straightforward to use and emphasizes that -
2672 these are simply parameters used by the style functions. -
2673 -
2674 For an example demonstrating how style options can be used, see -
2675 the \l {widgets/styles}{Styles} example. -
2676 -
2677 \sa QStyleOption, QToolBox -
2678*/ -
2679 -
2680/*! -
2681 \typedef QStyleOptionToolBoxV2 -
2682 \relates QStyleOptionToolBox -
2683 -
2684 Synonym for QStyleOptionToolBox. -
2685*/ -
2686 -
2687/*! -
2688 Creates a QStyleOptionToolBox, initializing the members variables -
2689 to their default values. -
2690*/ -
2691 -
2692QStyleOptionToolBox::QStyleOptionToolBox() -
2693 : QStyleOption(Version, SO_ToolBox), position(Beginning), selectedPosition(NotAdjacent) -
2694{ -
2695}
executed: }
Execution Count:1
1
2696 -
2697/*! -
2698 \internal -
2699*/ -
2700QStyleOptionToolBox::QStyleOptionToolBox(int version) -
2701 : QStyleOption(version, SO_ToolBox), position(Beginning), selectedPosition(NotAdjacent) -
2702{ -
2703}
never executed: }
0
2704 -
2705/*! -
2706 \fn QStyleOptionToolBox::QStyleOptionToolBox(const QStyleOptionToolBox &other) -
2707 -
2708 Constructs a copy of the \a other style option. -
2709*/ -
2710 -
2711/*! -
2712 \enum QStyleOptionToolBox::StyleOptionType -
2713 -
2714 This enum is used to hold information about the type of the style option, and -
2715 is defined for each QStyleOption subclass. -
2716 -
2717 \value Type The type of style option provided (\l{SO_ToolBox} for this class). -
2718 -
2719 The type is used internally by QStyleOption, its subclasses, and -
2720 qstyleoption_cast() to determine the type of style option. In -
2721 general you do not need to worry about this unless you want to -
2722 create your own QStyleOption subclass and your own styles. -
2723 -
2724 \sa StyleOptionVersion -
2725*/ -
2726 -
2727/*! -
2728 \enum QStyleOptionToolBox::StyleOptionVersion -
2729 -
2730 This enum is used to hold information about the version of the style option, and -
2731 is defined for each QStyleOption subclass. -
2732 -
2733 \value Version 2 -
2734 -
2735 The version is used by QStyleOption subclasses to implement -
2736 extensions without breaking compatibility. If you use -
2737 qstyleoption_cast(), you normally do not need to check it. -
2738 -
2739 \sa StyleOptionType -
2740*/ -
2741 -
2742/*! -
2743 \variable QStyleOptionToolBox::icon -
2744 \brief the icon for the tool box tab -
2745 -
2746 The default value is an empty icon, i.e. an icon with neither a -
2747 pixmap nor a filename. -
2748*/ -
2749 -
2750/*! -
2751 \variable QStyleOptionToolBox::text -
2752 \brief the text for the tool box tab -
2753 -
2754 The default value is an empty string. -
2755*/ -
2756 -
2757/*! -
2758 \enum QStyleOptionToolBox::SelectedPosition -
2759 -
2760 This enum describes the position of the selected tab. Some styles -
2761 need to draw a tab differently depending on whether or not it is -
2762 adjacent to the selected tab. -
2763 -
2764 \value NotAdjacent The tab is not adjacent to a selected tab (or is the selected tab). -
2765 \value NextIsSelected The next tab (typically the tab on the right) is selected. -
2766 \value PreviousIsSelected The previous tab (typically the tab on the left) is selected. -
2767 -
2768 \sa selectedPosition -
2769*/ -
2770 -
2771/*! -
2772 \enum QStyleOptionToolBox::TabPosition -
2773 -
2774 This enum describes tab positions relative to other tabs. -
2775 -
2776 \value Beginning The tab is the first (i.e., top-most) tab in -
2777 the toolbox. -
2778 \value Middle The tab is placed in the middle of the toolbox. -
2779 \value End The tab is placed at the bottom of the toolbox. -
2780 \value OnlyOneTab There is only one tab in the toolbox. -
2781*/ -
2782 -
2783/*! -
2784 \variable QStyleOptionToolBox::selectedPosition -
2785 \brief the position of the selected tab in relation to this tab -
2786 -
2787 The default value is NotAdjacent, i.e. the tab is not adjacent to -
2788 a selected tab nor is it the selected tab. -
2789*/ -
2790 -
2791#ifndef QT_NO_RUBBERBAND -
2792/*! -
2793 \class QStyleOptionRubberBand -
2794 \brief The QStyleOptionRubberBand class is used to describe the -
2795 parameters needed for drawing a rubber band. -
2796 -
2797 \inmodule QtWidgets -
2798 -
2799 QStyleOptionRubberBand contains all the information that -
2800 QStyle functions need to draw QRubberBand. -
2801 -
2802 For performance reasons, the access to the member variables is -
2803 direct (i.e., using the \c . or \c -> operator). This low-level feel -
2804 makes the structures straightforward to use and emphasizes that -
2805 these are simply parameters used by the style functions. -
2806 -
2807 For an example demonstrating how style options can be used, see -
2808 the \l {widgets/styles}{Styles} example. -
2809 -
2810 \sa QStyleOption, QRubberBand -
2811*/ -
2812 -
2813/*! -
2814 Creates a QStyleOptionRubberBand, initializing the members -
2815 variables to their default values. -
2816*/ -
2817 -
2818QStyleOptionRubberBand::QStyleOptionRubberBand() -
2819 : QStyleOption(Version, SO_RubberBand), shape(QRubberBand::Line), opaque(false) -
2820{ -
2821}
executed: }
Execution Count:60
60
2822 -
2823/*! -
2824 \internal -
2825*/ -
2826QStyleOptionRubberBand::QStyleOptionRubberBand(int version) -
2827 : QStyleOption(version, SO_RubberBand), shape(QRubberBand::Line), opaque(false) -
2828{ -
2829}
never executed: }
0
2830 -
2831/*! -
2832 \fn QStyleOptionRubberBand::QStyleOptionRubberBand(const QStyleOptionRubberBand &other) -
2833 -
2834 Constructs a copy of the \a other style option. -
2835*/ -
2836 -
2837/*! -
2838 \enum QStyleOptionRubberBand::StyleOptionType -
2839 -
2840 This enum is used to hold information about the type of the style option, and -
2841 is defined for each QStyleOption subclass. -
2842 -
2843 \value Type The type of style option provided (\l{SO_RubberBand} for this class). -
2844 -
2845 The type is used internally by QStyleOption, its subclasses, and -
2846 qstyleoption_cast() to determine the type of style option. In -
2847 general you do not need to worry about this unless you want to -
2848 create your own QStyleOption subclass and your own styles. -
2849 -
2850 \sa StyleOptionVersion -
2851*/ -
2852 -
2853/*! -
2854 \enum QStyleOptionRubberBand::StyleOptionVersion -
2855 -
2856 This enum is used to hold information about the version of the style option, and -
2857 is defined for each QStyleOption subclass. -
2858 -
2859 \value Version 1 -
2860 -
2861 The version is used by QStyleOption subclasses to implement -
2862 extensions without breaking compatibility. If you use -
2863 qstyleoption_cast(), you normally do not need to check it. -
2864 -
2865 \sa StyleOptionType -
2866*/ -
2867 -
2868/*! -
2869 \variable QStyleOptionRubberBand::shape -
2870 \brief the shape of the rubber band -
2871 -
2872 The default shape is QRubberBand::Line. -
2873*/ -
2874 -
2875/*! -
2876 \variable QStyleOptionRubberBand::opaque -
2877 \brief whether the rubber band is required to be drawn in an opaque style -
2878 -
2879 The default value is true. -
2880*/ -
2881#endif // QT_NO_RUBBERBAND -
2882 -
2883/*! -
2884 \class QStyleOptionTitleBar -
2885 \brief The QStyleOptionTitleBar class is used to describe the -
2886 parameters for drawing a title bar. -
2887 -
2888 \inmodule QtWidgets -
2889 -
2890 QStyleOptionTitleBar contains all the information that QStyle -
2891 functions need to draw the title bar of a QMdiSubWindow. -
2892 -
2893 For performance reasons, the access to the member variables is -
2894 direct (i.e., using the \c . or \c -> operator). This low-level feel -
2895 makes the structures straightforward to use and emphasizes that -
2896 these are simply parameters used by the style functions. -
2897 -
2898 For an example demonstrating how style options can be used, see -
2899 the \l {widgets/styles}{Styles} example. -
2900 -
2901 \sa QStyleOption, QStyleOptionComplex, QMdiSubWindow -
2902*/ -
2903 -
2904/*! -
2905 Constructs a QStyleOptionTitleBar, initializing the members -
2906 variables to their default values. -
2907*/ -
2908 -
2909QStyleOptionTitleBar::QStyleOptionTitleBar() -
2910 : QStyleOptionComplex(Version, SO_TitleBar), titleBarState(0), titleBarFlags(0) -
2911{ -
2912}
executed: }
Execution Count:14247
14247
2913 -
2914/*! -
2915 \fn QStyleOptionTitleBar::QStyleOptionTitleBar(const QStyleOptionTitleBar &other) -
2916 -
2917 Constructs a copy of the \a other style option. -
2918*/ -
2919 -
2920/*! -
2921 \enum QStyleOptionTitleBar::StyleOptionType -
2922 -
2923 This enum is used to hold information about the type of the style option, and -
2924 is defined for each QStyleOption subclass. -
2925 -
2926 \value Type The type of style option provided (\l{SO_TitleBar} for this class). -
2927 -
2928 The type is used internally by QStyleOption, its subclasses, and -
2929 qstyleoption_cast() to determine the type of style option. In -
2930 general you do not need to worry about this unless you want to -
2931 create your own QStyleOption subclass and your own styles. -
2932 -
2933 \sa StyleOptionVersion -
2934*/ -
2935 -
2936/*! -
2937 \enum QStyleOptionTitleBar::StyleOptionVersion -
2938 -
2939 This enum is used to hold information about the version of the style option, and -
2940 is defined for each QStyleOption subclass. -
2941 -
2942 \value Version 1 -
2943 -
2944 The version is used by QStyleOption subclasses to implement -
2945 extensions without breaking compatibility. If you use -
2946 qstyleoption_cast(), you normally do not need to check it. -
2947 -
2948 \sa StyleOptionType -
2949*/ -
2950 -
2951/*! -
2952 \internal -
2953*/ -
2954QStyleOptionTitleBar::QStyleOptionTitleBar(int version) -
2955 : QStyleOptionComplex(version, SO_TitleBar), titleBarState(0), titleBarFlags(0) -
2956{ -
2957}
never executed: }
0
2958 -
2959 -
2960/*! -
2961 \variable QStyleOptionTitleBar::text -
2962 \brief the text of the title bar -
2963 -
2964 The default value is an empty string. -
2965*/ -
2966 -
2967/*! -
2968 \variable QStyleOptionTitleBar::icon -
2969 \brief the icon for the title bar -
2970 -
2971 The default value is an empty icon, i.e. an icon with neither a -
2972 pixmap nor a filename. -
2973*/ -
2974 -
2975/*! -
2976 \variable QStyleOptionTitleBar::titleBarState -
2977 \brief the state of the title bar -
2978 -
2979 This is basically the window state of the underlying widget. The -
2980 default value is 0. -
2981 -
2982 \sa QWidget::windowState() -
2983*/ -
2984 -
2985/*! -
2986 \variable QStyleOptionTitleBar::titleBarFlags -
2987 \brief the widget flags for the title bar -
2988 -
2989 The default value is Qt::Widget. -
2990 -
2991 \sa Qt::WindowFlags -
2992*/ -
2993 -
2994#ifndef QT_NO_ITEMVIEWS -
2995/*! -
2996 \class QStyleOptionViewItem -
2997 \brief The QStyleOptionViewItem class is used to describe the -
2998 parameters used to draw an item in a view widget. -
2999 -
3000 \inmodule QtWidgets -
3001 -
3002 QStyleOptionViewItem contains all the information that QStyle -
3003 functions need to draw the items for Qt's model/view classes. -
3004 -
3005 For performance reasons, the access to the member variables is -
3006 direct (i.e., using the \c . or \c -> operator). This low-level feel -
3007 makes the structures straightforward to use and emphasizes that -
3008 these are simply parameters used by the style functions. -
3009 -
3010 For an example demonstrating how style options can be used, see -
3011 the \l {widgets/styles}{Styles} example. -
3012 -
3013 \sa QStyleOption, {model-view-programming.html}{Model/View -
3014 Programming} -
3015*/ -
3016 -
3017/*! -
3018 \typedef QStyleOptionViewItemV2 -
3019 \relates QStyleOptionViewItem -
3020 -
3021 Synonym for QStyleOptionViewItem. -
3022*/ -
3023 -
3024/*! -
3025 \typedef QStyleOptionViewItemV3 -
3026 \relates QStyleOptionViewItem -
3027 -
3028 Synonym for QStyleOptionViewItem. -
3029*/ -
3030 -
3031/*! -
3032 \typedef QStyleOptionViewItemV4 -
3033 \relates QStyleOptionViewItem -
3034 -
3035 Synonym for QStyleOptionViewItem. -
3036*/ -
3037 -
3038/*! -
3039 \enum QStyleOptionViewItem::Position -
3040 -
3041 This enum describes the position of the item's decoration. -
3042 -
3043 \value Left On the left of the text. -
3044 \value Right On the right of the text. -
3045 \value Top Above the text. -
3046 \value Bottom Below the text. -
3047 -
3048 \sa decorationPosition -
3049*/ -
3050 -
3051/*! -
3052 \variable QStyleOptionViewItem::showDecorationSelected -
3053 \brief whether the decoration should be highlighted on selected -
3054 items -
3055 -
3056 If this option is true, the branch and any decorations on selected items -
3057 should be highlighted, indicating that the item is selected; otherwise, no -
3058 highlighting is required. The default value is false. -
3059 -
3060 \sa QStyle::SH_ItemView_ShowDecorationSelected, QAbstractItemView -
3061*/ -
3062 -
3063/*! -
3064 \variable QStyleOptionViewItem::textElideMode -
3065 \brief where ellipsis should be added for text that is too long to fit -
3066 into an item -
3067 -
3068 The default value is Qt::ElideMiddle, i.e. the ellipsis appears in -
3069 the middle of the text. -
3070 -
3071 \sa Qt::TextElideMode, QStyle::SH_ItemView_EllipsisLocation -
3072*/ -
3073 -
3074/*! -
3075 Constructs a QStyleOptionViewItem, initializing the members -
3076 variables to their default values. -
3077*/ -
3078 -
3079QStyleOptionViewItem::QStyleOptionViewItem() -
3080 : QStyleOption(Version, SO_ViewItem), -
3081 displayAlignment(Qt::AlignLeft), decorationAlignment(Qt::AlignLeft), -
3082 textElideMode(Qt::ElideMiddle), decorationPosition(Left), -
3083 showDecorationSelected(false), features(None), widget(0), -
3084 checkState(Qt::Unchecked), viewItemPosition(QStyleOptionViewItem::Invalid) -
3085{ -
3086}
executed: }
Execution Count:42350
42350
3087 -
3088/*! -
3089 \internal -
3090*/ -
3091QStyleOptionViewItem::QStyleOptionViewItem(int version) -
3092 : QStyleOption(version, SO_ViewItem), -
3093 displayAlignment(Qt::AlignLeft), decorationAlignment(Qt::AlignLeft), -
3094 textElideMode(Qt::ElideMiddle), decorationPosition(Left), -
3095 showDecorationSelected(false), features(None), widget(0), -
3096 checkState(Qt::Unchecked), viewItemPosition(QStyleOptionViewItem::Invalid) -
3097{ -
3098}
never executed: }
0
3099 -
3100/*! -
3101 \fn QStyleOptionViewItem::QStyleOptionViewItem(const QStyleOptionViewItem &other) -
3102 -
3103 Constructs a copy of the \a other style option. -
3104*/ -
3105 -
3106/*! -
3107 \enum QStyleOptionViewItem::StyleOptionType -
3108 -
3109 This enum is used to hold information about the type of the style option, and -
3110 is defined for each QStyleOption subclass. -
3111 -
3112 \value Type The type of style option provided (\l{SO_ViewItem} for this class). -
3113 -
3114 The type is used internally by QStyleOption, its subclasses, and -
3115 qstyleoption_cast() to determine the type of style option. In -
3116 general you do not need to worry about this unless you want to -
3117 create your own QStyleOption subclass and your own styles. -
3118 -
3119 \sa StyleOptionVersion -
3120*/ -
3121 -
3122/*! -
3123 \enum QStyleOptionViewItem::StyleOptionVersion -
3124 -
3125 This enum is used to hold information about the version of the style option, and -
3126 is defined for each QStyleOption subclass. -
3127 -
3128 \value Version 4 -
3129 -
3130 The version is used by QStyleOption subclasses to implement -
3131 extensions without breaking compatibility. If you use -
3132 qstyleoption_cast(), you normally do not need to check it. -
3133 -
3134 \sa StyleOptionType -
3135*/ -
3136 -
3137/*! -
3138 \variable QStyleOptionViewItem::displayAlignment -
3139 \brief the alignment of the display value for the item -
3140 -
3141 The default value is Qt::AlignLeft. -
3142*/ -
3143 -
3144/*! -
3145 \variable QStyleOptionViewItem::decorationAlignment -
3146 \brief the alignment of the decoration for the item -
3147 -
3148 The default value is Qt::AlignLeft. -
3149*/ -
3150 -
3151/*! -
3152 \variable QStyleOptionViewItem::decorationPosition -
3153 \brief the position of the decoration for the item -
3154 -
3155 The default value is \l Left. -
3156 -
3157 \sa Position -
3158*/ -
3159 -
3160/*! -
3161 \variable QStyleOptionViewItem::decorationSize -
3162 \brief the size of the decoration for the item -
3163 -
3164 The default value is QSize(-1, -1), i.e. an invalid size. -
3165 -
3166 \sa decorationAlignment, decorationPosition -
3167*/ -
3168 -
3169/*! -
3170 \variable QStyleOptionViewItem::font -
3171 \brief the font used for the item -
3172 -
3173 By default, the application's default font is used. -
3174 -
3175 \sa QFont -
3176*/ -
3177 -
3178/*! -
3179 \variable QStyleOptionViewItem::features -
3180 \brief a bitwise OR of the features that describe this view item -
3181 -
3182 \sa ViewItemFeature -
3183*/ -
3184 -
3185/*! -
3186 \enum QStyleOptionViewItem::ViewItemFeature -
3187 -
3188 This enum describes the different types of features an item can have. -
3189 -
3190 \value None Indicates a normal item. -
3191 \value WrapText Indicates an item with wrapped text. -
3192 \value Alternate Indicates that the item's background is rendered using alternateBase. -
3193 \value HasCheckIndicator Indicates that the item has a check state indicator. -
3194 \value HasDisplay Indicates that the item has a display role. -
3195 \value HasDecoration Indicates that the item has a decoration role. -
3196*/ -
3197 -
3198/*! -
3199 \variable QStyleOptionViewItem::index -
3200 -
3201 The model index that is to be drawn. -
3202*/ -
3203 -
3204/*! -
3205 \variable QStyleOptionViewItem::checkState -
3206 -
3207 If this view item is checkable, i.e., -
3208 ViewItemFeature::HasCheckIndicator is true, \c checkState is true -
3209 if the item is checked; otherwise, it is false. -
3210 -
3211*/ -
3212 -
3213/*! -
3214 \variable QStyleOptionViewItem::icon -
3215 -
3216 The icon (if any) to be drawn in the view item. -
3217*/ -
3218 -
3219 -
3220/*! -
3221 \variable QStyleOptionViewItem::text -
3222 -
3223 The text (if any) to be drawn in the view item. -
3224*/ -
3225 -
3226/*! -
3227 \variable QStyleOptionViewItem::backgroundBrush -
3228 -
3229 The QBrush that should be used to paint the view items -
3230 background. -
3231*/ -
3232 -
3233/*! -
3234 \variable QStyleOptionViewItem::viewItemPosition -
3235 -
3236 Gives the position of this view item relative to other items. See -
3237 the \l{QStyleOptionViewItem::}{ViewItemPosition} enum for the -
3238 details. -
3239*/ -
3240 -
3241/*! -
3242 \enum QStyleOptionViewItem::ViewItemPosition -
3243 -
3244 This enum is used to represent the placement of the item on -
3245 a row. This can be used to draw items differently depending -
3246 on their placement, for example by putting rounded edges at -
3247 the beginning and end, and straight edges in between. -
3248 -
3249 \value Invalid The ViewItemPosition is unknown and should be -
3250 disregarded. -
3251 \value Beginning The item appears at the beginning of the row. -
3252 \value Middle The item appears in the middle of the row. -
3253 \value End The item appears at the end of the row. -
3254 \value OnlyOne The item is the only one on the row, and is -
3255 therefore both at the beginning and the end. -
3256*/ -
3257 -
3258#endif // QT_NO_ITEMVIEWS -
3259/*! -
3260 \fn T qstyleoption_cast<T>(const QStyleOption *option) -
3261 \relates QStyleOption -
3262 -
3263 Returns a T or 0 depending on the \l{QStyleOption::type}{type} and -
3264 \l{QStyleOption::version}{version} of the given \a option. -
3265 -
3266 Example: -
3267 -
3268 \snippet qstyleoption/main.cpp 4 -
3269 -
3270 \sa QStyleOption::type, QStyleOption::version -
3271*/ -
3272 -
3273/*! -
3274 \fn T qstyleoption_cast<T>(QStyleOption *option) -
3275 \overload -
3276 \relates QStyleOption -
3277 -
3278 Returns a T or 0 depending on the type of the given \a option. -
3279*/ -
3280 -
3281#ifndef QT_NO_TABWIDGET -
3282/*! -
3283 \class QStyleOptionTabWidgetFrame -
3284 \brief The QStyleOptionTabWidgetFrame class is used to describe the -
3285 parameters for drawing the frame around a tab widget. -
3286 -
3287 \inmodule QtWidgets -
3288 -
3289 QStyleOptionTabWidgetFrame contains all the information that -
3290 QStyle functions need to draw the frame around QTabWidget. -
3291 -
3292 For performance reasons, the access to the member variables is -
3293 direct (i.e., using the \c . or \c -> operator). This low-level feel -
3294 makes the structures straightforward to use and emphasizes that -
3295 these are simply parameters used by the style functions. -
3296 -
3297 For an example demonstrating how style options can be used, see -
3298 the \l {widgets/styles}{Styles} example. -
3299 -
3300 \sa QStyleOption, QTabWidget -
3301*/ -
3302 -
3303/*! -
3304 \typedef QStyleOptionTabWidgetFrameV2 -
3305 \relates QStyleOptionTabWidgetFrame -
3306 -
3307 Synonym for QStyleOptionTabWidgetFrame. -
3308*/ -
3309 -
3310/*! -
3311 Constructs a QStyleOptionTabWidgetFrame, initializing the members -
3312 variables to their default values. -
3313*/ -
3314QStyleOptionTabWidgetFrame::QStyleOptionTabWidgetFrame() -
3315 : QStyleOption(Version, SO_TabWidgetFrame), lineWidth(0), midLineWidth(0), -
3316 shape(QTabBar::RoundedNorth) -
3317{ -
3318}
executed: }
Execution Count:338
338
3319 -
3320/*! -
3321 \fn QStyleOptionTabWidgetFrame::QStyleOptionTabWidgetFrame(const QStyleOptionTabWidgetFrame &other) -
3322 -
3323 Constructs a copy of \a other. -
3324*/ -
3325 -
3326/*! \internal */ -
3327QStyleOptionTabWidgetFrame::QStyleOptionTabWidgetFrame(int version) -
3328 : QStyleOption(version, SO_TabWidgetFrame), lineWidth(0), midLineWidth(0), -
3329 shape(QTabBar::RoundedNorth) -
3330{ -
3331}
never executed: }
0
3332 -
3333/*! -
3334 \enum QStyleOptionTabWidgetFrame::StyleOptionType -
3335 -
3336 This enum is used to hold information about the type of the style option, and -
3337 is defined for each QStyleOption subclass. -
3338 -
3339 \value Type The type of style option provided (\l{SO_TabWidgetFrame} for this class). -
3340 -
3341 The type is used internally by QStyleOption, its subclasses, and -
3342 qstyleoption_cast() to determine the type of style option. In -
3343 general you do not need to worry about this unless you want to -
3344 create your own QStyleOption subclass and your own styles. -
3345 -
3346 \sa StyleOptionVersion -
3347*/ -
3348 -
3349/*! -
3350 \enum QStyleOptionTabWidgetFrame::StyleOptionVersion -
3351 -
3352 This enum is used to hold information about the version of the style option, and -
3353 is defined for each QStyleOption subclass. -
3354 -
3355 \value Version 2 -
3356 -
3357 The version is used by QStyleOption subclasses to implement -
3358 extensions without breaking compatibility. If you use -
3359 qstyleoption_cast(), you normally do not need to check it. -
3360 -
3361 \sa StyleOptionType -
3362*/ -
3363 -
3364/*! -
3365 \variable QStyleOptionTabWidgetFrame::lineWidth -
3366 \brief the line width for drawing the panel -
3367 -
3368 The default value is 0. -
3369*/ -
3370 -
3371/*! -
3372 \variable QStyleOptionTabWidgetFrame::midLineWidth -
3373 \brief the mid-line width for drawing the panel -
3374 -
3375 The mid line width is usually used in drawing sunken or raised -
3376 frames. The default value is 0. -
3377*/ -
3378 -
3379/*! -
3380 \variable QStyleOptionTabWidgetFrame::shape -
3381 \brief the tab shape used to draw the tabs -
3382 -
3383 The default value is QTabBar::RoundedNorth. -
3384*/ -
3385 -
3386/*! -
3387 \variable QStyleOptionTabWidgetFrame::tabBarSize -
3388 \brief the size of the tab bar -
3389 -
3390 The default value is QSize(-1, -1), i.e. an invalid size. -
3391*/ -
3392 -
3393/*! -
3394 \variable QStyleOptionTabWidgetFrame::rightCornerWidgetSize -
3395 \brief the size of the right-corner widget -
3396 -
3397 The default value is QSize(-1, -1), i.e. an invalid size. -
3398*/ -
3399 -
3400/*! \variable QStyleOptionTabWidgetFrame::leftCornerWidgetSize -
3401 \brief the size of the left-corner widget -
3402 -
3403 The default value is QSize(-1, -1), i.e. an invalid size. -
3404*/ -
3405 -
3406 -
3407/*! -
3408 \variable QStyleOptionTabWidgetFrame::tabBarRect -
3409 \brief the rectangle containing all the tabs -
3410 -
3411 The default value is a null rectangle, i.e. a rectangle with both -
3412 the width and the height set to 0. -
3413*/ -
3414 -
3415/*! -
3416 \variable QStyleOptionTabWidgetFrame::selectedTabRect -
3417 \brief the rectangle containing the selected tab -
3418 -
3419 This rectangle is contained within the tabBarRect. The default -
3420 value is a null rectangle, i.e. a rectangle with both the width -
3421 and the height set to 0. -
3422*/ -
3423 -
3424#endif // QT_NO_TABWIDGET -
3425 -
3426#ifndef QT_NO_TABBAR -
3427 -
3428/*! -
3429 \class QStyleOptionTabBarBase -
3430 \brief The QStyleOptionTabBarBase class is used to describe -
3431 the base of a tab bar, i.e. the part that the tab bar usually -
3432 overlaps with. -
3433 -
3434 \inmodule QtWidgets -
3435 -
3436 QStyleOptionTabBarBase contains all the information that QStyle -
3437 functions need to draw the tab bar base. Note that this is only -
3438 drawn for a standalone QTabBar (one that isn't part of a -
3439 QTabWidget). -
3440 -
3441 For performance reasons, the access to the member variables is -
3442 direct (i.e., using the \c . or \c -> operator). This low-level feel -
3443 makes the structures straightforward to use and emphasizes that -
3444 these are simply parameters used by the style functions. -
3445 -
3446 For an example demonstrating how style options can be used, see -
3447 the \l {widgets/styles}{Styles} example. -
3448 -
3449 \sa QStyleOption, QTabBar::drawBase() -
3450*/ -
3451 -
3452/*! -
3453 \typedef QStyleOptionTabBarBaseV2 -
3454 \relates QStyleOptionTabBarBase -
3455 -
3456 Synonym for QStyleOptionTabBarBase. -
3457*/ -
3458 -
3459/*! -
3460 Construct a QStyleOptionTabBarBase, initializing the members -
3461 vaiables to their default values. -
3462*/ -
3463QStyleOptionTabBarBase::QStyleOptionTabBarBase() -
3464 : QStyleOption(Version, SO_TabBarBase), shape(QTabBar::RoundedNorth), -
3465 documentMode(false) -
3466{ -
3467}
executed: }
Execution Count:32
32
3468 -
3469/*! \internal */ -
3470QStyleOptionTabBarBase::QStyleOptionTabBarBase(int version) -
3471 : QStyleOption(version, SO_TabBarBase), shape(QTabBar::RoundedNorth), -
3472 documentMode(false) -
3473{ -
3474}
never executed: }
0
3475 -
3476/*! -
3477 \fn QStyleOptionTabBarBase::QStyleOptionTabBarBase(const QStyleOptionTabBarBase &other) -
3478 -
3479 Constructs a copy of \a other. -
3480*/ -
3481 -
3482/*! -
3483 \enum QStyleOptionTabBarBase::StyleOptionType -
3484 -
3485 This enum is used to hold information about the type of the style option, and -
3486 is defined for each QStyleOption subclass. -
3487 -
3488 \value Type The type of style option provided (\l{SO_TabBarBase} for this class). -
3489 -
3490 The type is used internally by QStyleOption, its subclasses, and -
3491 qstyleoption_cast() to determine the type of style option. In -
3492 general you do not need to worry about this unless you want to -
3493 create your own QStyleOption subclass and your own styles. -
3494 -
3495 \sa StyleOptionVersion -
3496*/ -
3497 -
3498/*! -
3499 \enum QStyleOptionTabBarBase::StyleOptionVersion -
3500 -
3501 This enum is used to hold information about the version of the style option, and -
3502 is defined for each QStyleOption subclass. -
3503 -
3504 \value Version 2 -
3505 -
3506 The version is used by QStyleOption subclasses to implement -
3507 extensions without breaking compatibility. If you use -
3508 qstyleoption_cast(), you normally do not need to check it. -
3509 -
3510 \sa StyleOptionType -
3511*/ -
3512 -
3513/*! -
3514 \variable QStyleOptionTabBarBase::shape -
3515 \brief the shape of the tab bar -
3516 -
3517 The default value is QTabBar::RoundedNorth. -
3518*/ -
3519 -
3520/*! -
3521 \variable QStyleOptionTabBarBase::tabBarRect -
3522 \brief the rectangle containing all the tabs -
3523 -
3524 The default value is a null rectangle, i.e. a rectangle with both -
3525 the width and the height set to 0. -
3526*/ -
3527 -
3528/*! -
3529 \variable QStyleOptionTabBarBase::selectedTabRect -
3530 \brief the rectangle containing the selected tab -
3531 -
3532 This rectangle is contained within the tabBarRect. The default -
3533 value is a null rectangle, i.e. a rectangle with both the width -
3534 and the height set to 0. -
3535*/ -
3536 -
3537 -
3538/*! -
3539 \variable QStyleOptionTabBarBase::documentMode -
3540 \brief whether the tabbar is in document mode. -
3541 -
3542 The default value is false; -
3543*/ -
3544 -
3545#endif // QT_NO_TABBAR -
3546 -
3547#ifndef QT_NO_SIZEGRIP -
3548/*! -
3549 \class QStyleOptionSizeGrip -
3550 \brief The QStyleOptionSizeGrip class is used to describe the -
3551 parameter for drawing a size grip. -
3552 \since 4.2 -
3553 \inmodule QtWidgets -
3554 -
3555 QStyleOptionButton contains all the information that QStyle -
3556 functions need to draw QSizeGrip. -
3557 -
3558 For performance reasons, the access to the member variables is -
3559 direct (i.e., using the \c . or \c -> operator). This low-level feel -
3560 makes the structures straightforward to use and emphasizes that -
3561 these are simply parameters used by the style functions. -
3562 -
3563 For an example demonstrating how style options can be used, see -
3564 the \l {widgets/styles}{Styles} example. -
3565 -
3566 \sa QStyleOption, QStyleOptionComplex, QSizeGrip -
3567*/ -
3568 -
3569/*! -
3570 Constructs a QStyleOptionSizeGrip. -
3571*/ -
3572QStyleOptionSizeGrip::QStyleOptionSizeGrip() -
3573 : QStyleOptionComplex(Version, Type), corner(Qt::BottomRightCorner) -
3574{ -
3575}
executed: }
Execution Count:49
49
3576 -
3577/*! -
3578 \fn QStyleOptionSizeGrip::QStyleOptionSizeGrip(const QStyleOptionSizeGrip &other) -
3579 -
3580 Constructs a copy of the \a other style option. -
3581*/ -
3582 -
3583/*! -
3584 \internal -
3585*/ -
3586QStyleOptionSizeGrip::QStyleOptionSizeGrip(int version) -
3587 : QStyleOptionComplex(version, Type), corner(Qt::BottomRightCorner) -
3588{ -
3589}
never executed: }
0
3590 -
3591/*! -
3592 \variable QStyleOptionSizeGrip::corner -
3593 -
3594 The corner in which the size grip is located. -
3595*/ -
3596 -
3597/*! -
3598 \enum QStyleOptionSizeGrip::StyleOptionType -
3599 -
3600 This enum is used to hold information about the type of the style option, and -
3601 is defined for each QStyleOption subclass. -
3602 -
3603 \value Type The type of style option provided (\l{SO_TabBarBase} for this class). -
3604 -
3605 The type is used internally by QStyleOption, its subclasses, and -
3606 qstyleoption_cast() to determine the type of style option. In -
3607 general you do not need to worry about this unless you want to -
3608 create your own QStyleOption subclass and your own styles. -
3609 -
3610 \sa StyleOptionVersion -
3611*/ -
3612 -
3613/*! -
3614 \enum QStyleOptionSizeGrip::StyleOptionVersion -
3615 -
3616 This enum is used to hold information about the version of the style option, and -
3617 is defined for each QStyleOption subclass. -
3618 -
3619 \value Version 1 -
3620 -
3621 The version is used by QStyleOption subclasses to implement -
3622 extensions without breaking compatibility. If you use -
3623 qstyleoption_cast(), you normally do not need to check it. -
3624 -
3625 \sa StyleOptionType -
3626*/ -
3627#endif // QT_NO_SIZEGRIP -
3628 -
3629/*! -
3630 \class QStyleOptionGraphicsItem -
3631 \brief The QStyleOptionGraphicsItem class is used to describe -
3632 the parameters needed to draw a QGraphicsItem. -
3633 \since 4.2 -
3634 \ingroup graphicsview-api -
3635 \inmodule QtWidgets -
3636 -
3637 For performance reasons, the access to the member variables is -
3638 direct (i.e., using the \c . or \c -> operator). This low-level feel -
3639 makes the structures straightforward to use and emphasizes that -
3640 these are simply parameters. -
3641 -
3642 For an example demonstrating how style options can be used, see -
3643 the \l {widgets/styles}{Styles} example. -
3644 -
3645 \sa QStyleOption, QGraphicsItem::paint() -
3646*/ -
3647 -
3648/*! -
3649 \enum QStyleOptionGraphicsItem::StyleOptionType -
3650 -
3651 This enum is used to hold information about the type of the style option, and -
3652 is defined for each QStyleOption subclass. -
3653 -
3654 \value Type The type of style option provided (\l SO_GraphicsItem for this class). -
3655 -
3656 The type is used internally by QStyleOption, its subclasses, and -
3657 qstyleoption_cast() to determine the type of style option. In -
3658 general you do not need to worry about this unless you want to -
3659 create your own QStyleOption subclass and your own styles. -
3660 -
3661 \sa StyleOptionVersion -
3662*/ -
3663 -
3664/*! -
3665 \enum QStyleOptionGraphicsItem::StyleOptionVersion -
3666 -
3667 This enum is used to hold information about the version of the style option, and -
3668 is defined for each QStyleOption subclass. -
3669 -
3670 \value Version 1 -
3671 -
3672 The version is used by QStyleOption subclasses to implement -
3673 extensions without breaking compatibility. If you use -
3674 qstyleoption_cast(), you normally do not need to check it. -
3675 -
3676 \sa StyleOptionType -
3677*/ -
3678 -
3679/*! -
3680 Constructs a QStyleOptionGraphicsItem. -
3681*/ -
3682QStyleOptionGraphicsItem::QStyleOptionGraphicsItem() -
3683 : QStyleOption(Version, Type), levelOfDetail(1) -
3684{ -
3685}
executed: }
Execution Count:831
831
3686 -
3687/*! -
3688 \internal -
3689*/ -
3690QStyleOptionGraphicsItem::QStyleOptionGraphicsItem(int version) -
3691 : QStyleOption(version, Type), levelOfDetail(1) -
3692{ -
3693}
never executed: }
0
3694 -
3695/*! -
3696 \since 4.6 -
3697 -
3698 Returns the level of detail from the \a worldTransform. -
3699 -
3700 Its value represents the maximum value of the height and -
3701 width of a unity rectangle, mapped using the \a worldTransform -
3702 of the painter used to draw the item. By default, if no -
3703 transformations are applied, its value is 1. If zoomed out 1:2, the level -
3704 of detail will be 0.5, and if zoomed in 2:1, its value is 2. -
3705*/ -
3706qreal QStyleOptionGraphicsItem::levelOfDetailFromTransform(const QTransform &worldTransform) -
3707{ -
3708 if (worldTransform.type() <= QTransform::TxTranslate)
evaluated: worldTransform.type() <= QTransform::TxTranslate
TRUEFALSE
yes
Evaluation Count:13
yes
Evaluation Count:12
12-13
3709 return 1; // Translation only? The LOD is 1.
executed: return 1;
Execution Count:13
13
3710 -
3711 // Two unit vectors. -
3712 QLineF v1(0, 0, 1, 0);
executed (the execution status of this line is deduced): QLineF v1(0, 0, 1, 0);
-
3713 QLineF v2(0, 0, 0, 1);
executed (the execution status of this line is deduced): QLineF v2(0, 0, 0, 1);
-
3714 // LOD is the transformed area of a 1x1 rectangle. -
3715 return qSqrt(worldTransform.map(v1).length() * worldTransform.map(v2).length());
executed: return qSqrt(worldTransform.map(v1).length() * worldTransform.map(v2).length());
Execution Count:12
12
3716} -
3717 -
3718/*! -
3719 \fn QStyleOptionGraphicsItem::QStyleOptionGraphicsItem(const QStyleOptionGraphicsItem &other) -
3720 -
3721 Constructs a copy of \a other. -
3722*/ -
3723 -
3724/*! -
3725 \variable QStyleOptionGraphicsItem::exposedRect -
3726 \brief the exposed rectangle, in item coordinates -
3727 -
3728 Make use of this rectangle to speed up item drawing when only parts of the -
3729 item are exposed. If the whole item is exposed, this rectangle will be the -
3730 same as QGraphicsItem::boundingRect(). -
3731 -
3732 This member is only initialized for items that have the -
3733 QGraphicsItem::ItemUsesExtendedStyleOption flag set. -
3734*/ -
3735 -
3736/*! -
3737 \variable QStyleOptionGraphicsItem::matrix -
3738 \brief the complete transformation matrix for the item -
3739 \obsolete -
3740 -
3741 The QMatrix provided through this member does include information about -
3742 any perspective transformations applied to the view or item. To get the -
3743 correct transformation matrix, use QPainter::transform() on the painter -
3744 passed into the QGraphicsItem::paint() implementation. -
3745 -
3746 This matrix is the combination of the item's scene matrix and the matrix -
3747 of the painter used for drawing the item. It is provided for convenience, -
3748 allowing anvanced level-of-detail metrics that can be used to speed up -
3749 item drawing. -
3750 -
3751 To find the dimensions of an item in screen coordinates (i.e., pixels), -
3752 you can use the mapping functions of QMatrix, such as QMatrix::map(). -
3753 -
3754 This member is only initialized for items that have the -
3755 QGraphicsItem::ItemUsesExtendedStyleOption flag set. -
3756 -
3757 \sa QStyleOptionGraphicsItem::levelOfDetailFromTransform() -
3758*/ -
3759 -
3760/*! -
3761 \variable QStyleOptionGraphicsItem::levelOfDetail -
3762 \obsolete -
3763 -
3764 Use QStyleOptionGraphicsItem::levelOfDetailFromTransform() -
3765 together with QPainter::worldTransform() instead. -
3766*/ -
3767 -
3768/*! -
3769 \class QStyleHintReturn -
3770 \brief The QStyleHintReturn class provides style hints that return more -
3771 than basic data types. -
3772 -
3773 \ingroup appearance -
3774 \inmodule QtWidgets -
3775 -
3776 QStyleHintReturn and its subclasses are used to pass information -
3777 from a style back to the querying widget. This is most useful -
3778 when the return value from QStyle::styleHint() does not provide enough -
3779 detail; for example, when a mask is to be returned. -
3780 -
3781 \omit -
3782 ### --Sam -
3783 \endomit -
3784*/ -
3785 -
3786/*! -
3787 \enum QStyleHintReturn::HintReturnType -
3788 -
3789 \value SH_Default QStyleHintReturn -
3790 \value SH_Mask \l QStyle::SH_RubberBand_Mask QStyle::SH_FocusFrame_Mask -
3791 \value SH_Variant \l QStyle::SH_TextControl_FocusIndicatorTextCharFormat -
3792*/ -
3793 -
3794/*! -
3795 \enum QStyleHintReturn::StyleOptionType -
3796 -
3797 This enum is used to hold information about the type of the style option, and -
3798 is defined for each QStyleHintReturn subclass. -
3799 -
3800 \value Type The type of style option provided (\l SH_Default for -
3801 this class). -
3802 -
3803 The type is used internally by QStyleHintReturn, its subclasses, and -
3804 qstyleoption_cast() to determine the type of style option. In -
3805 general you do not need to worry about this unless you want to -
3806 create your own QStyleHintReturn subclass and your own styles. -
3807 -
3808 \sa StyleOptionVersion -
3809*/ -
3810 -
3811/*! -
3812 \enum QStyleHintReturn::StyleOptionVersion -
3813 -
3814 This enum is used to hold information about the version of the style option, and -
3815 is defined for each QStyleHintReturn subclass. -
3816 -
3817 \value Version 1 -
3818 -
3819 The version is used by QStyleHintReturn subclasses to implement -
3820 extensions without breaking compatibility. If you use -
3821 qstyleoption_cast(), you normally do not need to check it. -
3822 -
3823 \sa StyleOptionType -
3824*/ -
3825 -
3826/*! -
3827 \variable QStyleHintReturn::type -
3828 \brief the type of the style hint container -
3829 -
3830 \sa HintReturnType -
3831*/ -
3832 -
3833/*! -
3834 \variable QStyleHintReturn::version -
3835 \brief the version of the style hint return container -
3836 -
3837 This value can be used by subclasses to implement extensions -
3838 without breaking compatibility. If you use qstyleoption_cast<T>(), you -
3839 normally do not need to check it. -
3840*/ -
3841 -
3842/*! -
3843 Constructs a QStyleHintReturn with version \a version and type \a -
3844 type. -
3845 -
3846 The version has no special meaning for QStyleHintReturn; it can be -
3847 used by subclasses to distinguish between different version of -
3848 the same hint type. -
3849 -
3850 \sa QStyleOption::version, QStyleOption::type -
3851*/ -
3852 -
3853QStyleHintReturn::QStyleHintReturn(int version, int type) -
3854 : version(version), type(type) -
3855{ -
3856}
executed: }
Execution Count:922
922
3857 -
3858/*! -
3859 \internal -
3860*/ -
3861 -
3862QStyleHintReturn::~QStyleHintReturn() -
3863{ -
3864 -
3865} -
3866 -
3867/*! -
3868 \class QStyleHintReturnMask -
3869 \brief The QStyleHintReturnMask class provides style hints that return a QRegion. -
3870 -
3871 \ingroup appearance -
3872 \inmodule QtWidgets -
3873 -
3874 \omit -
3875 ### --Sam -
3876 \endomit -
3877*/ -
3878 -
3879/*! -
3880 \variable QStyleHintReturnMask::region -
3881 \brief the region for style hints that return a QRegion -
3882*/ -
3883 -
3884/*! -
3885 Constructs a QStyleHintReturnMask. The member variables are -
3886 initialized to default values. -
3887*/ -
3888QStyleHintReturnMask::QStyleHintReturnMask() : QStyleHintReturn(Version, Type) -
3889{ -
3890}
executed: }
Execution Count:922
922
3891 -
3892/*! -
3893 Destructor. -
3894*/ -
3895QStyleHintReturnMask::~QStyleHintReturnMask() -
3896{ -
3897} -
3898 -
3899/*! -
3900 \enum QStyleHintReturnMask::StyleOptionType -
3901 -
3902 This enum is used to hold information about the type of the style option, and -
3903 is defined for each QStyleHintReturn subclass. -
3904 -
3905 \value Type The type of style option provided (\l{SH_Mask} for -
3906 this class). -
3907 -
3908 The type is used internally by QStyleHintReturn, its subclasses, and -
3909 qstyleoption_cast() to determine the type of style option. In -
3910 general you do not need to worry about this unless you want to -
3911 create your own QStyleHintReturn subclass and your own styles. -
3912 -
3913 \sa StyleOptionVersion -
3914*/ -
3915 -
3916/*! -
3917 \enum QStyleHintReturnMask::StyleOptionVersion -
3918 -
3919 This enum is used to hold information about the version of the style option, and -
3920 is defined for each QStyleHintReturn subclass. -
3921 -
3922 \value Version 1 -
3923 -
3924 The version is used by QStyleHintReturn subclasses to implement -
3925 extensions without breaking compatibility. If you use -
3926 qstyleoption_cast(), you normally do not need to check it. -
3927 -
3928 \sa StyleOptionType -
3929*/ -
3930 -
3931/*! -
3932 \class QStyleHintReturnVariant -
3933 \brief The QStyleHintReturnVariant class provides style hints that return a QVariant. -
3934 \since 4.3 -
3935 \ingroup appearance -
3936 \inmodule QtWidgets -
3937*/ -
3938 -
3939/*! -
3940 \variable QStyleHintReturnVariant::variant -
3941 \brief the variant for style hints that return a QVariant -
3942*/ -
3943 -
3944/*! -
3945 Constructs a QStyleHintReturnVariant. The member variables are -
3946 initialized to default values. -
3947*/ -
3948QStyleHintReturnVariant::QStyleHintReturnVariant() : QStyleHintReturn(Version, Type) -
3949{ -
3950}
never executed: }
0
3951 -
3952/*! -
3953 Destructor. -
3954*/ -
3955QStyleHintReturnVariant::~QStyleHintReturnVariant() -
3956{ -
3957} -
3958 -
3959/*! -
3960 \enum QStyleHintReturnVariant::StyleOptionType -
3961 -
3962 This enum is used to hold information about the type of the style option, and -
3963 is defined for each QStyleHintReturn subclass. -
3964 -
3965 \value Type The type of style option provided (\l{SH_Variant} for -
3966 this class). -
3967 -
3968 The type is used internally by QStyleHintReturn, its subclasses, and -
3969 qstyleoption_cast() to determine the type of style option. In -
3970 general you do not need to worry about this unless you want to -
3971 create your own QStyleHintReturn subclass and your own styles. -
3972 -
3973 \sa StyleOptionVersion -
3974*/ -
3975 -
3976/*! -
3977 \enum QStyleHintReturnVariant::StyleOptionVersion -
3978 -
3979 This enum is used to hold information about the version of the style option, and -
3980 is defined for each QStyleHintReturn subclass. -
3981 -
3982 \value Version 1 -
3983 -
3984 The version is used by QStyleHintReturn subclasses to implement -
3985 extensions without breaking compatibility. If you use -
3986 qstyleoption_cast(), you normally do not need to check it. -
3987 -
3988 \sa StyleOptionType -
3989*/ -
3990 -
3991/*! -
3992 \fn T qstyleoption_cast<T>(const QStyleHintReturn *hint) -
3993 \relates QStyleHintReturn -
3994 -
3995 Returns a T or 0 depending on the \l{QStyleHintReturn::type}{type} -
3996 and \l{QStyleHintReturn::version}{version} of \a hint. -
3997 -
3998 Example: -
3999 -
4000 \snippet code/src_gui_styles_qstyleoption.cpp 0 -
4001 -
4002 \sa QStyleHintReturn::type, QStyleHintReturn::version -
4003*/ -
4004 -
4005/*! -
4006 \fn T qstyleoption_cast<T>(QStyleHintReturn *hint) -
4007 \overload -
4008 \relates QStyleHintReturn -
4009 -
4010 Returns a T or 0 depending on the type of \a hint. -
4011*/ -
4012 -
4013#if !defined(QT_NO_DEBUG_STREAM) -
4014QDebug operator<<(QDebug debug, const QStyleOption::OptionType &optionType) -
4015{ -
4016#if !defined(QT_NO_DEBUG) -
4017 switch (optionType) { -
4018 case QStyleOption::SO_Default: -
4019 debug << "SO_Default"; break; -
4020 case QStyleOption::SO_FocusRect: -
4021 debug << "SO_FocusRect"; break; -
4022 case QStyleOption::SO_Button: -
4023 debug << "SO_Button"; break; -
4024 case QStyleOption::SO_Tab: -
4025 debug << "SO_Tab"; break; -
4026 case QStyleOption::SO_MenuItem: -
4027 debug << "SO_MenuItem"; break; -
4028 case QStyleOption::SO_Frame: -
4029 debug << "SO_Frame"; break; -
4030 case QStyleOption::SO_ProgressBar: -
4031 debug << "SO_ProgressBar"; break; -
4032 case QStyleOption::SO_ToolBox: -
4033 debug << "SO_ToolBox"; break; -
4034 case QStyleOption::SO_Header: -
4035 debug << "SO_Header"; break; -
4036 case QStyleOption::SO_DockWidget: -
4037 debug << "SO_DockWidget"; break; -
4038 case QStyleOption::SO_ViewItem: -
4039 debug << "SO_ViewItem"; break; -
4040 case QStyleOption::SO_TabWidgetFrame: -
4041 debug << "SO_TabWidgetFrame"; break; -
4042 case QStyleOption::SO_TabBarBase: -
4043 debug << "SO_TabBarBase"; break; -
4044 case QStyleOption::SO_RubberBand: -
4045 debug << "SO_RubberBand"; break; -
4046 case QStyleOption::SO_Complex: -
4047 debug << "SO_Complex"; break; -
4048 case QStyleOption::SO_Slider: -
4049 debug << "SO_Slider"; break; -
4050 case QStyleOption::SO_SpinBox: -
4051 debug << "SO_SpinBox"; break; -
4052 case QStyleOption::SO_ToolButton: -
4053 debug << "SO_ToolButton"; break; -
4054 case QStyleOption::SO_ComboBox: -
4055 debug << "SO_ComboBox"; break; -
4056 case QStyleOption::SO_TitleBar: -
4057 debug << "SO_TitleBar"; break; -
4058 case QStyleOption::SO_CustomBase: -
4059 debug << "SO_CustomBase"; break; -
4060 case QStyleOption::SO_GroupBox: -
4061 debug << "SO_GroupBox"; break; -
4062 case QStyleOption::SO_ToolBar: -
4063 debug << "SO_ToolBar"; break; -
4064 case QStyleOption::SO_ComplexCustomBase: -
4065 debug << "SO_ComplexCustomBase"; break; -
4066 case QStyleOption::SO_SizeGrip: -
4067 debug << "SO_SizeGrip"; break; -
4068 case QStyleOption::SO_GraphicsItem: -
4069 debug << "SO_GraphicsItem"; break; -
4070 } -
4071#else -
4072 Q_UNUSED(optionType);
never executed (the execution status of this line is deduced): (void)optionType;;
-
4073#endif -
4074 return debug;
never executed: return debug;
0
4075} -
4076 -
4077QDebug operator<<(QDebug debug, const QStyleOption &option) -
4078{ -
4079#if !defined(QT_NO_DEBUG) -
4080 debug << "QStyleOption("; -
4081 debug << QStyleOption::OptionType(option.type); -
4082 debug << ',' << (option.direction == Qt::RightToLeft ? "RightToLeft" : "LeftToRight"); -
4083 debug << ',' << option.state; -
4084 debug << ',' << option.rect; -
4085 debug << ',' << option.styleObject; -
4086 debug << ')'; -
4087#else -
4088 Q_UNUSED(option);
never executed (the execution status of this line is deduced): (void)option;;
-
4089#endif -
4090 return debug;
never executed: return debug;
0
4091} -
4092#endif -
4093 -
4094QT_END_NAMESPACE -
4095 -
Source codeSwitch to Preprocessed file

Generated by Squish Coco Non-Commercial