summaryrefslogtreecommitdiffstats
path: root/examples/draganddrop/puzzle/pieceslist.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/draganddrop/puzzle/pieceslist.cpp')
-rw-r--r--examples/draganddrop/puzzle/pieceslist.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/draganddrop/puzzle/pieceslist.cpp b/examples/draganddrop/puzzle/pieceslist.cpp
index 77e8723..6e82145 100644
--- a/examples/draganddrop/puzzle/pieceslist.cpp
+++ b/examples/draganddrop/puzzle/pieceslist.cpp
@@ -103,7 +103,7 @@ void PiecesList::startDrag(Qt::DropActions /*supportedActions*/)
QByteArray itemData;
QDataStream dataStream(&itemData, QIODevice::WriteOnly);
- QPixmap pixmap = qVariantValue<QPixmap>(item->data(Qt::UserRole));
+ QPixmap pixmap = qvariant_cast<QPixmap>(item->data(Qt::UserRole));
QPoint location = item->data(Qt::UserRole+1).toPoint();
dataStream << pixmap << location;