More code fixes to mainwindow

This commit is contained in:
Jonas Kvinge
2020-02-22 00:09:45 +01:00
parent 3a4107d903
commit 8970e46bce
2 changed files with 101 additions and 106 deletions

View File

@@ -113,7 +113,7 @@ class MainWindow : public QMainWindow, public PlatformInterface {
Startup_AlwaysHide = 3,
};
void SetHiddenInTray(bool hidden);
void SetHiddenInTray(const bool hidden);
void CommandlineOptionsReceived(const CommandlineOptions& options);
protected:
@@ -182,7 +182,7 @@ class MainWindow : public QMainWindow, public PlatformInterface {
void StopAfterCurrent();
void SongChanged(const Song& song);
void VolumeChanged(int volume);
void VolumeChanged(const int volume);
void CopyFilesToCollection(const QList<QUrl>& urls);
void MoveFilesToCollection(const QList<QUrl>& urls);
@@ -192,14 +192,14 @@ class MainWindow : public QMainWindow, public PlatformInterface {
void AddToPlaylist(QMimeData *data);
void AddToPlaylist(QAction *action);
void VolumeWheelEvent(int delta);
void VolumeWheelEvent(const int delta);
void ToggleShowHide();
void Seeked(qlonglong microseconds);
void Seeked(const qlonglong microseconds);
void UpdateTrackPosition();
void UpdateTrackSliderPosition();
void TaskCountChanged(int count);
void TaskCountChanged(const int count);
void ShowCollectionConfig();
void ReloadSettings();
@@ -215,7 +215,7 @@ class MainWindow : public QMainWindow, public PlatformInterface {
void CheckForUpdates();
void PlayingWidgetPositionChanged(bool above_status_bar);
void PlayingWidgetPositionChanged(const bool above_status_bar);
void SongSaveComplete(TagReaderReply *reply, const QPersistentModelIndex& index);
@@ -240,7 +240,7 @@ class MainWindow : public QMainWindow, public PlatformInterface {
void Exit();
void DoExit();
void HandleNotificationPreview(OSD::Behaviour type, QString line1, QString line2);
void HandleNotificationPreview(const OSD::Behaviour type, QString line1, QString line2);
void ShowConsole();
@@ -253,9 +253,9 @@ class MainWindow : public QMainWindow, public PlatformInterface {
void SearchCoverAutomatically();
void AlbumCoverLoaded(const Song &song, const QUrl &cover_url, const QImage &image);
void ScrobblingEnabledChanged(bool value);
void ScrobbleButtonVisibilityChanged(bool value);
void LoveButtonVisibilityChanged(bool value);
void ScrobblingEnabledChanged(const bool value);
void ScrobbleButtonVisibilityChanged(const bool value);
void LoveButtonVisibilityChanged(const bool value);
void Love();
void ExitFinished();
@@ -270,11 +270,11 @@ class MainWindow : public QMainWindow, public PlatformInterface {
void CheckFullRescanRevisions();
// creates the icon by painting the full one depending on the current position
QPixmap CreateOverlayedIcon(int position, int scrobble_point);
QPixmap CreateOverlayedIcon(const int position, const int scrobble_point);
void GetCoverAutomatically();
void SetToggleScrobblingIcon(bool value);
void SetToggleScrobblingIcon(const bool value);
private:
Ui_MainWindow *ui_;