KTutorial  0.5.1
Public Member Functions
ktutorial::ObjectFinder Class Reference

Helper class to find objects. More...

#include <ObjectFinder.h>

List of all members.

Public Member Functions

 ObjectFinder (QObject *parent=0)
 Creates a new ObjectFinder with the given parent.
virtual ~ObjectFinder ()
 Destroys this ObjectFinder.
template<typename T >
findObject (const QString &name, const QObject *baseObject) const
 Returns the object with the specified name, if any.

Detailed Description

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.


Constructor & Destructor Documentation

ktutorial::ObjectFinder::ObjectFinder ( QObject *  parent = 0) [explicit]

Creates a new ObjectFinder with the given parent.

Parameters:
parentThe parent object.

Definition at line 25 of file ObjectFinder.cpp.


Member Function Documentation

template<typename T >
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.

Parameters:
nameThe name of the object to find.
baseObjectThe base object to search from.
Returns:
The object with the specified name, or null if there is none.
See also:
KTutorial::findObject(const QString&)

Definition at line 62 of file ObjectFinder.h.

Referenced by ktutorial::editorsupport::EditorSupport::findObject().


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