[qet] [731] Corrections suite a la revision 730.

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


Revision: 731
Author:   xavier
Date:     2009-08-09 21:20:21 +0200 (Sun, 09 Aug 2009)

Log Message:
-----------
Corrections suite a la revision 730.

Modified Paths:
--------------
    trunk/sources/diagramprintdialog.cpp
    trunk/sources/diagramview.cpp
    trunk/sources/elementdialog.cpp
    trunk/sources/projectview.cpp


Modified: trunk/sources/diagramprintdialog.cpp
===================================================================
--- trunk/sources/diagramprintdialog.cpp	2009-08-09 16:43:03 UTC (rev 730)
+++ trunk/sources/diagramprintdialog.cpp	2009-08-09 19:20:21 UTC (rev 731)
@@ -94,7 +94,7 @@
 		// affichage du dialogue d'impression standard pour parametrer l'imprimante
 		QPrintDialog print_dialog(printer_, parentWidget());
 #ifdef Q_WS_MAC
-		print_dialog -> setWindowFlags(Qt::Sheet);
+		print_dialog.setWindowFlags(Qt::Sheet);
 #endif
 		print_dialog.setWindowTitle(tr("Options d'impression", "window title"));
 		print_dialog.setEnabledOptions(QAbstractPrintDialog::PrintShowPageSize);

Modified: trunk/sources/diagramview.cpp
===================================================================
--- trunk/sources/diagramview.cpp	2009-08-09 16:43:03 UTC (rev 730)
+++ trunk/sources/diagramview.cpp	2009-08-09 19:20:21 UTC (rev 731)
@@ -635,7 +635,10 @@
 	QPushButton *edit_element = new QPushButton(tr("Editer l'\351l\351ment"));
 	
 	// dialogue en lui-meme
-	QMessageBox edit_element_dialog;
+	QMessageBox edit_element_dialog(diagramEditor());
+#ifdef Q_WS_MAC
+	edit_element_dialog.setWindowFlags(Qt::Sheet);
+#endif
 	edit_element_dialog.setIcon(QMessageBox::Information);
 	edit_element_dialog.setWindowTitle(description_title);
 	edit_element_dialog.setText(description_title);
@@ -687,6 +690,9 @@
 	
 	// l'insere dans un dialogue
 	QDialog conductor_dialog(diagramEditor());
+#ifdef Q_WS_MAC
+	conductor_dialog.setWindowFlags(Qt::Sheet);
+#endif
 	conductor_dialog.setWindowTitle(tr("\311diter les propri\351t\351s d'un conducteur", "window title"));
 	QVBoxLayout *dialog_layout = new QVBoxLayout(&conductor_dialog);
 	dialog_layout -> addWidget(cpw);

Modified: trunk/sources/elementdialog.cpp
===================================================================
--- trunk/sources/elementdialog.cpp	2009-08-09 16:43:03 UTC (rev 730)
+++ trunk/sources/elementdialog.cpp	2009-08-09 19:20:21 UTC (rev 731)
@@ -39,6 +39,9 @@
 {
 	dialog_  = new QDialog();
 	dialog_ -> setWindowModality(Qt::WindowModal);
+#ifdef Q_WS_MAC
+	dialog_ -> setWindowFlags(Qt::Sheet);
+#endif
 	buttons_ = new QDialogButtonBox();
 	
 	// types selectionnables dans la liste

Modified: trunk/sources/projectview.cpp
===================================================================
--- trunk/sources/projectview.cpp	2009-08-09 16:43:03 UTC (rev 730)
+++ trunk/sources/projectview.cpp	2009-08-09 19:20:21 UTC (rev 731)
@@ -529,7 +529,7 @@
 	
 	ExportDialog ed(project_, parentWidget());
 #ifdef Q_WS_MAC
-	ed.setWindowsFlag(Qt::Sheet);
+	ed.setWindowFlags(Qt::Sheet);
 #endif
 	ed.exec();
 }


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