QStyleOptionTabBarBase Class Reference

#include <qstyleoption.h>

Inheritance diagram for QStyleOptionTabBarBase:

Inheritance graph
[legend]
Collaboration diagram for QStyleOptionTabBarBase:

Collaboration graph
[legend]
List of all members.

Detailed Description

the line width for drawing the panelthe mid-line width for drawing the panelthe tab shape used to draw the tabsthe size of the tab barthe size of the right-corner widgetthe size of the left-corner widgetThe QStyleOptionTabBarBase class is used to describe the base of a tabbar, i.e. the part that the tabbar usually overlaps with.

QStyleOptionTabBarBase contains all the information that QStyle functions need to draw the tab bar base. Note that this is only drawn for a standalone QTabBar (one that isn't part of a 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, QTabBar::drawBase()

Definition at line 155 of file qstyleoption.h.

Public Types

enum  StyleOptionType
enum  StyleOptionVersion

Public Member Functions

 QStyleOptionTabBarBase ()
 QStyleOptionTabBarBase (const QStyleOptionTabBarBase &other)

Public Attributes

QTabBar::Shape shape
QRect tabBarRect
QRect selectedTabRect

Protected Member Functions

 QStyleOptionTabBarBase (int version)


Member Enumeration Documentation

enum QStyleOptionTabBarBase::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_TabBarBase} 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 158 of file qstyleoption.h.

00158 { Type = SO_TabBarBase };

enum QStyleOptionTabBarBase::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 159 of file qstyleoption.h.

00159 { Version = 1 };


Constructor & Destructor Documentation

QStyleOptionTabBarBase::QStyleOptionTabBarBase (  ) 

Construct a QStyleOptionTabBarBase, initializing the members vaiables to their default values.

Definition at line 3974 of file qstyleoption.cpp.

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

Constructs a copy of other.

Definition at line 166 of file qstyleoption.h.

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

QStyleOptionTabBarBase::QStyleOptionTabBarBase ( int  version  )  [protected]

Definition at line 3980 of file qstyleoption.cpp.


Member Data Documentation

QTabBar::Shape QStyleOptionTabBarBase::shape

Definition at line 161 of file qstyleoption.h.

Referenced by QTabBar::paintEvent().

QRect QStyleOptionTabBarBase::tabBarRect

Definition at line 162 of file qstyleoption.h.

Referenced by QTabBar::paintEvent().

QRect QStyleOptionTabBarBase::selectedTabRect

Definition at line 163 of file qstyleoption.h.

Referenced by QTabBar::paintEvent().


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