|
KTutorial
0.5.1
|
Helper class to find objects. More...
#include <ObjectFinder.h>
Public Member Functions | |
| ObjectFinder (QObject *parent=0) | |
| Creates a new ObjectFinder with the given parent. | |
| virtual | ~ObjectFinder () |
| Destroys this ObjectFinder. | |
| template<typename T > | |
| T | findObject (const QString &name, const QObject *baseObject) const |
| Returns the object with the specified name, if any. | |
Helper class to find objects.
This class is not intended to be used directly. Instead, use KTutorial::findObject(const QString&).
Definition at line 33 of file ObjectFinder.h.
| ktutorial::ObjectFinder::ObjectFinder | ( | QObject * | parent = 0 | ) | [explicit] |
Creates a new ObjectFinder with the given parent.
| parent | The parent object. |
Definition at line 25 of file ObjectFinder.cpp.
| T ktutorial::ObjectFinder::findObject | ( | const QString & | name, |
| const QObject * | baseObject | ||
| ) | const [inline] |
Returns the object with the specified name, if any.
Objects are searched in the children of the given base object.
For details please refer to KTutorial::findObject(const QString&) documentation.
| name | The name of the object to find. |
| baseObject | The base object to search from. |
Definition at line 62 of file ObjectFinder.h.
Referenced by ktutorial::editorsupport::EditorSupport::findObject().
1.8.0