diff src/gui/dialog/settings.cpp @ 64:fe719c109dbc

*: update 1. add media tracking ability, and it displays info on the `now playing` page 2. the `now playing` page now actually shows something 3. renamed every page class to be more accurate to what it is 4. ...
author Paper <mrpapersonic@gmail.com>
date Sun, 01 Oct 2023 23:15:43 -0400
parents 4c6dd5999b39
children 2417121d894e
line wrap: on
line diff
--- a/src/gui/dialog/settings.cpp	Sun Oct 01 06:39:47 2023 -0400
+++ b/src/gui/dialog/settings.cpp	Sun Oct 01 23:15:43 2023 -0400
@@ -56,9 +56,9 @@
 }
 
 void SettingsDialog::OnOK() {
-	QStackedWidget* stacked = (QStackedWidget*)layout->itemAt(1)->widget();
+	QStackedWidget* stacked = reinterpret_cast<QStackedWidget*>(layout->itemAt(1)->widget());
 	for (int i = 0; i < stacked->count(); i++) {
-		((SettingsPage*)stacked->widget(i))->SaveInfo();
+		reinterpret_cast<SettingsPage*>(stacked->widget(i))->SaveInfo();
 	}
 	QDialog::accept();
 }