qmlFrontend/previewimageprovider.h
branchqmlfrontend
changeset 10420 02c573d19224
child 10424 4be6cd55f1cf
equal deleted inserted replaced
10418:091d2c0216c3 10420:02c573d19224
       
     1 #ifndef PREVIEWIMAGEPROVIDER_H
       
     2 #define PREVIEWIMAGEPROVIDER_H
       
     3 
       
     4 #include <QQuickImageProvider>
       
     5 #include <QPixmap>
       
     6 #include <QSize>
       
     7 
       
     8 class PreviewImageProvider : public QQuickImageProvider
       
     9 {
       
    10 public:
       
    11     PreviewImageProvider();
       
    12 
       
    13     QPixmap requestPixmap(const QString &id, QSize *size, const QSize &requestedSize);
       
    14 
       
    15     void setPixmap(const QPixmap & px);
       
    16 
       
    17 private:
       
    18     QPixmap m_px;
       
    19 };
       
    20 
       
    21 #endif // PREVIEWIMAGEPROVIDER_H