QStyleOptionViewItemV4 Class Reference

#include <qstyleoption.h>

Class Description

Definition at line 609 of file qstyleoption.h.

+ Inheritance diagram for QStyleOptionViewItemV4:

Public Types

enum  StyleOptionVersion { Version = 4 }
 
enum  ViewItemPosition {
  Invalid, Beginning, Middle, End,
  OnlyOne
}
 
- Public Types inherited from QStyleOptionViewItemV3
enum  StyleOptionVersion { Version = 3 }
 
- Public Types inherited from QStyleOptionViewItemV2
enum  StyleOptionVersion { Version = 2 }
 
enum  ViewItemFeature {
  None = 0x00, WrapText = 0x01, Alternate = 0x02, HasCheckIndicator = 0x04,
  HasDisplay = 0x08, HasDecoration = 0x10
}
 
- Public Types inherited from QStyleOptionViewItem
enum  StyleOptionType { Type = SO_ViewItem }
 
enum  StyleOptionVersion { Version = 1 }
 
enum  Position { Left, Right, Top, Bottom }
 
- Public Types inherited from QStyleOption
enum  OptionType {
  SO_Default, SO_FocusRect, SO_Button, SO_Tab,
  SO_MenuItem, SO_Frame, SO_ProgressBar, SO_ToolBox,
  SO_Header, SO_Q3DockWindow, SO_DockWidget, SO_Q3ListViewItem,
  SO_ViewItem, SO_TabWidgetFrame, SO_TabBarBase, SO_RubberBand,
  SO_ToolBar, SO_GraphicsItem, SO_Complex = 0xf0000, SO_Slider,
  SO_SpinBox, SO_ToolButton, SO_ComboBox, SO_Q3ListView,
  SO_TitleBar, SO_GroupBox, SO_SizeGrip, SO_CustomBase = 0xf00,
  SO_ComplexCustomBase = 0xf000000
}
 
enum  StyleOptionType { Type = SO_Default }
 
enum  StyleOptionVersion { Version = 1 }
 

Public Member Functions

 QStyleOptionViewItemV4 ()
 
 QStyleOptionViewItemV4 (const QStyleOptionViewItemV4 &other)
 
 QStyleOptionViewItemV4 (const QStyleOptionViewItem &other)
 
QStyleOptionViewItemV4operator= (const QStyleOptionViewItem &other)
 
- Public Member Functions inherited from QStyleOptionViewItemV3
 QStyleOptionViewItemV3 ()
 
 QStyleOptionViewItemV3 (const QStyleOptionViewItemV3 &other)
 
 QStyleOptionViewItemV3 (const QStyleOptionViewItem &other)
 
QStyleOptionViewItemV3operator= (const QStyleOptionViewItem &other)
 
- Public Member Functions inherited from QStyleOptionViewItemV2
 QStyleOptionViewItemV2 ()
 
 QStyleOptionViewItemV2 (const QStyleOptionViewItemV2 &other)
 
 QStyleOptionViewItemV2 (const QStyleOptionViewItem &other)
 
QStyleOptionViewItemV2operator= (const QStyleOptionViewItem &other)
 
- Public Member Functions inherited from QStyleOptionViewItem
 QStyleOptionViewItem ()
 
 QStyleOptionViewItem (const QStyleOptionViewItem &other)
 
- Public Member Functions inherited from QStyleOption
 QStyleOption (int version=QStyleOption::Version, int type=SO_Default)
 
 QStyleOption (const QStyleOption &other)
 
 ~QStyleOption ()
 
void init (const QWidget *w)
 
void initFrom (const QWidget *w)
 
QStyleOptionoperator= (const QStyleOption &other)
 

Public Attributes

QModelIndex index
 
Qt::CheckState checkState
 
QIcon icon
 
QString text
 
ViewItemPosition viewItemPosition
 
QBrush backgroundBrush
 
- Public Attributes inherited from QStyleOptionViewItemV3
QLocale locale
 
const QWidgetwidget
 
- Public Attributes inherited from QStyleOptionViewItemV2
ViewItemFeatures features
 
- Public Attributes inherited from QStyleOptionViewItem
Qt::Alignment displayAlignment
 
Qt::Alignment decorationAlignment
 
Qt::TextElideMode textElideMode
 
Position decorationPosition
 
QSize decorationSize
 
QFont font
 
bool showDecorationSelected
 
- Public Attributes inherited from QStyleOption
int version
 
int type
 
QStyle::State state
 
Qt::LayoutDirection direction
 
QRect rect
 
QFontMetrics fontMetrics
 
QPalette palette
 

Protected Member Functions

 QStyleOptionViewItemV4 (int version)
 
- Protected Member Functions inherited from QStyleOptionViewItemV3
 QStyleOptionViewItemV3 (int version)
 
- Protected Member Functions inherited from QStyleOptionViewItemV2
 QStyleOptionViewItemV2 (int version)
 
- Protected Member Functions inherited from QStyleOptionViewItem
 QStyleOptionViewItem (int version)
 

Member Enumeration Documentation

Enumerator
Version 

Definition at line 612 of file qstyleoption.h.

Constructor & Destructor Documentation

Definition at line 623 of file qstyleoption.h.

QStyleOptionViewItemV4 ( int  version)
protected

Member Function Documentation

QStyleOptionViewItemV4& operator= ( const QStyleOptionViewItem other)

Member Data Documentation

Definition at line 615 of file qstyleoption.h.

Qt::CheckState checkState

Definition at line 616 of file qstyleoption.h.

QIcon icon

Definition at line 617 of file qstyleoption.h.

QString text

Definition at line 618 of file qstyleoption.h.

ViewItemPosition viewItemPosition

Definition at line 619 of file qstyleoption.h.

QBrush backgroundBrush

Definition at line 620 of file qstyleoption.h.


The documentation for this class was generated from the following file: