summaryrefslogtreecommitdiffstats
path: root/Source/WebCore/platform/qt/DragImageQt.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/platform/qt/DragImageQt.cpp')
-rw-r--r--Source/WebCore/platform/qt/DragImageQt.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/Source/WebCore/platform/qt/DragImageQt.cpp b/Source/WebCore/platform/qt/DragImageQt.cpp
index e93ac7089..0e7ce0465 100644
--- a/Source/WebCore/platform/qt/DragImageQt.cpp
+++ b/Source/WebCore/platform/qt/DragImageQt.cpp
@@ -29,8 +29,6 @@
#include "CachedImage.h"
#include "Image.h"
-#include <QImage>
-
namespace WebCore {
IntSize dragImageSize(DragImageRef image)
@@ -68,7 +66,7 @@ DragImageRef createDragImageFromImage(Image* image, RespectImageOrientationEnum)
if (!image || !image->nativeImageForCurrentFrame())
return 0;
- return new QImage(*image->nativeImageForCurrentFrame());
+ return new QPixmap(*image->nativeImageForCurrentFrame());
}
DragImageRef createDragImageIconForCachedImage(CachedImage*)