diff --git a/sources/configdialog.cpp b/sources/configdialog.cpp index 0ecbcff6a..5accf7603 100644 --- a/sources/configdialog.cpp +++ b/sources/configdialog.cpp @@ -53,6 +53,12 @@ ConfigDialog::ConfigDialog(QWidget *parent) : QDialog(parent) { connect(buttons, SIGNAL(accepted()), this, SLOT(applyConf())); connect(buttons, SIGNAL(rejected()), this, SLOT(reject())); connect(pages_list, SIGNAL(currentItemChanged(QListWidgetItem *, QListWidgetItem *)), this, SLOT(changePage(QListWidgetItem *, QListWidgetItem*))); + +#ifdef Q_WS_MAC + if (parent) { + setWindowFlags(Qt::Sheet); + } +#endif } /// Destructeur diff --git a/sources/qetapp.cpp b/sources/qetapp.cpp index bc5ee67c4..4ba5eaf6b 100644 --- a/sources/qetapp.cpp +++ b/sources/qetapp.cpp @@ -1154,9 +1154,6 @@ void QETApp::configureQET() { // associe le dialogue a un eventuel widget parent if (parent_widget) { -#ifdef Q_WS_MAC - cd.setWindowFlags(Qt::Sheet); -#endif cd.setParent(parent_widget, cd.windowFlags()); }