#include <qstyleoption.h>
Inheritance diagram for QStyleOptionTabBarBase:


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.
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) | |
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.
Reimplemented from QStyleOption.
Definition at line 158 of file qstyleoption.h.
00158 { Type = SO_TabBarBase };
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.
Reimplemented from QStyleOption.
Definition at line 159 of file qstyleoption.h.
00159 { Version = 1 };
| QStyleOptionTabBarBase::QStyleOptionTabBarBase | ( | ) |
Construct a QStyleOptionTabBarBase, initializing the members vaiables to their default values.
Definition at line 3974 of file qstyleoption.cpp.
03975 : QStyleOption(Version, SO_TabBarBase), shape(QTabBar::RoundedNorth) 03976 { 03977 }
| 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.
03981 : QStyleOption(version, SO_TabBarBase), shape(QTabBar::RoundedNorth) 03982 { 03983 }
1.5.1