[qet] [857] Suppression du cadre superflu autour des editeurs de primitives.

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


Revision: 857
Author:   xavier
Date:     2010-02-18 16:09:52 +0100 (Thu, 18 Feb 2010)
Log Message:
-----------
Suppression du cadre superflu autour des editeurs de primitives.
Ameliorations mineures sur certains editeurs de primitives.

Modified Paths:
--------------
    trunk/sources/editor/arceditor.cpp
    trunk/sources/editor/circleeditor.cpp
    trunk/sources/editor/ellipseeditor.cpp
    trunk/sources/editor/qetelementeditor.cpp
    trunk/sources/editor/rectangleeditor.cpp

Modified: trunk/sources/editor/arceditor.cpp
===================================================================
--- trunk/sources/editor/arceditor.cpp	2010-02-18 00:42:41 UTC (rev 856)
+++ trunk/sources/editor/arceditor.cpp	2010-02-18 15:09:52 UTC (rev 857)
@@ -48,7 +48,7 @@
 	
 	QGridLayout *grid = new QGridLayout();
 	grid -> addWidget(new QLabel(tr("Centre : ")),            0, 0);
-	grid -> addWidget(new QLabel("x"),                        1, 0);
+	grid -> addWidget(new QLabel("x"),                        1, 0, Qt::AlignRight);
 	grid -> addWidget(x,                                      1, 1);
 	grid -> addWidget(new QLabel("y"),                        1, 2);
 	grid -> addWidget(y,                                      1, 3);

Modified: trunk/sources/editor/circleeditor.cpp
===================================================================
--- trunk/sources/editor/circleeditor.cpp	2010-02-18 00:42:41 UTC (rev 856)
+++ trunk/sources/editor/circleeditor.cpp	2010-02-18 15:09:52 UTC (rev 857)
@@ -43,7 +43,7 @@
 	
 	QGridLayout *grid = new QGridLayout();
 	grid -> addWidget(new QLabel(tr("Centre : ")),       0, 0);
-	grid -> addWidget(new QLabel("x"),                   1, 0);
+	grid -> addWidget(new QLabel("x"),                   1, 0, Qt::AlignRight);
 	grid -> addWidget(x,                                 1, 1);
 	grid -> addWidget(new QLabel("y"),                   1, 2);
 	grid -> addWidget(y,                                 1, 3);

Modified: trunk/sources/editor/ellipseeditor.cpp
===================================================================
--- trunk/sources/editor/ellipseeditor.cpp	2010-02-18 00:42:41 UTC (rev 856)
+++ trunk/sources/editor/ellipseeditor.cpp	2010-02-18 15:09:52 UTC (rev 857)
@@ -45,7 +45,7 @@
 	
 	QGridLayout *grid = new QGridLayout();
 	grid -> addWidget(new QLabel(tr("Centre : ")),       0, 0);
-	grid -> addWidget(new QLabel("x"),                   1, 0);
+	grid -> addWidget(new QLabel("x"),                   1, 0, Qt::AlignRight);
 	grid -> addWidget(x,                                 1, 1);
 	grid -> addWidget(new QLabel("y"),                   1, 2);
 	grid -> addWidget(y,                                 1, 3);

Modified: trunk/sources/editor/qetelementeditor.cpp
===================================================================
--- trunk/sources/editor/qetelementeditor.cpp	2010-02-18 00:42:41 UTC (rev 856)
+++ trunk/sources/editor/qetelementeditor.cpp	2010-02-18 15:09:52 UTC (rev 857)
@@ -511,6 +511,8 @@
 	
 	// ScrollArea pour accueillir un widget d'edition (change a la volee)
 	tools_dock_scroll_area_ = new QScrollArea();
+	tools_dock_scroll_area_ -> setFrameStyle(QFrame::NoFrame);
+	tools_dock_scroll_area_ -> setAlignment(Qt::AlignHCenter|Qt::AlignTop);
 	
 	// Pile de widgets pour accueillir les deux widgets precedents
 	tools_dock_stack_ = new QStackedWidget();

Modified: trunk/sources/editor/rectangleeditor.cpp
===================================================================
--- trunk/sources/editor/rectangleeditor.cpp	2010-02-18 00:42:41 UTC (rev 856)
+++ trunk/sources/editor/rectangleeditor.cpp	2010-02-18 15:09:52 UTC (rev 857)
@@ -43,12 +43,12 @@
 	QVBoxLayout *v_layout = new QVBoxLayout(this);
 	
 	QGridLayout *grid = new QGridLayout();
-	grid -> addWidget(new QLabel(tr("Coin sup\351rieur gauche\240: ")), 0, 0);
-	grid -> addWidget(new QLabel("x"),                                  1, 0);
+	grid -> addWidget(new QLabel(tr("Coin sup\351rieur gauche\240: ")), 0, 0, 1, 4);
+	grid -> addWidget(new QLabel("x"),                                  1, 0, Qt::AlignRight);
 	grid -> addWidget(x,                                                1, 1);
 	grid -> addWidget(new QLabel("y"),                                  1, 2);
 	grid -> addWidget(y,                                                1, 3);
-	grid -> addWidget(new QLabel(tr("Dimensions\240: ")),               2, 0);
+	grid -> addWidget(new QLabel(tr("Dimensions\240: ")),               2, 0, 1, 4);
 	grid -> addWidget(new QLabel(tr("Largeur\240:")),                   3, 0);
 	grid -> addWidget(w,                                                3, 1);
 	grid -> addWidget(new QLabel(tr("Hauteur\240:")),                   4, 0);


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