fix QMimeData copy, setData is hidden and the real setData will not be used.

This commit is contained in:
Weng Xuetian 2012-12-22 21:43:01 -05:00
parent db1d3d37e9
commit ffabd94938

View File

@ -48,7 +48,7 @@ DeclarativeMimeData::DeclarativeMimeData(const QMimeData* copy)
{ {
// Copy the standard MIME data // Copy the standard MIME data
foreach(QString format, copy->formats()) { foreach(QString format, copy->formats()) {
this->setData(format, copy->data(format)); QMimeData::setData(format, copy->data(format));
} }
// If the object we are copying actually is a DeclarativeMimeData, copy our extended properties as well // If the object we are copying actually is a DeclarativeMimeData, copy our extended properties as well