summaryrefslogtreecommitdiffstats
path: root/examples/declarative/extending/extended/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/declarative/extending/extended/main.cpp')
-rw-r--r--examples/declarative/extending/extended/main.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/examples/declarative/extending/extended/main.cpp b/examples/declarative/extending/extended/main.cpp
index 9376af7..ad4bf50 100644
--- a/examples/declarative/extending/extended/main.cpp
+++ b/examples/declarative/extending/extended/main.cpp
@@ -43,11 +43,14 @@
#include <QmlComponent>
#include <QDebug>
#include <QLineEdit>
+#include "lineedit.h"
int main(int argc, char ** argv)
{
QApplication app(argc, argv);
+ QML_REGISTER_EXTENDED_TYPE(People, 1,0, QLineEdit, QLineEdit, LineEditExtension);
+
QmlEngine engine;
QmlComponent component(&engine, ":example.qml");
QLineEdit *edit = qobject_cast<QLineEdit *>(component.create());