Make static
This commit is contained in:
@@ -160,7 +160,7 @@ class AlbumCoverChoiceController : public QWidget {
|
||||
void AutomaticCoverSearchDone();
|
||||
|
||||
private:
|
||||
QString GetInitialPathForFileDialog(const Song &song, const QString &filename);
|
||||
static QString GetInitialPathForFileDialog(const Song &song, const QString &filename);
|
||||
|
||||
static bool IsKnownImageExtension(const QString &suffix);
|
||||
static QSet<QString> *sImageExtensions;
|
||||
|
||||
@@ -371,7 +371,7 @@ void AlbumCoverFetcherSearch::ProviderCoverFetchFinished(QNetworkReply *reply) {
|
||||
|
||||
}
|
||||
|
||||
float AlbumCoverFetcherSearch::ScoreImage(const QSize size) const {
|
||||
float AlbumCoverFetcherSearch::ScoreImage(const QSize size) {
|
||||
|
||||
if (size.width() == 0 || size.height() == 0) return 0.0;
|
||||
|
||||
|
||||
@@ -81,7 +81,7 @@ class AlbumCoverFetcherSearch : public QObject {
|
||||
void AllProvidersFinished();
|
||||
|
||||
void FetchMoreImages();
|
||||
float ScoreImage(const QSize size) const;
|
||||
static float ScoreImage(const QSize size) ;
|
||||
void SendBestImage();
|
||||
|
||||
static bool ProviderCompareOrder(CoverProvider *a, CoverProvider *b);
|
||||
|
||||
@@ -67,7 +67,7 @@ class AlbumCoverLoader : public QObject {
|
||||
|
||||
static QString AlbumCoverFilename(QString artist, QString album, const QString &extension);
|
||||
|
||||
QString CoverFilenameFromSource(const Song::Source source, const QUrl &cover_url, const QString &artist, const QString &album, const QString &album_id, const QString &extension);
|
||||
static QString CoverFilenameFromSource(const Song::Source source, const QUrl &cover_url, const QString &artist, const QString &album, const QString &album_id, const QString &extension);
|
||||
QString CoverFilenameFromVariable(const QString &artist, const QString &album, const QString &extension = QString());
|
||||
QString CoverFilePath(const Song &song, const QString &album_dir, const QUrl &cover_url, const QString &extension = QString());
|
||||
|
||||
|
||||
@@ -133,7 +133,7 @@ class AlbumCoverManager : public QMainWindow {
|
||||
Song GetFirstSelectedAsSong();
|
||||
|
||||
Song ItemAsSong(QListWidgetItem *item) { return ItemAsSong(static_cast<AlbumItem*>(item)); }
|
||||
Song ItemAsSong(AlbumItem *item);
|
||||
static Song ItemAsSong(AlbumItem *item);
|
||||
|
||||
void UpdateStatusText();
|
||||
bool ShouldHide(const AlbumItem &item, const QString &filter, HideCovers hide) const;
|
||||
|
||||
@@ -57,7 +57,7 @@ class LastFmCoverProvider : public JsonCoverProvider {
|
||||
};
|
||||
|
||||
QByteArray GetReplyData(QNetworkReply *reply);
|
||||
LastFmImageSize ImageSizeFromString(const QString &size);
|
||||
static LastFmImageSize ImageSizeFromString(const QString &size);
|
||||
void Error(const QString &error, const QVariant &debug = QVariant()) override;
|
||||
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user