From kde-commits Sat Dec 31 20:38:29 2005 From: Richard Dale Date: Sat, 31 Dec 2005 20:38:29 +0000 To: kde-commits Subject: playground/bindings/kimono Message-Id: <1136061509.515630.12918.nullmailer () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=113606151622647 SVN commit 492974 by rdale: * Set up the global variable 'qApp' with a reference to the QApplication * Added tutorial example t4 M +4 -1 qt3qyoto/QApplication.cs M +2 -0 qt3qyoto/Qt.cs A t4.cs --- trunk/playground/bindings/kimono/qt3qyoto/QApplication.cs #492973:492974 @@ -592,6 +592,7 @@ Qyoto.Init_qyoto(); CreateQApplicationProxy(); CreateQApplicationSignalProxy(); + Qt.qApp = this; string[] args = new string[argv.Length + 1]; args[0] = System.Reflection.Assembly.GetExecutingAssembly().Location; @@ -613,7 +614,8 @@ Qyoto.Init_qyoto(); CreateQApplicationProxy(); CreateQApplicationSignalProxy(); - + Qt.qApp = this; + string[] args = new string[argv.Length + 1]; args[0] = System.Reflection.Assembly.GetExecutingAssembly().Location; argv.CopyTo(args, 1); @@ -634,6 +636,7 @@ Qyoto.Init_qyoto(); CreateQApplicationProxy(); CreateQApplicationSignalProxy(); + Qt.qApp = this; string[] args = new string[argv.Length + 1]; args[0] = System.Reflection.Assembly.GetExecutingAssembly().Location; --- trunk/playground/bindings/kimono/qt3qyoto/Qt.cs #492973:492974 @@ -1826,6 +1826,8 @@ public const int IO_TimeOutError = 7; public const int IO_UnspecifiedError= 8; + public static QApplication qApp = null; + public static string SIGNAL(string signal) { return "2"+ signal; }