1
0
Fork 0
mirror of https://github.com/HenkKalkwater/harbour-sailfin.git synced 2024-11-21 16:55:17 +00:00

Make film posters 9:16 again

This was broken due to the collectionType property of BaseItemDTO
not being exposed to QML.

Also update the changelog
This commit is contained in:
Chris Josten 2024-01-02 16:01:45 +01:00
parent bb45637d0b
commit 5cd0b10b73
2 changed files with 6 additions and 1 deletions

View file

@ -163,6 +163,7 @@ public:
Q_PROPERTY(double primaryImageAspectRatio READ primaryImageAspectRatio NOTIFY primaryImageAspectRatioChanged)
Q_PROPERTY(QStringList artists READ artists NOTIFY artistsChanged)
Q_PROPERTY(QList<QObject *> artistItems READ artistItems NOTIFY artistItemsChanged);
Q_PROPERTY(QString collectionType READ collectionType NOTIFY collectionTypeChanged)
// Why is this a QJsonObject? Well, because I couldn't be bothered to implement the deserialisations of
// a QHash at the moment.
Q_PROPERTY(QJsonObject imageTags READ imageTags NOTIFY imageTagsChanged)
@ -219,6 +220,7 @@ public:
double primaryImageAspectRatio() const { return m_data->primaryImageAspectRatio().value_or(1.0); }
QStringList artists() const { return m_data->artists(); }
QList<QObject *> artistItems() const{ return this->m_artistItems; }
QString collectionType() const { return this->m_data->collectionType(); }
QJsonObject imageTags() const { return m_data->imageTags(); }
QStringList backdropImageTags() const { return m_data->backdropImageTags(); }
QJsonObject imageBlurHashes() const { return m_data->imageBlurHashes(); }
@ -292,6 +294,7 @@ signals:
void primaryImageAspectRatioChanged(double newPrimaryImageAspectRatio);
void artistsChanged(const QStringList &newArtists);
void artistItemsChanged();
void collectionTypeChanged();
void imageTagsChanged();
void backdropImageTagsChanged();
void imageBlurHashesChanged();

View file

@ -22,7 +22,9 @@
- Navigation to artists of a song added when long-pressing a song or pressing the name
on the now playing screen.
- Bug fixes
- The album overview page should now behave correclty with an image with a non-square image
- The album overview page should now behave correctly with a non-square image
- Collections with films and series should now show the items in a 16:9 aspect ratio again
- Large lists with more than 100 items should no longer infinitly repeat the first 100 items
* Wed Jul 20 2022 Chris Josten <chris@netsoj.nl> 0.4.2-1
- Bugfixes: