Make static

This commit is contained in:
Jonas Kvinge
2021-06-22 13:41:38 +02:00
parent e3ab0c0192
commit 8c2b907ff5
89 changed files with 157 additions and 169 deletions

View File

@@ -103,7 +103,7 @@ void ContextAlbumsModel::AddSongs(const SongList &songs) {
}
QString ContextAlbumsModel::AlbumIconPixmapCacheKey(const QModelIndex &idx) const {
QString ContextAlbumsModel::AlbumIconPixmapCacheKey(const QModelIndex &idx) {
QStringList path;
QModelIndex index_copy(idx);

View File

@@ -107,7 +107,7 @@ class ContextAlbumsModel : public SimpleTreeModel<CollectionItem> {
void PostQuery(CollectionItem *parent, const QueryResult &result, bool signal);
CollectionItem *ItemFromSong(CollectionItem::Type item_type, bool signal, CollectionItem *parent, const Song &s, int container_level);
QString AlbumIconPixmapCacheKey(const QModelIndex &idx) const;
static QString AlbumIconPixmapCacheKey(const QModelIndex &idx) ;
QVariant AlbumIcon(const QModelIndex &idx);
QVariant data(const CollectionItem *item, int role) const;
bool CompareItems(const CollectionItem *a, const CollectionItem *b) const;

View File

@@ -72,7 +72,7 @@ class ContextView : public QWidget {
private:
void AddActions();
void SetLabelText(QLabel *label, int value, const QString &suffix, const QString &def = QString());
static void SetLabelText(QLabel *label, int value, const QString &suffix, const QString &def = QString());
void NoSong();
void SetSong();
void UpdateSong(const Song &song);