Qt 4.8
Public Types | Public Functions | Public Variables | List of all members
QStyleHintReturnVariant Class Reference

The QStyleHintReturnVariant class provides style hints that return a QVariant. More...

#include <qstyleoption.h>

Inheritance diagram for QStyleHintReturnVariant:
QStyleHintReturn

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

Detailed Description

The QStyleHintReturnVariant class provides style hints that return a QVariant.

Since
4.3

Definition at line 933 of file qstyleoption.h.

Enumerations

◆ StyleOptionType

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

  • Type The type of style option provided (SH_Variant for this class).

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.

See also
StyleOptionVersion
Enumerator
Type 

Definition at line 935 of file qstyleoption.h.

◆ StyleOptionVersion

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

  • Version 1

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.

See also
StyleOptionType
Enumerator
Version 

Definition at line 936 of file qstyleoption.h.

Constructors and Destructors

◆ QStyleHintReturnVariant()

QStyleHintReturnVariant::QStyleHintReturnVariant ( )

Constructs a QStyleHintReturnVariant.

The member variables are initialized to default values.

Definition at line 6331 of file qstyleoption.cpp.

6332 {
6333 }
QStyleHintReturn(int version=QStyleOption::Version, int type=SH_Default)
Constructs a QStyleHintReturn with version version and type type.

Properties

◆ variant

QStyleHintReturnVariant::variant

the variant for style hints that return a QVariant

Definition at line 940 of file qstyleoption.h.

Referenced by QTextControl::getPaintContext().


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