Place QLabel with developers info on the QScrollArea
authorunc0rr
Sat, 18 Nov 2006 18:17:03 +0000
changeset 248 aab204fe5061
parent 247 07605d2a2024
child 249 ff85fa029541
Place QLabel with developers info on the QScrollArea
QTfrontend/about.cpp
--- a/QTfrontend/about.cpp	Sat Nov 18 14:47:50 2006 +0000
+++ b/QTfrontend/about.cpp	Sat Nov 18 18:17:03 2006 +0000
@@ -19,6 +19,7 @@
 #include <QGridLayout>
 #include <QSvgWidget>
 #include <QLabel>
+#include <QScrollArea>
 #include "about.h"
 
 About::About(QWidget * parent) :
@@ -42,6 +43,9 @@
 	lbl1->setWordWrap(true);
 	mainLayout->addWidget(lbl1, 0, 1);
 
+	QScrollArea *sa = new QScrollArea(this);
+	sa->setWidgetResizable(true);
+	sa->setFrameStyle(QFrame::NoFrame);
 	QLabel *lbl2 = new QLabel(this);
 
 	lbl2->setOpenExternalLinks(true);
@@ -61,5 +65,6 @@
 			"</p>"
 			);
 	lbl2->setWordWrap(true);
-	mainLayout->addWidget(lbl2, 1, 1);
+	sa->setWidget(lbl2);
+	mainLayout->addWidget(sa, 1, 1);
 }