Commit a0a7d5c9 authored by Thomas Hartmann's avatar Thomas Hartmann
Browse files

QmlDesigner: register Pen and ScaleGrid in fxplugin

qmlRegisterType<QDeclarativePen>("Qt",4,6,"Pen");
qmlRegisterType<QDeclarativeScaleGrid>("Qt",4,6,"ScaleGrid");

Rectangle and BorderImage work now
parent eb51d339
......@@ -30,9 +30,18 @@
#include "fxplugin.h"
#include <widgetplugin_helper.h>
#include <QtCore/QtPlugin>
#include <private/qdeclarativerectangle_p.h>
#include <private/qdeclarativescalegrid_p_p.h>
namespace QmlDesigner {
FxPlugin::FxPlugin()
{
qmlRegisterType<QDeclarativePen>("Qt",4,6,"Pen");
qmlRegisterType<QDeclarativeScaleGrid>("Qt",4,6,"ScaleGrid");
}
QString FxPlugin::pluginName()
{
return ("FxPlugin");
......
......@@ -44,7 +44,7 @@ class FxPlugin : public QObject, QmlDesigner::IWidgetPlugin
Q_DISABLE_COPY(FxPlugin)
Q_INTERFACES(QmlDesigner::IWidgetPlugin)
public:
FxPlugin() {}
FxPlugin();
~FxPlugin() {}
QString metaInfo();
......
Supports Markdown
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