From 00affb107eba336786fc0dd23155687f99463e83 Mon Sep 17 00:00:00 2001 From: xavier Date: Fri, 29 Jun 2012 05:21:39 +0000 Subject: [PATCH] Minor refactoring: moved the Qt:Sheet window flag into the ConfigPage constructor. git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@1881 bfdf4180-ca20-0410-9c96-a3a8aa849046 --- sources/configdialog.cpp | 6 ++++++ sources/qetapp.cpp | 3 --- 2 files changed, 6 insertions(+), 3 deletions(-) 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()); }