[qet] qet/qet: [5149] Improve aboutqet widget and layout

[ Thread Index | Date Index | More lists.tuxfamily.org/qet Archives ]


Revision: 5149
Author:   scorpio810
Date:     2017-12-07 15:41:07 +0100 (Thu, 07 Dec 2017)
Log Message:
-----------
Improve aboutqet widget and layout

Modified Paths:
--------------
    trunk/sources/aboutqet.cpp

Modified: trunk/sources/aboutqet.cpp
===================================================================
--- trunk/sources/aboutqet.cpp	2017-12-06 14:24:10 UTC (rev 5148)
+++ trunk/sources/aboutqet.cpp	2017-12-07 14:41:07 UTC (rev 5149)
@@ -34,8 +34,12 @@
 	QDialog(parent)
 {
 	setWindowTitle(tr("À propos de QElectrotech", "window title"));
+	setFixedSize (600, 600);
+	//setMinimumHeight(600);
+	//setMinimumWidth(600);
 	setModal(true);
 
+
 	QTabWidget *tabs = new QTabWidget();
 	tabs -> addTab(aboutTab(),        tr("À &propos",          "tab title"));
 	tabs -> addTab(authorsTab(),      tr("A&uteurs",           "tab title"));
@@ -50,7 +54,12 @@
 	
 	QVBoxLayout *vlayout = new QVBoxLayout(this);
 	vlayout->addWidget(tabs);
-	vlayout->addWidget(buttons);
+	//vlayout->addWidget(buttons);
+	
+	QScrollArea* scrollArea = new QScrollArea(this);
+		scrollArea->setWidgetResizable(true);
+		scrollArea->setFixedSize (590, 590);
+		scrollArea->setWidget(tabs);
 }
 
 /**
@@ -100,7 +109,7 @@
 	about -> setAlignment(Qt::AlignCenter);
 	about -> setOpenExternalLinks(true);
 	about -> setTextFormat(Qt::RichText);
-	about -> setFixedSize (690, 610);
+	//about -> setFixedSize (690, 610);
 	return(about);
 }
 


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/