Skip to content
Snippets Groups Projects
Commit def8944f authored by Marco Bubke's avatar Marco Bubke
Browse files

QmlDesigner: Use Meego

parent 3efefbda
No related branches found
No related tags found
No related merge requests found
...@@ -32,14 +32,24 @@ ...@@ -32,14 +32,24 @@
#include <QtCore/QtPlugin> #include <QtCore/QtPlugin>
#include <private/qdeclarativerectangle_p.h> #include <private/qdeclarativerectangle_p.h>
#include <private/qdeclarativescalegrid_p_p.h> #include <private/qdeclarativescalegrid_p_p.h>
#include <MComponentData>
namespace QmlDesigner { namespace QmlDesigner {
QtQuickPlugin::QtQuickPlugin() QtQuickPlugin::QtQuickPlugin()
{ {
qmlRegisterType<QDeclarativePen>("QtQuick", 1, 0, "Pen"); qApp->setProperty("NoMStyle", true);
qmlRegisterType<QDeclarativeScaleGrid>("QtQuick", 1, 0, "ScaleGrid"); if(!MComponentData::instance()) {
// This is a workaround because we can't use a default
// constructor for MComponentData
int argc = 1;
char *argv0 = "meegotouch";
(void) new MComponentData(argc, &argv0);
}
qmlRegisterType<QDeclarativePen>("Qt", 4, 7, "Pen");
qmlRegisterType<QDeclarativeScaleGrid>("Qt", 4, 7, "ScaleGrid");
} }
QString QtQuickPlugin::pluginName() QString QtQuickPlugin::pluginName()
......
TARGET = qtquickplugin TARGET = qtquickplugin
TEMPLATE = lib TEMPLATE = lib
CONFIG += plugin CONFIG += plugin meegotouch
QT += script \ QT += script \
declarative declarative
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment