Qt 4.8
|
The QStyleHintReturnVariant class provides style hints that return a QVariant. More...
#include <qstyleoption.h>
Public Types | |
enum | StyleOptionType { Type = SH_Variant } |
This enum is used to hold information about the type of the style option, and is defined for each QStyleHintReturn subclass. More... | |
enum | StyleOptionVersion { Version = 1 } |
This enum is used to hold information about the version of the style option, and is defined for each QStyleHintReturn subclass. More... | |
Public Types inherited from QStyleHintReturn | |
enum | HintReturnType { SH_Default =0xf000, SH_Mask, SH_Variant } |
enum | StyleOptionType { Type = SH_Default } |
This enum is used to hold information about the type of the style option, and is defined for each QStyleHintReturn subclass. More... | |
enum | StyleOptionVersion { Version = 1 } |
This enum is used to hold information about the version of the style option, and is defined for each QStyleHintReturn subclass. More... | |
Public Functions | |
QStyleHintReturnVariant () | |
Constructs a QStyleHintReturnVariant. More... | |
Public Functions inherited from QStyleHintReturn | |
QStyleHintReturn (int version=QStyleOption::Version, int type=SH_Default) | |
Constructs a QStyleHintReturn with version version and type type. More... | |
~QStyleHintReturn () | |
Public Variables | |
QVariant | variant |
the variant for style hints that return a QVariant More... | |
Public Variables inherited from QStyleHintReturn | |
int | type |
the type of the style hint container More... | |
int | version |
the version of the style hint return container More... | |
Additional Inherited Members | |
Related Functions inherited from QStyleHintReturn | |
T | qstyleoption_cast (const QStyleHintReturn *hint) |
T | qstyleoption_cast (QStyleHintReturn *hint) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More... | |
The QStyleHintReturnVariant class provides style hints that return a QVariant.
Definition at line 933 of file qstyleoption.h.
This enum is used to hold information about the type of the style option, and is defined for each QStyleHintReturn subclass.
The type is used internally by QStyleHintReturn, 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 QStyleHintReturn subclass and your own styles.
Enumerator | |
---|---|
Type |
Definition at line 935 of file qstyleoption.h.
This enum is used to hold information about the version of the style option, and is defined for each QStyleHintReturn subclass.
The version is used by QStyleHintReturn subclasses to implement extensions without breaking compatibility. If you use qstyleoption_cast(), you normally do not need to check it.
Enumerator | |
---|---|
Version |
Definition at line 936 of file qstyleoption.h.
QStyleHintReturnVariant::QStyleHintReturnVariant | ( | ) |
Constructs a QStyleHintReturnVariant.
The member variables are initialized to default values.
Definition at line 6331 of file qstyleoption.cpp.
QStyleHintReturnVariant::variant |
the variant for style hints that return a QVariant
Definition at line 940 of file qstyleoption.h.
Referenced by QTextControl::getPaintContext().