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


QStyleOptionDockWidget contains all the information that QStyle functions need to draw graphical elements like QDockWidget.
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 409 of file qstyleoption.h.
Public Types | |
| enum | StyleOptionType |
| enum | StyleOptionVersion |
Public Member Functions | |
| QStyleOptionDockWidget () | |
| QStyleOptionDockWidget (const QStyleOptionDockWidget &other) | |
Public Attributes | |
| QString | title |
| bool | closable |
| bool | movable |
| bool | floatable |
Protected Member Functions | |
| QStyleOptionDockWidget (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_DockWidget} 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 412 of file qstyleoption.h.
00412 { Type = SO_DockWidget };
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 413 of file qstyleoption.h.
00413 { Version = 1 };
| QStyleOptionDockWidget::QStyleOptionDockWidget | ( | ) |
Constructs a QStyleOptionDockWidget, initializing the member variables to their default values.
Definition at line 2994 of file qstyleoption.cpp.
02995 : QStyleOption(Version, SO_DockWidget), movable(false) 02996 { 02997 }
| QStyleOptionDockWidget::QStyleOptionDockWidget | ( | const QStyleOptionDockWidget & | other | ) | [inline] |
Constructs a copy of the other style option.
Definition at line 421 of file qstyleoption.h.
00421 : QStyleOption(Version, Type) { *this = other; }
| QStyleOptionDockWidget::QStyleOptionDockWidget | ( | int | version | ) | [protected] |
Definition at line 3002 of file qstyleoption.cpp.
03003 : QStyleOption(version, SO_DockWidget), closable(false), 03004 movable(false), floatable(false) 03005 { 03006 }
1.5.1