QStyleOptionDockWidget Class Reference

#include <qstyleoption.h>

Inheritance diagram for QStyleOptionDockWidget:

Inheritance graph
[legend]
Collaboration diagram for QStyleOptionDockWidget:

Collaboration graph
[legend]
List of all members.

Detailed Description

whether the dock window is currently dockedwhether the dock window has a close buttonThe QStyleOptionDockWidget class is used to describe the parameters for drawing a dock widget.

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.

See also:
QStyleOption

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)


Member Enumeration Documentation

enum QStyleOptionDockWidget::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_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.

See also:
StyleOptionVersion

Reimplemented from QStyleOption.

Definition at line 412 of file qstyleoption.h.

00412 { Type = SO_DockWidget };

enum QStyleOptionDockWidget::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 QStyleOption.

Definition at line 413 of file qstyleoption.h.

00413 { Version = 1 };


Constructor & Destructor Documentation

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 }


Member Data Documentation

QString QStyleOptionDockWidget::title

Definition at line 415 of file qstyleoption.h.

Referenced by QDockWidgetPrivate::getStyleOption().

bool QStyleOptionDockWidget::closable

Definition at line 416 of file qstyleoption.h.

Referenced by QDockWidgetPrivate::getStyleOption().

bool QStyleOptionDockWidget::movable

Definition at line 417 of file qstyleoption.h.

Referenced by QDockWidgetPrivate::getStyleOption().

bool QStyleOptionDockWidget::floatable

Definition at line 418 of file qstyleoption.h.

Referenced by QDockWidgetPrivate::getStyleOption().


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