diff src/gui/widgets/text.cpp @ 77:6f7385bd334c

*: update formatted all source files, no more subclassing QThread... many other changes :)
author Paper <mrpapersonic@gmail.com>
date Fri, 06 Oct 2023 06:18:53 -0400
parents 3364fadc8a36
children
line wrap: on
line diff
--- a/src/gui/widgets/text.cpp	Wed Oct 04 01:46:33 2023 -0400
+++ b/src/gui/widgets/text.cpp	Fri Oct 06 06:18:53 2023 -0400
@@ -1,5 +1,6 @@
 #include "gui/widgets/text.h"
 #include "core/session.h"
+#include <QDebug>
 #include <QFrame>
 #include <QLabel>
 #include <QTextBlock>
@@ -16,8 +17,6 @@
 	QFont font = static_text_title->font();
 	font.setWeight(QFont::Bold);
 	static_text_title->setFont(font);
-	/* FIXME: is this needed? */
-	static_text_title->setFixedHeight(16);
 
 	static_text_line = new QFrame(this);
 	static_text_line->setFrameShape(QFrame::HLine);
@@ -76,6 +75,7 @@
 Line::Line(QString text, QWidget* parent) : QLineEdit(text, parent) {
 	setFrame(false);
 	setReadOnly(true);
+	setCursorPosition(0); /* displays left text first */
 
 	QPalette pal;
 	pal.setColor(QPalette::Window, Qt::transparent);