[qet] [1921] Fixed full page restore.

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


Revision: 1921
Author:   xavier
Date:     2012-08-05 02:32:39 +0200 (Sun, 05 Aug 2012)
Log Message:
-----------
Fixed full page restore.

Modified Paths:
--------------
    trunk/sources/diagramprintdialog.cpp
    trunk/sources/qetprintpreviewdialog.cpp

Modified: trunk/sources/diagramprintdialog.cpp
===================================================================
--- trunk/sources/diagramprintdialog.cpp	2012-08-05 00:23:13 UTC (rev 1920)
+++ trunk/sources/diagramprintdialog.cpp	2012-08-05 00:32:39 UTC (rev 1921)
@@ -587,7 +587,7 @@
 		if (conv_ok && value != -1.0) margins[i] = value;
 	}
 	printer_ -> setPageMargins(margins[0], margins[1], margins[2], margins[3], QPrinter::Millimeter);
-	printer_ -> setFullPage(settings.setValue("fullpage", "false") == "true");
+	printer_ -> setFullPage(settings.value("fullpage", "false").toString() == "true");
 }
 
 /**

Modified: trunk/sources/qetprintpreviewdialog.cpp
===================================================================
--- trunk/sources/qetprintpreviewdialog.cpp	2012-08-05 00:23:13 UTC (rev 1920)
+++ trunk/sources/qetprintpreviewdialog.cpp	2012-08-05 00:32:39 UTC (rev 1921)
@@ -234,6 +234,7 @@
 	
 	print_options_box_= new QGroupBox(tr("Options d'impression"));
 	use_full_page_ = new QCheckBox(tr("Utiliser toute la feuille"));
+	use_full_page_ -> setChecked(printer_ -> fullPage());
 	use_full_page_label_ = new QLabel(tr(
 		"Si cette option est coch\351e, les marges de la feuille seront "
 		"ignor\351es et toute sa surface sera utilis\351e pour l'impression. "


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