Allow sending tags as well as the selected URL

This required two changes:

1. in the QML view, the signal has been changed to url, var
2. the model directly outputs a QStringList for ease of use
This commit is contained in:
Luca Beltrame 2015-02-24 00:15:57 +01:00
parent 61466d9ce8
commit 4955cc93bd
2 changed files with 4 additions and 5 deletions

View file

@ -108,9 +108,8 @@ QVariant DanbooruPostModel::data(const QModelIndex &index, int role) const
return post->rating();
case TagRole:
{
QVariant variant;
variant.setValue(post->tags());
return variant;
QStringList tagList = post->tags().toList();
return tagList;
}
default:
return QVariant();