QStyleOptionTabWidgetFrame Class Reference

#include <qstyleoption.h>

Inheritance diagram for QStyleOptionTabWidgetFrame:

Inheritance graph
[legend]
Collaboration diagram for QStyleOptionTabWidgetFrame:

Collaboration graph
[legend]
List of all members.

Detailed Description

The QStyleOptionTabWidgetFrame class is used to describe the parameters for drawing the frame around a tab widget.

QStyleOptionTabWidgetFrame contains all the information that QStyle functions need to draw the frame around QTabWidget.

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, QTabWidget

Definition at line 132 of file qstyleoption.h.

Public Types

enum  StyleOptionType
enum  StyleOptionVersion

Public Member Functions

 QStyleOptionTabWidgetFrame ()
 QStyleOptionTabWidgetFrame (const QStyleOptionTabWidgetFrame &other)

Public Attributes

int lineWidth
int midLineWidth
QTabBar::Shape shape
QSize tabBarSize
QSize rightCornerWidgetSize
QSize leftCornerWidgetSize

Protected Member Functions

 QStyleOptionTabWidgetFrame (int version)


Member Enumeration Documentation

enum QStyleOptionTabWidgetFrame::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_TabWidgetFrame} 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 135 of file qstyleoption.h.

00135 { Type = SO_TabWidgetFrame };

enum QStyleOptionTabWidgetFrame::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 136 of file qstyleoption.h.

00136 { Version = 1 };


Constructor & Destructor Documentation

QStyleOptionTabWidgetFrame::QStyleOptionTabWidgetFrame (  ) 

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

Definition at line 3853 of file qstyleoption.cpp.

QStyleOptionTabWidgetFrame::QStyleOptionTabWidgetFrame ( const QStyleOptionTabWidgetFrame other  )  [inline]

Constructs a copy of other.

Definition at line 146 of file qstyleoption.h.

00147         : QStyleOption(Version, Type) { *this = other; }

QStyleOptionTabWidgetFrame::QStyleOptionTabWidgetFrame ( int  version  )  [protected]

Definition at line 3866 of file qstyleoption.cpp.


Member Data Documentation

int QStyleOptionTabWidgetFrame::lineWidth

Definition at line 138 of file qstyleoption.h.

int QStyleOptionTabWidgetFrame::midLineWidth

Definition at line 139 of file qstyleoption.h.

QTabBar::Shape QStyleOptionTabWidgetFrame::shape

Definition at line 140 of file qstyleoption.h.

Referenced by QTabWidgetPrivate::getStyleOption(), and QWindowsXPStyle::subElementRect().

QSize QStyleOptionTabWidgetFrame::tabBarSize

Definition at line 141 of file qstyleoption.h.

Referenced by QTabWidgetPrivate::getStyleOption().

QSize QStyleOptionTabWidgetFrame::rightCornerWidgetSize

Definition at line 142 of file qstyleoption.h.

Referenced by QTabWidgetPrivate::getStyleOption().

QSize QStyleOptionTabWidgetFrame::leftCornerWidgetSize

Definition at line 143 of file qstyleoption.h.

Referenced by QTabWidgetPrivate::getStyleOption().


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