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


This class is used for drawing the compatibility Q3ListView's items. {It is not recommended for new classes}.
QStyleOptionQ3ListViewItem contains all the information that QStyle functions need to draw the Q3ListView items.
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 368 of file qstyleoption.h.
Public Types | |
| enum | StyleOptionType |
| enum | StyleOptionVersion |
| enum | Q3ListViewItemFeature |
Public Member Functions | |
| QStyleOptionQ3ListViewItem () | |
| QStyleOptionQ3ListViewItem (const QStyleOptionQ3ListViewItem &other) | |
Public Attributes | |
| Q3ListViewItemFeatures | features |
| int | height |
| int | totalHeight |
| int | itemY |
| int | childCount |
Protected Member Functions | |
| QStyleOptionQ3ListViewItem (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_Q3ListViewItem} 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 371 of file qstyleoption.h.
00371 { Type = SO_Q3ListViewItem };
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 372 of file qstyleoption.h.
00372 { Version = 1 };
This enum describes the features a list view item can have.
None A standard item. Expandable The item has children that can be shown. MultiLine The item is more than one line tall. Visible The item is visible. ParentControl The item's parent is a type of item control (Q3CheckListItem::Controller).
Definition at line 374 of file qstyleoption.h.
00374 { None = 0x00, Expandable = 0x01, MultiLine = 0x02, Visible = 0x04, 00375 ParentControl = 0x08 };
| QStyleOptionQ3ListViewItem::QStyleOptionQ3ListViewItem | ( | ) |
Constructs a QStyleOptionQ3ListViewItem, initializing the members variables to their default values.
Definition at line 2642 of file qstyleoption.cpp.
02643 : QStyleOption(Version, SO_Q3ListViewItem), features(None), height(0), totalHeight(0), 02644 itemY(0), childCount(0) 02645 { 02646 }
| QStyleOptionQ3ListViewItem::QStyleOptionQ3ListViewItem | ( | const QStyleOptionQ3ListViewItem & | other | ) | [inline] |
Constructs a copy of the other style option.
Definition at line 385 of file qstyleoption.h.
00385 : QStyleOption(Version, Type) { *this = other; }
| QStyleOptionQ3ListViewItem::QStyleOptionQ3ListViewItem | ( | int | version | ) | [protected] |
Definition at line 2651 of file qstyleoption.cpp.
02652 : QStyleOption(version, SO_Q3ListViewItem), features(None), height(0), totalHeight(0), 02653 itemY(0), childCount(0) 02654 { 02655 }
| Q3ListViewItemFeatures QStyleOptionQ3ListViewItem::features |
Definition at line 378 of file qstyleoption.h.
Referenced by QWindowsStyle::drawComplexControl(), QMotifStyle::drawComplexControl(), QCommonStyle::drawPrimitive(), and getStyleOption().
Definition at line 379 of file qstyleoption.h.
Referenced by QWindowsStyle::drawComplexControl(), QCommonStyle::drawPrimitive(), and getStyleOption().
Definition at line 381 of file qstyleoption.h.
Referenced by QWindowsStyle::drawComplexControl(), and getStyleOption().
Definition at line 382 of file qstyleoption.h.
Referenced by QWindowsStyle::drawComplexControl(), QMotifStyle::drawComplexControl(), and getStyleOption().
1.5.1