Qt 4.8
Public Types | Public Functions | Properties | List of all members
QLayoutParameter< T > Class Template Reference

#include <qgridlayoutengine_p.h>

Public Types

enum  State { Default, User, Cached }
 

Public Functions

bool isCached () const
 
bool isDefault () const
 
bool isUser () const
 
 QLayoutParameter ()
 
 QLayoutParameter (T value, State state=Default)
 
void setCachedValue (T value) const
 
void setUserValue (T value)
 
value () const
 
value (T defaultValue) const
 

Properties

State q_state
 
q_value
 

Detailed Description

template<typename T>
class QLayoutParameter< T >

Definition at line 103 of file qgridlayoutengine_p.h.

Enumerations

◆ State

template<typename T>
enum QLayoutParameter::State

Constructors and Destructors

◆ QLayoutParameter() [1/2]

template<typename T>
QLayoutParameter< T >::QLayoutParameter ( )
inline

◆ QLayoutParameter() [2/2]

template<typename T>
QLayoutParameter< T >::QLayoutParameter ( value,
State  state = Default 
)
inline

Definition at line 109 of file qgridlayoutengine_p.h.

Functions

◆ isCached()

template<typename T>
bool QLayoutParameter< T >::isCached ( ) const
inline

Definition at line 125 of file qgridlayoutengine_p.h.

◆ isDefault()

template<typename T>
bool QLayoutParameter< T >::isDefault ( ) const
inline

◆ isUser()

template<typename T>
bool QLayoutParameter< T >::isUser ( ) const
inline

◆ setCachedValue()

template<typename T>
void QLayoutParameter< T >::setCachedValue ( value) const
inline

◆ setUserValue()

template<typename T>
void QLayoutParameter< T >::setUserValue ( value)
inline

◆ value() [1/2]

template<typename T>
T QLayoutParameter< T >::value ( ) const
inline

◆ value() [2/2]

template<typename T>
T QLayoutParameter< T >::value ( defaultValue) const
inline

Definition at line 122 of file qgridlayoutengine_p.h.

122 { return isUser() ? q_value : defaultValue; }

Properties

◆ q_state

template<typename T>
State QLayoutParameter< T >::q_state
mutableprivate

◆ q_value

template<typename T>
T QLayoutParameter< T >::q_value
mutableprivate

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