use QHash<QString, QVariant> instead of Data
don't use extra typedefs in signatures
This commit is contained in:
parent
41b3a17011
commit
efc1264592
@ -190,7 +190,7 @@ void DataEngine::setData(const QString &source, const QString &key, const QVaria
|
||||
d->scheduleSourcesUpdated();
|
||||
}
|
||||
|
||||
void DataEngine::setData(const QString &source, const Data &data)
|
||||
void DataEngine::setData(const QString &source, const QHash<QString, QVariant> &data)
|
||||
{
|
||||
DataContainer *s = d->source(source, false);
|
||||
bool isNew = !s;
|
||||
|
@ -339,7 +339,7 @@ NoAlignment) const;
|
||||
* @param source the name of the data source
|
||||
* @param data the data to add to the source
|
||||
**/
|
||||
void setData(const QString &source, const Data &data);
|
||||
void setData(const QString &source, const QHash<QString, QVariant> &data);
|
||||
|
||||
/**
|
||||
* Removes all the data associated with a data source.
|
||||
|
Loading…
Reference in New Issue
Block a user