Qt 4.8
Public Functions | Properties | List of all members
QFlag Class Reference

The QFlag class is a helper data type for QFlags. More...

#include <qglobal.h>

Public Functions

 operator int () const
 Returns the value stored by the QFlag object. More...
 
 QFlag (int i)
 Constructs a QFlag object that stores the given value. More...
 

Properties

int i
 

Detailed Description

The QFlag class is a helper data type for QFlags.

It is equivalent to a plain int, except with respect to function overloading and type conversions. You should never need to use this class in your applications.

See also
QFlags

Definition at line 2289 of file qglobal.h.

Constructors and Destructors

◆ QFlag()

QFlag::QFlag ( int  i)
inline

Constructs a QFlag object that stores the given value.

Definition at line 2297 of file qglobal.h.

2297 : i(ai) {}
int i
Definition: qglobal.h:2291

Functions

◆ operator int()

QFlag::operator int ( ) const
inline

Returns the value stored by the QFlag object.

Definition at line 2294 of file qglobal.h.

2294 { return i; }
int i
Definition: qglobal.h:2291

Properties

◆ i

int QFlag::i
private

Definition at line 2291 of file qglobal.h.

Referenced by QIncompatibleFlag::operator int().


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