support setData

This commit is contained in:
Marco Martin 2011-12-26 16:28:58 +01:00
parent 4dd49f2142
commit dba4608391
2 changed files with 7 additions and 0 deletions

View File

@ -118,6 +118,11 @@ void DeclarativeMimeData::setColor(const QColor &color)
} }
} }
void DeclarativeMimeData::setData(const QString &mimeType, const QString &data)
{
QMimeData::setData(mimeType, data.toLatin1());
}
/*! /*!
\qmlproperty item MimeData::source \qmlproperty item MimeData::source

View File

@ -54,6 +54,8 @@ public:
QColor color() const; QColor color() const;
void setColor(const QColor &color); void setColor(const QColor &color);
Q_INVOKABLE void setData(const QString &mimeType, const QString &data);
QDeclarativeItem* source() const; QDeclarativeItem* source() const;
void setSource(QDeclarativeItem* source); void setSource(QDeclarativeItem* source);