[qet] [1881] Minor refactoring: moved the Qt: Sheet window flag into the ConfigPage constructor. |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/qet Archives
]
Revision: 1881
Author: xavier
Date: 2012-06-29 07:21:39 +0200 (Fri, 29 Jun 2012)
Log Message:
-----------
Minor refactoring: moved the Qt:Sheet window flag into the ConfigPage constructor.
Modified Paths:
--------------
trunk/sources/configdialog.cpp
trunk/sources/qetapp.cpp
Modified: trunk/sources/configdialog.cpp
===================================================================
--- trunk/sources/configdialog.cpp 2012-06-29 05:21:37 UTC (rev 1880)
+++ trunk/sources/configdialog.cpp 2012-06-29 05:21:39 UTC (rev 1881)
@@ -53,6 +53,12 @@
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
Modified: trunk/sources/qetapp.cpp
===================================================================
--- trunk/sources/qetapp.cpp 2012-06-29 05:21:37 UTC (rev 1880)
+++ trunk/sources/qetapp.cpp 2012-06-29 05:21:39 UTC (rev 1881)
@@ -1154,9 +1154,6 @@
// 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());
}