summary refs log tree commit diff
path: root/src/ColorImageProvider.h
diff options
context:
space:
mode:
authorJoseph Donofry <joedonofry@gmail.com>2019-11-29 14:51:24 -0500
committerGitHub <noreply@github.com>2019-11-29 14:51:24 -0500
commit4047a90302b2b927725f0a210e0825a8c8073f30 (patch)
tree69f901b0b4f51eee918d4d7d1822325090cd9485 /src/ColorImageProvider.h
parentUpdate travis to xcode9.2 for macos (diff)
parentShow encryption enabled and use a non zero size for zero size vide (diff)
downloadnheko-4047a90302b2b927725f0a210e0825a8c8073f30.tar.xz
Merge pull request #91 from Nheko-Reborn/qml-timeline
Qml timeline
Diffstat (limited to 'src/ColorImageProvider.h')
-rw-r--r--src/ColorImageProvider.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/ColorImageProvider.h b/src/ColorImageProvider.h
new file mode 100644

index 00000000..21f36c12 --- /dev/null +++ b/src/ColorImageProvider.h
@@ -0,0 +1,11 @@ +#include <QQuickImageProvider> + +class ColorImageProvider : public QQuickImageProvider +{ +public: + ColorImageProvider() + : QQuickImageProvider(QQuickImageProvider::Pixmap) + {} + + QPixmap requestPixmap(const QString &id, QSize *size, const QSize &requestedSize) override; +};