Make lowest line of Splash image frames transparent to work around scaling issues
The Splash image is scaled. Sometimes, the lowest line is repeated on the top, which caused some weird lines to appear above big splashes (e.g. piano).
This has been done fully automated with a script. Only the alpha channel was changed. The color information is preserved.
#ifndef PREVIEWIMAGEPROVIDER_H
#define PREVIEWIMAGEPROVIDER_H
#include <QPixmap>
#include <QQuickImageProvider>
#include <QSize>
class PreviewImageProvider : public QQuickImageProvider {
public:
PreviewImageProvider();
QPixmap requestPixmap(const QString &id, QSize *size,
const QSize &requestedSize);
void setImage(const QImage &preview);
private:
QPixmap m_px;
};
#endif // PREVIEWIMAGEPROVIDER_H