FougTools  0.7.0dev-046fb6a
Handy tools for C++, Qt and OpenCascade
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Static Public Member Functions | List of all members
qtcore::QObjectUtils Class Reference

Provides a collection of tools around QObject. More...

#include <qttools/core/qobject_utils.h>

Static Public Member Functions

static void forwardSignal (const QObject *sender, const QObject *resender, const char *signal)
 
template<typename PARENT_TYPE >
static const PARENT_TYPE * constFindParent (const QObject *object)
 
template<typename PARENT_TYPE >
static PARENT_TYPE * findParent (QObject *object)
 
template<typename QOBJECT , typename ENUM >
static ENUM toQEnumValue (const char *enumName, int value)
 Safe cast of an integer to a Q_ENUM value. More...
 
template<typename QOBJECT , typename ENUM >
static std::vector< ENUM > allQEnumValues (const char *enumName)
 All enumerator values of QOBJECT::ENUM returned in a single array. More...
 

Detailed Description

Provides a collection of tools around QObject.

Member Function Documentation

template<typename QOBJECT , typename ENUM >
std::vector< ENUM > qtcore::QObjectUtils::allQEnumValues ( const char *  enumName)
static

All enumerator values of QOBJECT::ENUM returned in a single array.

Template Parameters
QOBJECTA QObject type, or a class marked at least with Q_GADGET (eg. QLocale)
ENUMAn enum type, declared in QOBJECT and marked with Q_ENUM (eg. QLocale::Country)
Parameters
enumNameName of the enumerator type (eg. "Country" for QLocale::Country)
template<typename PARENT_TYPE >
const PARENT_TYPE * qtcore::QObjectUtils::constFindParent ( const QObject *  object)
static
template<typename PARENT_TYPE >
PARENT_TYPE * qtcore::QObjectUtils::findParent ( QObject *  object)
static
void qtcore::QObjectUtils::forwardSignal ( const QObject *  sender,
const QObject *  resender,
const char *  signal 
)
static
template<typename QOBJECT , typename ENUM >
ENUM qtcore::QObjectUtils::toQEnumValue ( const char *  enumName,
int  value 
)
static

Safe cast of an integer to a Q_ENUM value.


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