From 589c40a6d60b59d90cec180bb54f8fe08a4bee17 Mon Sep 17 00:00:00 2001 From: Renato Filho Date: Wed, 1 Sep 2010 10:29:33 -0300 Subject: Fixed function modifications. Fixes bug #336. Reviewer: Hugo Parente Lima Lauro Neto --- PySide/QtGui/glue/qapplication_init.cpp | 5 +- PySide/QtGui/typesystem_gui_commom.xml | 139 +++----------------------------- 2 files changed, 15 insertions(+), 129 deletions(-) (limited to 'PySide') diff --git a/PySide/QtGui/glue/qapplication_init.cpp b/PySide/QtGui/glue/qapplication_init.cpp index afbd3046f..699633a1d 100644 --- a/PySide/QtGui/glue/qapplication_init.cpp +++ b/PySide/QtGui/glue/qapplication_init.cpp @@ -4,8 +4,11 @@ extern PyObject* moduleQtGui; static int QApplicationArgCount; static char** QApplicationArgValues; static const char QAPP_MACRO[] = "qApp"; +static bool leavingPython = false; -void DeleteQApplicationAtExit() { +void DeleteQApplicationAtExit() +{ + leavingPython = true; PySide::SignalManager::instance().clear(); QCoreApplication* cpp = QApplication::instance(); if (cpp) { diff --git a/PySide/QtGui/typesystem_gui_commom.xml b/PySide/QtGui/typesystem_gui_commom.xml index 686fc5fd9..48bad7a7e 100644 --- a/PySide/QtGui/typesystem_gui_commom.xml +++ b/PySide/QtGui/typesystem_gui_commom.xml @@ -1485,17 +1485,8 @@ - - - - - - - - - - - + + @@ -2409,27 +2400,6 @@ - - - - addLayoutOwnership(%CPPSELF, %1); - - - - - - - - - addLayoutOwnership(%CPPSELF, %0); - - - - - - addLayoutOwnership(%CPPSELF, %1); - - addLayoutOwnership(%CPPSELF, %2); @@ -2440,33 +2410,20 @@ - - - - - - - - - addLayoutOwnership(%CPPSELF, %0); - - + addLayoutOwnership(%CPPSELF, %1); + addLayoutOwnership(%CPPSELF, %1); - - - addLayoutOwnership(%CPPSELF, %1); - - + addLayoutOwnership(%CPPSELF, %2); @@ -2498,12 +2455,6 @@ - - - - addLayoutOwnership(%CPPSELF, %1); - - @@ -2550,17 +2501,6 @@ addLayoutOwnership(%CPPSELF, %1); - - - - - - - - addLayoutOwnership(%CPPSELF, %0); - - - @@ -3491,22 +3431,6 @@ - - - - - - - - - - - - - - - - @@ -4039,43 +3963,9 @@ - - - - - - - - - - - - - - - - - - + - - - - - - - - - - - - - - - - - - + @@ -4394,6 +4284,10 @@ + + + + @@ -4483,16 +4377,6 @@ - - - - - - - - - - @@ -4820,7 +4704,6 @@ - -- cgit v1.2.3