Commit e920010e authored by Kai Koehne's avatar Kai Koehne Committed by hjk
Browse files

Debugger: Fix manual test case for QtQuick2



Change-Id: I1ccc631a6e03b0e1229fa23d13ff13303166df80
Reviewed-by: default avatarhjk <hjk121@nokiamail.com>
parent 833c0746
QT += declarative quick
QT += qml quick
macx:CONFIG -= app_bundle
......
#include <QGuiApplication>
#include <QQuickView>
#include <QDeclarativeContext>
#include <QDeclarativeEngine>
#include <QQmlContext>
#include <QQmlEngine>
#include <QDebug>
class Backend : public QObject {
......
#include "myplugin.h"
#include "mytype.h"
#include <qqml.h>
void MyPlugin::registerTypes(const char *uri)
{
// @uri mymodule
......@@ -8,4 +10,3 @@ void MyPlugin::registerTypes(const char *uri)
qmlRegisterType<MyType>(uri, 1, 0, "MyType");
}
Q_EXPORT_PLUGIN(MyPlugin)
#ifndef MYPLUGIN_H
#define MYPLUGIN_H
#include <qdeclarative.h>
#include <QDeclarativeExtensionPlugin>
#include <QQmlExtensionPlugin>
class MyPlugin : public QDeclarativeExtensionPlugin
class MyPlugin : public QQmlExtensionPlugin
{
Q_OBJECT
Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QQmlExtensionInterface")
public:
void registerTypes(const char *uri);
};
......
TEMPLATE = lib
TARGET = myplugin
QT += declarative
QT += qml
CONFIG += qt plugin
TARGET = $$qtLibraryTarget($$TARGET)
......
#include "mytype.h"
#include <QTimer>
#include <QTime>
#include <qdeclarative.h>
#include "mytype.h"
#include <qqml.h>
MyType::MyType(QObject *parent)
: QObject(parent)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment