diff generator/typesystem_gui.xml @ 323:7a3c43424dca signals

make all examples compile with new signals/slots
author eldar_ins@eldar-laptop
date Mon, 28 Dec 2009 16:28:55 +0500
parents 8a0cf14e3419
children 0cc996b7a601
line wrap: on
line diff
--- a/generator/typesystem_gui.xml	Sun Dec 27 21:13:38 2009 +0500
+++ b/generator/typesystem_gui.xml	Mon Dec 28 16:28:55 2009 +0500
@@ -7586,6 +7586,13 @@
             return %FUNCTION_NAME(%PRE_CALL_ARGUMENTS %COMMA className == null ? null : className.data());
         }
         </template>
+        
+      <inject-code class="java-free">
+        QApplication qApp()
+        {
+            return cast(QApplication) QCoreApplication.instance();
+        }
+      </inject-code>      
     </object-type>
 
   <object-type name="QCommandLinkButton"/>