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


QStyleOptionTitleBar contains all the information that QStyle functions need to draw the title bars of QWorkspace's MDI children.
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 638 of file qstyleoption.h.
Public Types | |
| enum | StyleOptionType |
| enum | StyleOptionVersion |
Public Member Functions | |
| QStyleOptionTitleBar () | |
| QStyleOptionTitleBar (const QStyleOptionTitleBar &other) | |
Public Attributes | |
| QString | text |
| QIcon | icon |
| int | titleBarState |
| Qt::WindowFlags | titleBarFlags |
Protected Member Functions | |
| QStyleOptionTitleBar (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_TitleBar} 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 QStyleOptionComplex.
Definition at line 641 of file qstyleoption.h.
00641 { Type = SO_TitleBar };
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 QStyleOptionComplex.
Definition at line 642 of file qstyleoption.h.
00642 { Version = 1 };
| QStyleOptionTitleBar::QStyleOptionTitleBar | ( | ) |
Constructs a QStyleOptionTitleBar, initializing the members variables to their default values.
Definition at line 3562 of file qstyleoption.cpp.
03563 : QStyleOptionComplex(Version, SO_TitleBar), titleBarState(0), titleBarFlags(0) 03564 { 03565 }
| QStyleOptionTitleBar::QStyleOptionTitleBar | ( | const QStyleOptionTitleBar & | other | ) | [inline] |
Constructs a copy of the other style option.
Definition at line 650 of file qstyleoption.h.
00650 : QStyleOptionComplex(Version, Type) { *this = other; }
| QStyleOptionTitleBar::QStyleOptionTitleBar | ( | int | version | ) | [protected] |
Definition at line 3607 of file qstyleoption.cpp.
03608 : QStyleOptionComplex(version, SO_TitleBar), titleBarState(0), titleBarFlags(0) 03609 { 03610 }
Definition at line 644 of file qstyleoption.h.
Referenced by Q3TitleBarPrivate::getStyleOption(), QWorkspaceTitleBarPrivate::getStyleOption(), Q3DockWindowTitleBar::mousePressEvent(), and QWorkspaceTitleBar::paintEvent().
Definition at line 645 of file qstyleoption.h.
Referenced by Q3TitleBarPrivate::getStyleOption(), QWorkspaceTitleBarPrivate::getStyleOption(), and Q3DockWindowTitleBar::mousePressEvent().
Definition at line 646 of file qstyleoption.h.
Referenced by Q3TitleBarPrivate::getStyleOption(), QWorkspaceTitleBarPrivate::getStyleOption(), Q3DockWindowTitleBar::mousePressEvent(), qt_cleanlooks_draw_mdibutton(), qt_plastique_draw_mdibutton(), and QWorkspaceChild::updateMask().
| Qt::WindowFlags QStyleOptionTitleBar::titleBarFlags |
Definition at line 647 of file qstyleoption.h.
Referenced by Q3TitleBarPrivate::getStyleOption(), QWorkspaceTitleBarPrivate::getStyleOption(), Q3DockWindowTitleBar::mousePressEvent(), and QWorkspaceChild::updateMask().
1.5.1