Connection syntax migration (#637)

This commit is contained in:
Jonas Kvinge
2021-01-26 16:48:04 +01:00
committed by GitHub
parent d57f6303f4
commit bf7c8df353
362 changed files with 2452 additions and 2434 deletions

View File

@@ -44,16 +44,16 @@ class MoodbarItemDelegate : public QItemDelegate {
Q_OBJECT
public:
explicit MoodbarItemDelegate(Application* app, PlaylistView* view, QObject* parent = nullptr);
explicit MoodbarItemDelegate(Application *app, PlaylistView *view, QObject *parent = nullptr);
void paint(QPainter* painter, const QStyleOptionViewItem& option, const QModelIndex& index) const override;
void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &idx) const override;
private slots:
void ReloadSettings();
void DataLoaded(const QUrl& url, MoodbarPipeline* pipeline);
void ColorsLoaded(const QUrl& url, QFuture<ColorVector> future);
void ImageLoaded(const QUrl& url, QFuture<QImage> future);
void DataLoaded(const QUrl &url, MoodbarPipeline *pipeline);
void ColorsLoaded(const QUrl &url, QFuture<ColorVector> future);
void ImageLoaded(const QUrl &url, QFuture<QImage> future);
private:
struct Data {
@@ -77,18 +77,18 @@ class MoodbarItemDelegate : public QItemDelegate {
};
private:
QPixmap PixmapForIndex(const QModelIndex& index, const QSize& size);
void StartLoadingData(const QUrl& url, Data* data);
void StartLoadingColors(const QUrl& url, const QByteArray& bytes, Data* data);
void StartLoadingImage(const QUrl& url, Data* data);
QPixmap PixmapForIndex(const QModelIndex &idx, const QSize &size);
void StartLoadingData(const QUrl &url, Data *data);
void StartLoadingColors(const QUrl &url, const QByteArray &bytes, Data *data);
void StartLoadingImage(const QUrl &url, Data *data);
bool RemoveFromCacheIfIndexesInvalid(const QUrl& url, Data* data);
bool RemoveFromCacheIfIndexesInvalid(const QUrl &url, Data *data);
void ReloadAllColors();
private:
Application* app_;
PlaylistView* view_;
Application *app_;
PlaylistView *view_;
QCache<QUrl, Data> data_;
MoodbarRenderer::MoodbarStyle style_;