QStyleOptionQ3ListViewItem Class Reference

#include <qstyleoption.h>

Inheritance diagram for QStyleOptionQ3ListViewItem:

Inheritance graph
[legend]
Collaboration diagram for QStyleOptionQ3ListViewItem:

Collaboration graph
[legend]
List of all members.

Detailed Description

the type of button symbols to draw for the spin boxwhich buttons of the spin box that are enabledwhether the spin box has a frameThe QStyleOptionQ3ListViewItem class is used to describe an item drawn in a Q3ListView.

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.

See also:
QStyleOption, QStyleOptionQ3ListView, Q3ListViewItem

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)


Member Enumeration Documentation

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

See also:
StyleOptionVersion

Reimplemented from QStyleOption.

Definition at line 371 of file qstyleoption.h.

00371 { Type = SO_Q3ListViewItem };

enum QStyleOptionQ3ListViewItem::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 372 of file qstyleoption.h.

00372 { Version = 1 };

enum QStyleOptionQ3ListViewItem::Q3ListViewItemFeature

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).

See also:
features, Q3ListViewItem::isVisible(), Q3ListViewItem::multiLinesEnabled(), Q3ListViewItem::isExpandable()

Definition at line 374 of file qstyleoption.h.

00374                                { None = 0x00, Expandable = 0x01, MultiLine = 0x02, Visible = 0x04,
00375                                  ParentControl = 0x08 };


Constructor & Destructor Documentation

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 }


Member Data Documentation

Q3ListViewItemFeatures QStyleOptionQ3ListViewItem::features

Definition at line 378 of file qstyleoption.h.

Referenced by QWindowsStyle::drawComplexControl(), QMotifStyle::drawComplexControl(), QCommonStyle::drawPrimitive(), and getStyleOption().

int QStyleOptionQ3ListViewItem::height

Definition at line 379 of file qstyleoption.h.

Referenced by QWindowsStyle::drawComplexControl(), QCommonStyle::drawPrimitive(), and getStyleOption().

int QStyleOptionQ3ListViewItem::totalHeight

Definition at line 380 of file qstyleoption.h.

Referenced by getStyleOption().

int QStyleOptionQ3ListViewItem::itemY

Definition at line 381 of file qstyleoption.h.

Referenced by QWindowsStyle::drawComplexControl(), and getStyleOption().

int QStyleOptionQ3ListViewItem::childCount

Definition at line 382 of file qstyleoption.h.

Referenced by QWindowsStyle::drawComplexControl(), QMotifStyle::drawComplexControl(), and getStyleOption().


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