Contains QObject helper functions.
More...
Functions |
const QObject * | FindMutualParent (const QObject *inObject1, const QObject *inObject2) |
| Determines the mutual parent of two given objects.
|
const QObject * | TopLevelParent (const QObject *inObject) |
| Determines the top level parent of the given object.
|
QString | Name (const QObject *inObject) |
| Determines the name of the given object.
|
QString | Class (const QObject *inObject) |
| Determines the class name of the given object.
|
QString | QualifiedName (const QObject *inObject) |
| Determines the qualified name of the given object: [class name] :: [object name].
|
QString | QualifiedName (const QString &inClass, const QString &inName) |
| Builds a qualified name for an object from its given class name and object name: [class name] :: [object name].
|
QString | Address (const QObject *inObject) |
| Determines the address of the given object.
|
Detailed Description
Contains QObject helper functions.
Function Documentation
QString conan::ObjectUtility::Address |
( |
const QObject * |
inObject |
) |
|
Determines the address of the given object.
- Parameters:
-
- Returns:
- The address of the object if it exists; otherwise 0x00000000
QString conan::ObjectUtility::Class |
( |
const QObject * |
inObject |
) |
|
Determines the class name of the given object.
- Parameters:
-
- Returns:
- The class name of the object if it exists; otherwise an empty string
const QObject * conan::ObjectUtility::FindMutualParent |
( |
const QObject * |
inObject1, |
|
|
const QObject * |
inObject2 | |
|
) |
| | |
Determines the mutual parent of two given objects.
- Parameters:
-
[in] | inObject1 | The first object |
[in] | inObject2 | The second object |
- Returns:
- The mutual parent if it exists; otherwise 0
QString conan::ObjectUtility::Name |
( |
const QObject * |
inObject |
) |
|
Determines the name of the given object.
- Parameters:
-
- Returns:
- The name of the object if it exists; otherwise 'unnamed'
QString conan::ObjectUtility::QualifiedName |
( |
const QString & |
inClass, |
|
|
const QString & |
inName | |
|
) |
| | |
Builds a qualified name for an object from its given class name and object name: [class name] :: [object name].
- Parameters:
-
[in] | inClass | The object's class name |
[in] | inName | The object's name |
- Returns:
- The qualified name: [
inClass
] :: [inName
]
QString conan::ObjectUtility::QualifiedName |
( |
const QObject * |
inObject |
) |
|
Determines the qualified name of the given object: [class name] :: [object name].
- Parameters:
-
- Returns:
- The qualified name of the object if it exists; otherwise an empty string
const QObject * conan::ObjectUtility::TopLevelParent |
( |
const QObject * |
inObject |
) |
|
Determines the top level parent of the given object.
- Parameters:
-
- Returns:
- The top level parent if it exists; otherwise 0