mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-17 20:50:34 +01:00
Corrections suite a la revision 730.
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@731 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user