Add a sampleUrl function to get back the sample url of an image
The sample url is a mid-scaled version of the image, used for previewing.
This commit is contained in:
parent
4cf88931b5
commit
a11bc79309
2 changed files with 17 additions and 4 deletions
|
@ -72,6 +72,7 @@ class DanbooruPost : public QObject
|
|||
Q_PROPERTY(QUrl fileUrl READ fileUrl)
|
||||
Q_PROPERTY(QSet<QString> tags READ tags)
|
||||
Q_PROPERTY(QUrl thumbnailUrl READ thumbnailUrl)
|
||||
Q_PROPERTY(QUrl sampleUrl READ sampleUrl)
|
||||
|
||||
public:
|
||||
|
||||
|
@ -103,6 +104,7 @@ private:
|
|||
|
||||
QUrl m_url;
|
||||
QUrl m_thumbnailUrl;
|
||||
QUrl m_sampleUrl;
|
||||
QSet<QString> m_tags;
|
||||
DanbooruPost::Rating m_rating;
|
||||
|
||||
|
@ -181,6 +183,8 @@ public:
|
|||
**/
|
||||
const QUrl fileUrl() const;
|
||||
|
||||
const QUrl sampleUrl() const;
|
||||
|
||||
/**
|
||||
* @return The tags associated to the post.
|
||||
**/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue