#include <qstyleoption.h>
Inheritance diagram for QStyleOptionQ3DockWindow:


This class is used for drawing the old Q3DockWindow and its parts. {It is not recommended for new classes}.
QStyleOptionQ3DockWindow contains all the information that QStyle functions need to draw Q3DockWindow and its parts.
For performance reasons, the access to the member variables is direct (i.e., using the . or -> operator). This low-level feel makes the structures straightforward to use and emphasizes that these are simply parameters used by the style functions.
For an example demonstrating how style options can be used, see the {widgets/styles}{Styles} example.
Definition at line 393 of file qstyleoption.h.
Public Types | |
| enum | StyleOptionType |
| enum | StyleOptionVersion |
Public Member Functions | |
| QStyleOptionQ3DockWindow () | |
| QStyleOptionQ3DockWindow (const QStyleOptionQ3DockWindow &other) | |
Public Attributes | |
| bool | docked |
| bool | closeEnabled |
Protected Member Functions | |
| QStyleOptionQ3DockWindow (int version) | |
This enum is used to hold information about the type of the style option, and is defined for each QStyleOption subclass.
Type The type of style option provided ({SO_Q3DockWindow} for this class).
The type is used internally by QStyleOption, its subclasses, and qstyleoption_cast() to determine the type of style option. In general you do not need to worry about this unless you want to create your own QStyleOption subclass and your own styles.
Reimplemented from QStyleOption.
Definition at line 396 of file qstyleoption.h.
00396 { Type = SO_Q3DockWindow };
This enum is used to hold information about the version of the style option, and is defined for each QStyleOption subclass.
Version 1
The version is used by QStyleOption subclasses to implement extensions without breaking compatibility. If you use qstyleoption_cast(), you normally don't need to check it.
Reimplemented from QStyleOption.
Definition at line 397 of file qstyleoption.h.
00397 { Version = 1 };
| QStyleOptionQ3DockWindow::QStyleOptionQ3DockWindow | ( | ) |
Constructs a QStyleOptionQ3DockWindow, initializing the member variables to their default values.
Definition at line 2906 of file qstyleoption.cpp.
02907 : QStyleOption(Version, SO_Q3DockWindow), docked(false), closeEnabled(false) 02908 { 02909 }
| QStyleOptionQ3DockWindow::QStyleOptionQ3DockWindow | ( | const QStyleOptionQ3DockWindow & | other | ) | [inline] |
Constructs a copy of the other style option.
Definition at line 403 of file qstyleoption.h.
00403 : QStyleOption(Version, Type) { *this = other; }
| QStyleOptionQ3DockWindow::QStyleOptionQ3DockWindow | ( | int | version | ) | [protected] |
Definition at line 2914 of file qstyleoption.cpp.
02915 : QStyleOption(version, SO_Q3DockWindow), docked(false), closeEnabled(false) 02916 { 02917 }
Definition at line 399 of file qstyleoption.h.
Referenced by Q3DockWindowHandle::paintEvent(), QHideDock::paintEvent(), and Q3DockWindowResizeHandle::sizeHint().
Definition at line 400 of file qstyleoption.h.
Referenced by Q3DockWindowHandle::paintEvent(), QHideDock::paintEvent(), and Q3DockWindowResizeHandle::sizeHint().
1.5.1