src/plugins/imageformats/jpeg/qjpeghandler.h
changeset 18 2f34d5167611
parent 0 1918ee327afb
child 30 5dc02b23752f
equal deleted inserted replaced
3:41300fa6a67c 18:2f34d5167611
     1 /****************************************************************************
     1 /****************************************************************************
     2 **
     2 **
     3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
     3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
     4 ** All rights reserved.
     4 ** All rights reserved.
     5 ** Contact: Nokia Corporation (qt-info@nokia.com)
     5 ** Contact: Nokia Corporation (qt-info@nokia.com)
     6 **
     6 **
     7 ** This file is part of the plugins of the Qt Toolkit.
     7 ** This file is part of the plugins of the Qt Toolkit.
     8 **
     8 **
    42 #ifndef QJPEGHANDLER_H
    42 #ifndef QJPEGHANDLER_H
    43 #define QJPEGHANDLER_H
    43 #define QJPEGHANDLER_H
    44 
    44 
    45 #include <QtGui/qimageiohandler.h>
    45 #include <QtGui/qimageiohandler.h>
    46 #include <QtCore/QSize>
    46 #include <QtCore/QSize>
       
    47 #include <QtCore/QRect>
    47 
    48 
    48 QT_BEGIN_NAMESPACE
    49 QT_BEGIN_NAMESPACE
    49 
    50 
    50 class QJpegHandler : public QImageIOHandler
    51 class QJpegHandler : public QImageIOHandler
    51 {
    52 {
    64     void setOption(ImageOption option, const QVariant &value);
    65     void setOption(ImageOption option, const QVariant &value);
    65     bool supportsOption(ImageOption option) const;
    66     bool supportsOption(ImageOption option) const;
    66 
    67 
    67 private:
    68 private:
    68     int quality;
    69     int quality;
    69     QByteArray parameters;
       
    70     QSize scaledSize;
    70     QSize scaledSize;
       
    71     QRect scaledClipRect;
       
    72     QRect clipRect;
    71 };
    73 };
    72 
    74 
    73 QT_END_NAMESPACE
    75 QT_END_NAMESPACE
    74 
    76 
    75 #endif // QJPEGHANDLER_H
    77 #endif // QJPEGHANDLER_H