Make static
This commit is contained in:
parent
cb8022c55d
commit
f5002cae36
|
@ -848,7 +848,7 @@ QString CollectionModel::AlbumIconPixmapCacheKey(const QModelIndex &idx) const {
|
|||
|
||||
}
|
||||
|
||||
QUrl CollectionModel::AlbumIconPixmapDiskCacheKey(const QString &cache_key) const {
|
||||
QUrl CollectionModel::AlbumIconPixmapDiskCacheKey(const QString &cache_key) {
|
||||
|
||||
return QUrl(QString::fromLatin1(QUrl::toPercentEncoding(cache_key)));
|
||||
|
||||
|
|
|
@ -247,7 +247,7 @@ class CollectionModel : public SimpleTreeModel<CollectionItem> {
|
|||
// Helpers
|
||||
static bool IsCompilationArtistNode(const CollectionItem *node) { return node == node->parent->compilation_artist_node_; }
|
||||
QString AlbumIconPixmapCacheKey(const QModelIndex &idx) const;
|
||||
QUrl AlbumIconPixmapDiskCacheKey(const QString &cache_key) const;
|
||||
static QUrl AlbumIconPixmapDiskCacheKey(const QString &cache_key);
|
||||
QVariant AlbumIcon(const QModelIndex &idx);
|
||||
void ClearItemPixmapCache(CollectionItem *item);
|
||||
bool CompareItems(const CollectionItem *a, const CollectionItem *b) const;
|
||||
|
|
|
@ -222,7 +222,7 @@ QUrl DeviceLister::MakeUrlFromLocalPath(const QString &path) const {
|
|||
|
||||
}
|
||||
|
||||
bool DeviceLister::IsIpod(const QString &path) const {
|
||||
bool DeviceLister::IsIpod(const QString &path) {
|
||||
return QFile::exists(path + QStringLiteral("/iTunes_Control")) ||
|
||||
QFile::exists(path + QStringLiteral("/iPod_Control")) ||
|
||||
QFile::exists(path + QStringLiteral("/iTunes/iTunes_Control"));
|
||||
|
|
|
@ -91,10 +91,10 @@ class DeviceLister : public QObject {
|
|||
protected:
|
||||
virtual bool Init() = 0;
|
||||
QUrl MakeUrlFromLocalPath(const QString &path) const;
|
||||
bool IsIpod(const QString &path) const;
|
||||
static bool IsIpod(const QString &path);
|
||||
|
||||
QVariantList GuessIconForPath(const QString &path);
|
||||
QVariantList GuessIconForModel(const QString &vendor, const QString &model);
|
||||
static QVariantList GuessIconForModel(const QString &vendor, const QString &model);
|
||||
|
||||
protected:
|
||||
QThread *thread_;
|
||||
|
|
|
@ -40,7 +40,7 @@ class AzLyricsComLyricsProvider : public HtmlLyricsProvider {
|
|||
QUrl Url(const LyricsSearchRequest &request) override;
|
||||
|
||||
private:
|
||||
QString StringFixup(const QString &text);
|
||||
static QString StringFixup(const QString &text);
|
||||
};
|
||||
|
||||
#endif // AZLYRICSCOMLYRICSPROVIDER_H
|
||||
|
|
|
@ -40,7 +40,7 @@ class ElyricsNetLyricsProvider : public HtmlLyricsProvider {
|
|||
QUrl Url(const LyricsSearchRequest &request) override;
|
||||
|
||||
private:
|
||||
QString StringFixup(const QString &text);
|
||||
static QString StringFixup(const QString &text);
|
||||
};
|
||||
|
||||
#endif // ELYRICSNETLYRICSPROVIDER_H
|
||||
|
|
|
@ -40,7 +40,7 @@ class LetrasLyricsProvider : public HtmlLyricsProvider {
|
|||
QUrl Url(const LyricsSearchRequest &request) override;
|
||||
|
||||
private:
|
||||
QString StringFixup(const QString &text);
|
||||
static QString StringFixup(const QString &text);
|
||||
};
|
||||
|
||||
#endif // LETRASLYRICSPROVIDER_H
|
||||
|
|
|
@ -40,7 +40,7 @@ class SongLyricsComLyricsProvider : public HtmlLyricsProvider {
|
|||
QUrl Url(const LyricsSearchRequest &request) override;
|
||||
|
||||
private:
|
||||
QString StringFixup(QString text);
|
||||
static QString StringFixup(QString text);
|
||||
};
|
||||
|
||||
#endif // SONGLYRICSCOMLYRICSPROVIDER_H
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
class MusixmatchProvider {
|
||||
|
||||
protected:
|
||||
QString StringFixup(QString text);
|
||||
static QString StringFixup(QString text);
|
||||
|
||||
protected:
|
||||
static const char *kApiUrl;
|
||||
|
|
Loading…
Reference in New Issue