From 8f7e29f5034b64372b6849c6d0dcf9057fc590dc Mon Sep 17 00:00:00 2001 From: Jonas Kvinge Date: Sat, 23 Nov 2024 10:56:29 +0100 Subject: [PATCH] PlaylistView: Use constants --- src/playlist/playlistview.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/playlist/playlistview.cpp b/src/playlist/playlistview.cpp index 88c845bc2..3d668371d 100644 --- a/src/playlist/playlistview.cpp +++ b/src/playlist/playlistview.cpp @@ -1294,9 +1294,9 @@ void PlaylistView::SaveSettings() { Settings s; s.beginGroup(PlaylistSettings::kSettingsGroup); - s.setValue("state_version", header_state_version_); - s.setValue("state", header_->SaveState()); - s.setValue("column_alignments", QVariant::fromValue(column_alignment_)); + s.setValue(PlaylistSettings::kStateVersion, header_state_version_); + s.setValue(PlaylistSettings::kState, header_->SaveState()); + s.setValue(PlaylistSettings::kColumnAlignments, QVariant::fromValue(column_alignment_)); s.setValue(PlaylistSettings::kRatingLocked, rating_locked_); s.endGroup();