QStyleOptionQ3DockWindow Class Reference

#include <qstyleoption.h>

Inheritance diagram for QStyleOptionQ3DockWindow:

Inheritance graph
[legend]
Collaboration diagram for QStyleOptionQ3DockWindow:

Collaboration graph
[legend]
List of all members.

Detailed Description

a list of items in the Q3ListViewthe palette of Q3ListView's viewportthe background role of Q3ListView's viewportthe sort column of the list viewthe margin for items in the list viewthe number of pixel to offset children items from their parentswhether root items are decoratedThe QStyleOptionQ3DockWindow class is used to describe the parameters for drawing various parts of a Q3DockWindow.

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.

See also:
QStyleOption, Q3DockWindow

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)


Member Enumeration Documentation

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

See also:
StyleOptionVersion

Reimplemented from QStyleOption.

Definition at line 396 of file qstyleoption.h.

00396 { Type = SO_Q3DockWindow };

enum QStyleOptionQ3DockWindow::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 397 of file qstyleoption.h.

00397 { Version = 1 };


Constructor & Destructor Documentation

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 }


Member Data Documentation

bool QStyleOptionQ3DockWindow::docked

Definition at line 399 of file qstyleoption.h.

Referenced by Q3DockWindowHandle::paintEvent(), QHideDock::paintEvent(), and Q3DockWindowResizeHandle::sizeHint().

bool QStyleOptionQ3DockWindow::closeEnabled

Definition at line 400 of file qstyleoption.h.

Referenced by Q3DockWindowHandle::paintEvent(), QHideDock::paintEvent(), and Q3DockWindowResizeHandle::sizeHint().


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