CopperSpice API  1.9.2
QStyleOptionComplex Class Reference

The QStyleOptionComplex class holds parameters which are common to all complex controls. More...

Inheritance diagram for QStyleOptionComplex:
QStyleOption QStyleOptionComboBox QStyleOptionGroupBox QStyleOptionSizeGrip QStyleOptionSlider QStyleOptionSpinBox QStyleOptionTitleBar QStyleOptionToolButton

Public Types

enum  StyleOptionType
 
enum  StyleOptionVersion
 
- Public Types inherited from QStyleOption
enum  OptionType
 
enum  StyleOptionType
 
enum  StyleOptionVersion
 

Public Methods

 QStyleOptionComplex (const QStyleOptionComplex &other)
 
 QStyleOptionComplex (int version=QStyleOptionComplex::Version, int type=SO_Complex)
 
QStyleOptionComplex & operator= (const QStyleOptionComplex &other) = default
 
- Public Methods inherited from QStyleOption
 QStyleOption (const QStyleOption &other)
 
 QStyleOption (int version=QStyleOption::Version, int type=SO_Default)
 
 ~QStyleOption ()
 
void initFrom (const QWidget *widget)
 
QStyleOption & operator= (const QStyleOption &other)
 

Additional Inherited Members

- Public Members inherited from QStyleOption
int type
 
int version
 

Detailed Description

The QStyleOptionComplex class is holds parameters which are common to all complex controls. This class is not used on its own. Instead it is used to derive other complex control options, for example QStyleOptionSlider and QStyleOptionSpinBox.

See also
QStyleOption

Member Enumeration Documentation

This enum is used to hold information about the type of the style option and is defined for each QStyleOption subclass.

ConstantValueDescription
QStyleOptionComplex::TypeSO_Complex The type of style option provided (SO_Complex for this class).
See also
StyleOptionVersion, qstyleoption_cast()

This enum is used to hold information about the version of the style option and is defined for each QStyleOption subclass.

ConstantValueDescription
QStyleOptionComplex::Version 1 1
See also
StyleOptionType, qstyleoption_cast()

Constructor & Destructor Documentation

QStyleOptionComplex::QStyleOptionComplex ( int  version = QStyleOptionComplex::Version,
int  type = SO_Complex 
)

Constructs a QStyleOptionComplex with the specified type and version. This constructor is usually called by subclasses.

QStyleOptionComplex::QStyleOptionComplex ( const QStyleOptionComplex &  other)
inline

Copy constructs a new QStyleOptionComplex from other.

Method Documentation

QStyleOptionComplex & QStyleOptionComplex::operator= ( const QStyleOptionComplex &  other)
default

Copy assigns from other and returns a reference to this object.