Skip to content

Commit

Permalink
Documentation for QQmlAspectEngine
Browse files Browse the repository at this point in the history
Change-Id: I656d9d5e6ed5fe2420e2b2ced8193040dfce666f
Reviewed-by: Topi Reiniö <[email protected]>
  • Loading branch information
mialsa committed Jan 27, 2016
1 parent 5a68874 commit 910065a
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions src/quick3d/quick3d/qqmlaspectengine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,13 @@ QT_BEGIN_NAMESPACE
namespace Qt3DCore {
namespace Quick {

/*!
\namespace Qt3DCore::Quick
\inmodule Qt3DCore
\brief Contains classes used for implementing QML functionality into Qt3D
applications.
*/

QQmlAspectEnginePrivate::QQmlAspectEnginePrivate()
: QObjectPrivate()
, m_qmlEngine(new QQmlEngine())
Expand All @@ -53,11 +60,42 @@ QQmlAspectEnginePrivate::QQmlAspectEnginePrivate()
{
}

/*!
* \class Qt3DCore::Quick::QQmlAspectEngine
* \inmodule Qt3DCore
*
* \brief The QQmlAspectEngine provides an environment for the QAspectEngine and
* a method for instantiating QML components.
*/

/*!
* \enum Qt3DCore::Quick::QQmlAspectEngine::Status
*
* The status of the engine.
*
* \value Null
* \value Ready
* \value Loading
* \value Error
*/

/*!
* \fn void Qt3DCore::Quick::QQmlAspectEngine::statusChanged(Status status)
*
* This signal is emitted with \a status when the status of the engine changes.
*/

/*!
* Constructs a new QQmlAspectEngine with \a parent.
*/
QQmlAspectEngine::QQmlAspectEngine(QObject *parent)
: QObject(*new QQmlAspectEnginePrivate, parent)
{
}

/*!
* \return the status.
*/
QQmlAspectEngine::Status QQmlAspectEngine::status() const
{
Q_D(const QQmlAspectEngine);
Expand All @@ -68,6 +106,9 @@ QQmlAspectEngine::Status QQmlAspectEngine::status() const
return Status(d->m_component->status());
}

/*!
* Sets \a source as a source for the QML component to be created.
*/
void QQmlAspectEngine::setSource(const QUrl &source)
{
Q_D(QQmlAspectEngine);
Expand All @@ -88,12 +129,18 @@ void QQmlAspectEngine::setSource(const QUrl &source)
}
}

/*!
* \return the engine.
*/
QQmlEngine *QQmlAspectEngine::qmlEngine() const
{
Q_D(const QQmlAspectEngine);
return d->m_qmlEngine.data();
}

/*!
* \return the aspectEngine.
*/
QAspectEngine *QQmlAspectEngine::aspectEngine() const
{
Q_D(const QQmlAspectEngine);
Expand Down

0 comments on commit 910065a

Please sign in to comment.