diff src/gui/dialog/about.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 3d2decf093bb
children 5ccb99bfa605
line wrap: on
line diff
--- a/src/gui/dialog/about.cpp	Sun Oct 01 06:39:47 2023 -0400
+++ b/src/gui/dialog/about.cpp	Sun Oct 01 23:15:43 2023 -0400
@@ -62,7 +62,7 @@
 AboutWindow::AboutWindow(QWidget* parent) : QDialog(parent) {
 	setWindowTitle(tr("About Minori"));
 	setWindowFlags(Qt::Dialog | Qt::CustomizeWindowHint | Qt::WindowTitleHint | Qt::WindowCloseButtonHint);
-	setLayout(new QHBoxLayout);
+	QHBoxLayout* layout = new QHBoxLayout(this);
 
 	QPalette pal = QPalette();
 	pal.setColor(QPalette::Window, pal.color(QPalette::Base));
@@ -127,5 +127,5 @@
 	cursor.insertText(tr("Links:"));
 	UNSET_FONT_BOLD(font, format, cursor);
 	cursor.insertBlock();
-	layout()->addWidget(paragraph);
+	layout->addWidget(paragraph);
 }