diff src/gui/dialog/information.cpp @ 62:4c6dd5999b39

*: update 1. updated animia 2. use widestrings for filesystem on Windows
author Paper <mrpapersonic@gmail.com>
date Sun, 01 Oct 2023 06:16:06 -0400
parents 75c804f713b2
children 3d2decf093bb
line wrap: on
line diff
--- a/src/gui/dialog/information.cpp	Fri Sep 29 15:52:31 2023 -0400
+++ b/src/gui/dialog/information.cpp	Sun Oct 01 06:16:06 2023 -0400
@@ -143,7 +143,7 @@
 		subsection->setFixedWidth(LAYOUT_ITEM_WIDTH); \
 		subsection->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Preferred); \
 		subsection->layout()->setSpacing(LAYOUT_VERT_SPACING); \
-		subsection->layout()->setMargin(0); \
+		subsection->layout()->setContentsMargins(0, 0, 0, 0); \
 		x; \
 		layout->addWidget(subsection); \
 	}
@@ -153,7 +153,7 @@
 		QWidget* section = new QWidget(a); \
 		QHBoxLayout* layout = new QHBoxLayout(section); \
 		layout->setSpacing(LAYOUT_HORIZ_SPACING); \
-		layout->setMargin(0); \
+		layout->setContentsMargins(0, 0, 0, 0); \
 		x; \
 		layout->addStretch(); \
 		a->layout()->addWidget(section); \
@@ -165,7 +165,7 @@
 		subsection->setLayout(new QVBoxLayout); \
 		subsection->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Preferred); \
 		subsection->layout()->setSpacing(LAYOUT_VERT_SPACING); \
-		subsection->layout()->setMargin(0); \
+		subsection->layout()->setContentsMargins(0, 0, 0, 0); \
 		x; \
 		layout->addWidget(subsection); \
 	}
@@ -175,7 +175,7 @@
 		QWidget* section = new QWidget(a); \
 		QHBoxLayout* layout = new QHBoxLayout(section); \
 		layout->setSpacing(LAYOUT_HORIZ_SPACING); \
-		layout->setMargin(0); \
+		layout->setContentsMargins(0, 0, 0, 0); \
 		x; \
 		a->layout()->addWidget(section); \
 	}
@@ -319,7 +319,7 @@
 	QVBoxLayout* main_layout = new QVBoxLayout;
 	main_layout->addWidget(anime_title);
 	main_layout->addWidget(tabbed_widget);
-	main_layout->setMargin(0);
+	main_layout->setContentsMargins(0, 0, 0, 0);
 	main_widget->setLayout(main_layout);
 
 	QHBoxLayout* layout = new QHBoxLayout;