Mercurial > projects > qtd
diff examples/draganddrop/dropsite/droparea.d @ 22:49d696a4e5f3
QVariant to QPixmap conversion
author | eldar |
---|---|
date | Fri, 15 May 2009 02:44:15 +0000 |
parents | e747af2e6b46 |
children | 79d648fdee0f |
line wrap: on
line diff
--- a/examples/draganddrop/dropsite/droparea.d Fri May 15 02:09:27 2009 +0000 +++ b/examples/draganddrop/dropsite/droparea.d Fri May 15 02:44:15 2009 +0000 @@ -98,7 +98,7 @@ QMimeData mimeData = event.mimeData(); if (mimeData.hasImage()) { - //TODO setPixmap(qvariant_cast<QPixmap>(mimeData.imageData()); + setPixmap(new QPixmap(mimeData.imageData)); } else if (mimeData.hasHtml()) { setText(mimeData.html()); setTextFormat(Qt.RichText);