summaryrefslogtreecommitdiffstats
path: root/src/declarative/fx/qfximage_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/declarative/fx/qfximage_p.h')
-rw-r--r--src/declarative/fx/qfximage_p.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/declarative/fx/qfximage_p.h b/src/declarative/fx/qfximage_p.h
index e4a3a90..7792dbf 100644
--- a/src/declarative/fx/qfximage_p.h
+++ b/src/declarative/fx/qfximage_p.h
@@ -55,6 +55,8 @@
#include "qfxitem_p.h"
+#include <QtCore/qpointer.h>
+
QT_BEGIN_NAMESPACE
class QSvgRenderer;
@@ -69,11 +71,12 @@ class QFxImagePrivate : public QFxItemPrivate
public:
QFxImagePrivate()
: scaleGrid(0), tiled(false), smooth(false), opaque(false),
- status(QFxImage::Idle), sciReply(0), progress(0.0)
+ preserveAspect(false), status(QFxImage::Idle), sciReply(0),
+ progress(0.0)
{
}
- ~QFxImagePrivate()
+ ~QFxImagePrivate()
{
delete scaleGrid;
}
@@ -82,16 +85,17 @@ public:
QFxScaleGrid *getScaleGrid()
{
- if (!scaleGrid)
+ if (!scaleGrid)
scaleGrid = new QFxScaleGrid;
return scaleGrid;
}
-
+
QFxScaleGrid *scaleGrid;
QPixmap pix;
bool tiled : 1;
bool smooth : 1;
bool opaque : 1;
+ bool preserveAspect : 1;
QFxImage::Status status;
QUrl url;