[qet] [742] 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: 742
Author:   xavier
Date:     2009-08-20 22:43:51 +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:
--------------
    trunk/sources/exportdialog.cpp
    trunk/sources/exportdialog.h


Modified: trunk/sources/exportdialog.cpp
===================================================================
--- trunk/sources/exportdialog.cpp	2009-08-20 20:39:38 UTC (rev 741)
+++ trunk/sources/exportdialog.cpp	2009-08-20 20:43:51 UTC (rev 742)
@@ -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: trunk/sources/exportdialog.h
===================================================================
--- trunk/sources/exportdialog.h	2009-08-20 20:39:38 UTC (rev 741)
+++ trunk/sources/exportdialog.h	2009-08-20 20:43:51 UTC (rev 742)
@@ -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/