~verzegnassi-stefano/ubuntu-docviewer-app/reboot-lok-zoom-leak

« back to all changes in this revision

Viewing changes to src/plugin/libreofficetoolkit-qml-plugin/lopartsimageprovider.h

  • Committer: Tarmac
  • Author(s): Roman Shchekin, Stefano Verzegnassi
  • Date: 2015-10-11 19:51:03 UTC
  • mfrom: (172.4.9 reboot-qsg-impress-support)
  • Revision ID: tarmac-20151011195103-st3zu274xl8v8o7h
RenderEngine - impress support.

Approved by Ubuntu Phone Apps Jenkins Bot, Stefano Verzegnassi.

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
#define LOPARTSIMAGEPROVIDER_H
20
20
 
21
21
#include <QQuickImageProvider>
 
22
#include <QSharedPointer>
 
23
#include <QHash>
 
24
#include <QDebug>
22
25
 
23
26
class LODocument;
24
27
 
25
28
class LOPartsImageProvider : public QQuickImageProvider
26
29
{
27
30
public:
28
 
    LOPartsImageProvider(LODocument *document);
 
31
    LOPartsImageProvider(const QSharedPointer<LODocument>& d);
29
32
    QImage requestImage(const QString & id, QSize * size, const QSize & requestedSize);
30
33
 
 
34
    QHash<int, QImage> m_images;
 
35
 
31
36
private:
32
 
    LODocument *m_document;
 
37
    QSharedPointer<LODocument> m_document;
33
38
};
34
39
 
35
40
#endif // LOPARTSIMAGEPROVIDER_H