Make const
This commit is contained in:
@@ -440,12 +440,12 @@ void InternetCollectionView::FilterReturnPressed() {
|
||||
|
||||
}
|
||||
|
||||
int InternetCollectionView::TotalSongs() {
|
||||
int InternetCollectionView::TotalSongs() const {
|
||||
return total_song_count_;
|
||||
}
|
||||
int InternetCollectionView::TotalArtists() {
|
||||
int InternetCollectionView::TotalArtists() const {
|
||||
return total_artist_count_;
|
||||
}
|
||||
int InternetCollectionView::TotalAlbums() {
|
||||
int InternetCollectionView::TotalAlbums() const {
|
||||
return total_album_count_;
|
||||
}
|
||||
|
||||
@@ -65,9 +65,9 @@ class InternetCollectionView : public AutoExpandingTreeView {
|
||||
void keyboardSearch(const QString &search) override;
|
||||
void scrollTo(const QModelIndex &idx, ScrollHint hint = EnsureVisible) override;
|
||||
|
||||
int TotalSongs();
|
||||
int TotalArtists();
|
||||
int TotalAlbums();
|
||||
int TotalSongs() const;
|
||||
int TotalArtists() const;
|
||||
int TotalAlbums() const;
|
||||
|
||||
public slots:
|
||||
void TotalSongCountUpdated(int count);
|
||||
|
||||
@@ -52,7 +52,7 @@ InternetCollectionViewContainer::InternetCollectionViewContainer(QWidget *parent
|
||||
|
||||
InternetCollectionViewContainer::~InternetCollectionViewContainer() { delete ui_; }
|
||||
|
||||
void InternetCollectionViewContainer::ReloadSettings() {
|
||||
void InternetCollectionViewContainer::ReloadSettings() const {
|
||||
filter()->ReloadSettings();
|
||||
view()->ReloadSettings();
|
||||
}
|
||||
|
||||
@@ -45,7 +45,7 @@ class InternetCollectionViewContainer : public QWidget {
|
||||
explicit InternetCollectionViewContainer(QWidget *parent = nullptr);
|
||||
~InternetCollectionViewContainer() override;
|
||||
|
||||
void ReloadSettings();
|
||||
void ReloadSettings() const;
|
||||
|
||||
QStackedWidget *stacked() const { return ui_->stacked; }
|
||||
QWidget *help_page() const { return ui_->help_page; }
|
||||
|
||||
Reference in New Issue
Block a user