diff --git a/sources/diagramprintdialog.cpp b/sources/diagramprintdialog.cpp index 4c6205278..38f9e7d26 100644 --- a/sources/diagramprintdialog.cpp +++ b/sources/diagramprintdialog.cpp @@ -94,7 +94,7 @@ void DiagramPrintDialog::exec() { // 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); diff --git a/sources/diagramview.cpp b/sources/diagramview.cpp index a9732adf9..c64a15892 100644 --- a/sources/diagramview.cpp +++ b/sources/diagramview.cpp @@ -635,7 +635,10 @@ void DiagramView::editElement(Element *element) { 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 @@ void DiagramView::editConductor(Conductor *edited_conductor) { // 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); diff --git a/sources/elementdialog.cpp b/sources/elementdialog.cpp index 7fe2be114..e6bed3527 100644 --- a/sources/elementdialog.cpp +++ b/sources/elementdialog.cpp @@ -39,6 +39,9 @@ ElementDialog::ElementDialog(uint mode, QObject *parent) : { dialog_ = new QDialog(); dialog_ -> setWindowModality(Qt::WindowModal); +#ifdef Q_WS_MAC + dialog_ -> setWindowFlags(Qt::Sheet); +#endif buttons_ = new QDialogButtonBox(); // types selectionnables dans la liste diff --git a/sources/projectview.cpp b/sources/projectview.cpp index 6d4f2f118..d980d80a0 100644 --- a/sources/projectview.cpp +++ b/sources/projectview.cpp @@ -529,7 +529,7 @@ void ProjectView::exportProject() { ExportDialog ed(project_, parentWidget()); #ifdef Q_WS_MAC - ed.setWindowsFlag(Qt::Sheet); + ed.setWindowFlags(Qt::Sheet); #endif ed.exec(); }