mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-03-15 07:29:15 +01:00
OP-1109: port libs/utils - swgImageProvider
This commit is contained in:
parent
cab2d22bbb
commit
9507431cd6
@ -32,7 +32,7 @@
|
||||
|
||||
SvgImageProvider::SvgImageProvider(const QString &basePath) :
|
||||
QObject(),
|
||||
QDeclarativeImageProvider(QDeclarativeImageProvider::Image),
|
||||
QQuickImageProvider(QQuickImageProvider::Image),
|
||||
m_basePath(basePath)
|
||||
{}
|
||||
|
||||
|
@ -29,13 +29,13 @@
|
||||
#define SVGIMAGEPROVIDER_H_
|
||||
|
||||
#include <QObject>
|
||||
#include <QtDeclarative/qdeclarativeimageprovider.h>
|
||||
#include <QQuickImageProvider>
|
||||
#include <QSvgRenderer>
|
||||
#include <QMap>
|
||||
|
||||
#include "utils_global.h"
|
||||
|
||||
class QTCREATOR_UTILS_EXPORT SvgImageProvider : public QObject, public QDeclarativeImageProvider {
|
||||
class QTCREATOR_UTILS_EXPORT SvgImageProvider : public QObject, public QQuickImageProvider {
|
||||
Q_OBJECT
|
||||
public:
|
||||
SvgImageProvider(const QString &basePath);
|
||||
|
@ -6,7 +6,7 @@ QT += gui \
|
||||
xml \
|
||||
svg \
|
||||
opengl \
|
||||
declarative \
|
||||
qml quick \
|
||||
widgets
|
||||
|
||||
DEFINES += QTCREATOR_UTILS_LIB
|
||||
|
Loading…
x
Reference in New Issue
Block a user