[qet] [741] Dialogue d'export : application d' un patch de Sebastien Gouezel pour corriger un bug lors du calcul initial des tailles des schemas .

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


Revision: 741
Author:   xavier
Date:     2009-08-20 22:39:38 +0200 (Thu, 20 Aug 2009)

Log Message:
-----------
Dialogue d'export : application d'un patch de Sebastien Gouezel pour corriger un bug lors du calcul initial des tailles des schemas.

Modified Paths:
--------------
    branches/0.3/sources/exportdialog.cpp
    branches/0.3/sources/exportdialog.h


Modified: branches/0.3/sources/exportdialog.cpp
===================================================================
--- branches/0.3/sources/exportdialog.cpp	2009-08-16 16:26:14 UTC (rev 740)
+++ branches/0.3/sources/exportdialog.cpp	2009-08-20 20:39:38 UTC (rev 741)
@@ -120,7 +120,7 @@
 	// remplit la liste
 	foreach (Diagram *diagram, project_ -> diagrams()) {
 		++ line_count;
-		ExportDiagramLine *diagram_line = new ExportDiagramLine(diagram);
+		ExportDiagramLine *diagram_line = new ExportDiagramLine(diagram, diagramSize(diagram));
 		diagram_lines_.insert(line_count, diagram_line);
 		diagrams_list_layout_ -> addWidget(diagram_line -> must_export,    line_count, 0);
 		diagrams_list_layout_ -> addWidget(diagram_line -> title_label,    line_count, 1);
@@ -640,9 +640,10 @@
 
 /**
 	Constructeur
-	@param dia Schema concerne
+	@param dia Schema concerne, 
+	@param diagram_size taille du schema tenant compte des parametres d'export
 */
-ExportDialog::ExportDiagramLine::ExportDiagramLine(Diagram *dia) {
+ExportDialog::ExportDiagramLine::ExportDiagramLine(Diagram *dia, QSize diagram_size) {
 	diagram = dia;
 	must_export = new QCheckBox();
 	must_export -> setChecked(true);
@@ -660,8 +661,6 @@
 	file_name -> setText(diagram_filename);
 	file_name -> setMinimumWidth(180);
 	
-	QSize diagram_size = diagram -> imageSize();
-	
 	width = new QSpinBox();
 	width -> setRange(1, 10000);
 	width -> setSuffix(tr("px"));

Modified: branches/0.3/sources/exportdialog.h
===================================================================
--- branches/0.3/sources/exportdialog.h	2009-08-16 16:26:14 UTC (rev 740)
+++ branches/0.3/sources/exportdialog.h	2009-08-20 20:39:38 UTC (rev 741)
@@ -45,7 +45,7 @@
 	private:
 	class ExportDiagramLine {
 		public:
-		ExportDiagramLine(Diagram *);
+		ExportDiagramLine(Diagram *, QSize);
 		virtual ~ExportDiagramLine();
 		QBoxLayout *sizeLayout();
 		Diagram *diagram;


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