FrameSvgItem becomes a QQuickPaintedItem, it now renders
This commit is contained in:
parent
a65c52fd16
commit
0d26b04d47
@ -43,6 +43,8 @@
|
|||||||
// #include "tooltip.h"
|
// #include "tooltip.h"
|
||||||
// #include "dataenginebindings_p.h"
|
// #include "dataenginebindings_p.h"
|
||||||
|
|
||||||
|
#include <QDebug>
|
||||||
|
|
||||||
void CoreBindingsPlugin::initializeEngine(QQmlEngine *engine, const char *uri)
|
void CoreBindingsPlugin::initializeEngine(QQmlEngine *engine, const char *uri)
|
||||||
{
|
{
|
||||||
QQmlExtensionPlugin::initializeEngine(engine, uri);
|
QQmlExtensionPlugin::initializeEngine(engine, uri);
|
||||||
@ -65,6 +67,7 @@ void CoreBindingsPlugin::initializeEngine(QQmlEngine *engine, const char *uri)
|
|||||||
|
|
||||||
registerDataEngineMetaTypes(scriptEngine);
|
registerDataEngineMetaTypes(scriptEngine);
|
||||||
*/
|
*/
|
||||||
|
qDebug() << "====> org.kde.plasma.core loaded.";
|
||||||
}
|
}
|
||||||
|
|
||||||
void CoreBindingsPlugin::registerTypes(const char *uri)
|
void CoreBindingsPlugin::registerTypes(const char *uri)
|
||||||
@ -100,6 +103,7 @@ void CoreBindingsPlugin::registerTypes(const char *uri)
|
|||||||
|
|
||||||
/*qmlRegisterInterface<Plasma::DataSource>("DataSource");
|
/*qmlRegisterInterface<Plasma::DataSource>("DataSource");
|
||||||
qRegisterMetaType<Plasma::DataSource*>("DataSource");*/
|
qRegisterMetaType<Plasma::DataSource*>("DataSource");*/
|
||||||
|
qDebug() << "====> org.kde.plasma.core registered.";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -61,7 +61,7 @@ void FrameSvgItemMargins::update()
|
|||||||
}
|
}
|
||||||
|
|
||||||
FrameSvgItem::FrameSvgItem(QQuickItem *parent)
|
FrameSvgItem::FrameSvgItem(QQuickItem *parent)
|
||||||
: QQuickItem(parent)
|
: QQuickPaintedItem(parent)
|
||||||
{
|
{
|
||||||
m_frameSvg = new Plasma::FrameSvg(this);
|
m_frameSvg = new Plasma::FrameSvg(this);
|
||||||
m_margins = new FrameSvgItemMargins(m_frameSvg, this);
|
m_margins = new FrameSvgItemMargins(m_frameSvg, this);
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
#ifndef FRAMESVGITEM_P
|
#ifndef FRAMESVGITEM_P
|
||||||
#define FRAMESVGITEM_P
|
#define FRAMESVGITEM_P
|
||||||
|
|
||||||
#include <QQuickItem>
|
#include <QQuickPaintedItem>
|
||||||
|
|
||||||
#include <Plasma/FrameSvg>
|
#include <Plasma/FrameSvg>
|
||||||
|
|
||||||
@ -69,7 +69,7 @@ private:
|
|||||||
FrameSvg *m_frameSvg;
|
FrameSvg *m_frameSvg;
|
||||||
};
|
};
|
||||||
|
|
||||||
class FrameSvgItem : public QQuickItem
|
class FrameSvgItem : public QQuickPaintedItem
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user