QStyleOptionTitleBar Class Reference

#include <qstyleoption.h>

Inheritance diagram for QStyleOptionTitleBar:

Inheritance graph
[legend]
Collaboration diagram for QStyleOptionTitleBar:

Collaboration graph
[legend]
List of all members.

Detailed Description

the shape of the rubber bandwhether the rubber band is required to be drawn in an opaque styleThe QStyleOptionTitleBar class is used to describe the parameters for drawing a title bar.

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.

See also:
QStyleOption, QStyleOptionComplex, QWorkspace

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)


Member Enumeration Documentation

enum QStyleOptionTitleBar::StyleOptionType

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.

See also:
StyleOptionVersion

Reimplemented from QStyleOptionComplex.

Definition at line 641 of file qstyleoption.h.

00641 { Type = SO_TitleBar };

enum QStyleOptionTitleBar::StyleOptionVersion

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.

See also:
StyleOptionType

Reimplemented from QStyleOptionComplex.

Definition at line 642 of file qstyleoption.h.

00642 { Version = 1 };


Constructor & Destructor Documentation

QStyleOptionTitleBar::QStyleOptionTitleBar (  ) 

Constructs a QStyleOptionTitleBar, initializing the members variables to their default values.

Definition at line 3562 of file qstyleoption.cpp.

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.


Member Data Documentation

QString QStyleOptionTitleBar::text

Definition at line 644 of file qstyleoption.h.

Referenced by Q3TitleBarPrivate::getStyleOption(), QWorkspaceTitleBarPrivate::getStyleOption(), Q3DockWindowTitleBar::mousePressEvent(), and QWorkspaceTitleBar::paintEvent().

QIcon QStyleOptionTitleBar::icon

Definition at line 645 of file qstyleoption.h.

Referenced by Q3TitleBarPrivate::getStyleOption(), QWorkspaceTitleBarPrivate::getStyleOption(), and Q3DockWindowTitleBar::mousePressEvent().

int QStyleOptionTitleBar::titleBarState

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().


The documentation for this class was generated from the following files:
Generated on Thu Mar 15 19:10:57 2007 for Qt 4.2 User's Guide by  doxygen 1.5.1