diff options
Diffstat (limited to 'examples/declarative/extending/extended/main.cpp')
-rw-r--r-- | examples/declarative/extending/extended/main.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/declarative/extending/extended/main.cpp b/examples/declarative/extending/extended/main.cpp index ad4bf50..5cbeea3 100644 --- a/examples/declarative/extending/extended/main.cpp +++ b/examples/declarative/extending/extended/main.cpp @@ -39,8 +39,8 @@ ** ****************************************************************************/ #include <QApplication> -#include <QmlEngine> -#include <QmlComponent> +#include <QDeclarativeEngine> +#include <QDeclarativeComponent> #include <QDebug> #include <QLineEdit> #include "lineedit.h" @@ -51,8 +51,8 @@ int main(int argc, char ** argv) QML_REGISTER_EXTENDED_TYPE(People, 1,0, QLineEdit, QLineEdit, LineEditExtension); - QmlEngine engine; - QmlComponent component(&engine, ":example.qml"); + QDeclarativeEngine engine; + QDeclarativeComponent component(&engine, ":example.qml"); QLineEdit *edit = qobject_cast<QLineEdit *>(component.create()); if (edit) { |