From 9f8c1b03e8aaff3e76cf2c43b0a34da0efb7d7b5 Mon Sep 17 00:00:00 2001 From: xavierqet Date: Tue, 19 Aug 2008 21:25:31 +0000 Subject: [PATCH] Petites corrections sur le dialogue d'impression (titre et chemin PDF propose) git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@383 bfdf4180-ca20-0410-9c96-a3a8aa849046 --- lang/qet_en.qm | Bin 56160 -> 56160 bytes lang/qet_en.ts | 18 +++++++++--------- sources/diagramprintdialog.cpp | 9 ++++++--- 3 files changed, 15 insertions(+), 12 deletions(-) diff --git a/lang/qet_en.qm b/lang/qet_en.qm index a84fd5abcb393980f2d3fb794f04da17bf9cf7ea..020fad8529694fd0bfac72abf6b84e3eabd937ea 100644 GIT binary patch delta 93 zcmaE`jrqYg<_*rBEdPOEvU{gGgi+KP2Vq?4JOg2@+aNJ{PnR2nv$0!rvh7CB$uBE~ UCYyC52~O>n0IS%%v3tEg0EJ69v;Y7A delta 93 zcmaE`jrqYg<_*rBEDS&}*}YR8!YJyDgD|dio`EpdZIGC}r^^k(+1M>Q*>)r6B~ Ulg+x31gCaOfK_bX*uCB#05nz{&;S4c diff --git a/lang/qet_en.ts b/lang/qet_en.ts index cc1a7c341..e94a1d09f 100644 --- a/lang/qet_en.ts +++ b/lang/qet_en.ts @@ -254,42 +254,42 @@ DiagramPrintDialog - + Options d'impression Print options - + Utiliser toute la feuille Use full page - + Adapter le schéma à la page Fit diagram to page - + à to - + Nombre total de pages : Total pages count: - + Si cette option est cochée, les marges de la feuille seront ignorées et toute sa surface sera utilisée pour l'impression. Cela peut ne pas être supporté par votre imprimante. If this option is checked, the paper margins are ignored and its whole surface is used for the printing. This may not be supported by your printer. - + Si cette option est cochée, le schéma sera agrandi ou rétréci de façon à remplir toute la surface imprimable d'une et une seule page. If this option is checked, the diagram will be shrinked or expanded to fit the printable surface of a single page. - + Pages à imprimer : plage de Pages to print: from @@ -1364,7 +1364,7 @@ Available options: QETDiagramEditor - + Active la fenêtre Activates the window diff --git a/sources/diagramprintdialog.cpp b/sources/diagramprintdialog.cpp index 6118d527e..556ef1c94 100644 --- a/sources/diagramprintdialog.cpp +++ b/sources/diagramprintdialog.cpp @@ -77,13 +77,16 @@ QString DiagramPrintDialog::docName() const { */ void DiagramPrintDialog::exec() { - // affichage du dialogue d'impression standard - QPrintDialog print_dialog(printer, parentWidget()); - print_dialog.setEnabledOptions(QAbstractPrintDialog::PrintToFile | QAbstractPrintDialog::PrintShowPageSize); #ifndef Q_OS_WIN32 if (!pdf_name.isEmpty()) printer -> setOutputFileName(pdf_name); if (!doc_name.isEmpty()) printer -> setDocName(doc_name); #endif + + // affichage du dialogue d'impression standard + QPrintDialog print_dialog(printer, parentWidget()); + print_dialog.setWindowTitle(tr("Options d'impression")); + print_dialog.setEnabledOptions(QAbstractPrintDialog::PrintToFile | QAbstractPrintDialog::PrintShowPageSize); + if (print_dialog.exec() == QDialog::Rejected) return; /*