"quick": add example "painted-item"; small revisions;

This commit is contained in:
polos 2017-02-04 12:37:26 +01:00
parent fcbf75464c
commit 0ff3dee53c
20 changed files with 350 additions and 15 deletions

View file

@ -2,6 +2,7 @@
#define LIB_H
#include <QtQml>
#include <QQuickPaintedItem>
#ifdef Q_OS_WIN
#define LIB_EXPORT __declspec(dllexport)
@ -20,6 +21,17 @@ public:
Q_INVOKABLE QVariant apply(QObject*, const QString&, const QVariantList& = QVariantList());
};
class PaintedItem : public QQuickPaintedItem {
Q_OBJECT
public:
PaintedItem(QQuickItem* parent = 0) : QQuickPaintedItem(parent) {}
void paint(QPainter*);
};
QT_END_NAMESPACE
#endif