diff src/gui/widgets/text.cc @ 202:71832ffe425a

animia: re-add kvm fd source this is all being merged from my wildly out-of-date laptop. SORRY! in other news, I edited the CI file to install the wayland client as well, so the linux CI build might finally get wayland stuff.
author Paper <paper@paper.us.eu.org>
date Tue, 02 Jan 2024 06:05:06 -0500
parents 01d259b9c89f
children 4d461ef7d424
line wrap: on
line diff
--- a/src/gui/widgets/text.cc	Sun Nov 19 19:13:28 2023 -0500
+++ b/src/gui/widgets/text.cc	Tue Jan 02 06:05:06 2024 -0500
@@ -14,9 +14,12 @@
 
 	static_text_title = new QLabel(title, this);
 	static_text_title->setTextFormat(Qt::PlainText);
-	QFont font = static_text_title->font();
-	font.setWeight(QFont::Bold);
-	static_text_title->setFont(font);
+
+	{
+		QFont font = static_text_title->font();
+		font.setWeight(QFont::Bold);
+		static_text_title->setFont(font);
+	}
 
 	static_text_line = new QFrame(this);
 	static_text_line->setFrameShape(QFrame::HLine);