diff src/gui/widgets/text.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/widgets/text.cpp	Fri Sep 29 15:52:31 2023 -0400
+++ b/src/gui/widgets/text.cpp	Sun Oct 01 06:16:06 2023 -0400
@@ -28,7 +28,7 @@
 	layout()->addWidget(static_text_title);
 	layout()->addWidget(static_text_line);
 	layout()->setSpacing(0);
-	layout()->setMargin(0);
+	layout()->setContentsMargins(0, 0, 0, 0);
 }
 
 void Header::SetTitle(QString title) {
@@ -50,13 +50,13 @@
 
 	content->layout()->addWidget(paragraph);
 	content->layout()->setSpacing(0);
-	content->layout()->setMargin(0);
+	content->layout()->setContentsMargins(0, 0, 0, 0);
 	content->setContentsMargins(12, 0, 0, 0);
 
 	layout()->addWidget(header);
 	layout()->addWidget(paragraph);
 	layout()->setSpacing(0);
-	layout()->setMargin(0);
+	layout()->setContentsMargins(0, 0, 0, 0);
 }
 
 Header* TextParagraph::GetHeader() {
@@ -93,14 +93,14 @@
 	content_layout->addWidget(labels, 0, Qt::AlignTop);
 	content_layout->addWidget(paragraph, 0, Qt::AlignTop);
 	content_layout->setSpacing(20);
-	content_layout->setMargin(0);
+	content_layout->setContentsMargins(0, 0, 0, 0);
 
 	content->setContentsMargins(12, 0, 0, 0);
 
 	layout()->addWidget(header);
 	layout()->addWidget(content);
 	layout()->setSpacing(0);
-	layout()->setMargin(0);
+	layout()->setContentsMargins(0, 0, 0, 0);
 }
 
 Header* LabelledTextParagraph::GetHeader() {
@@ -127,13 +127,13 @@
 
 	content->layout()->addWidget(paragraph);
 	content->layout()->setSpacing(0);
-	content->layout()->setMargin(0);
+	content->layout()->setContentsMargins(0, 0, 0, 0);
 	content->setContentsMargins(12, 0, 0, 0);
 
 	layout()->addWidget(header);
 	layout()->addWidget(content);
 	layout()->setSpacing(0);
-	layout()->setMargin(0);
+	layout()->setContentsMargins(0, 0, 0, 0);
 }
 
 Header* SelectableTextParagraph::GetHeader() {