From aac788452d57994e398808c6d0bd53e561a0cd08 Mon Sep 17 00:00:00 2001 From: tpearson Date: Mon, 2 Aug 2010 19:19:58 +0000 Subject: TQt conversion fixes git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebindings@1158421 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- qtsharp/src/bindings/static/QString.cs | 12 ++++----- qtsharp/src/bindings/static/QToolButton.cs | 2 +- qtsharp/src/bindings/static/QWidgetStack.cs | 8 +++--- qtsharp/src/bindings/static/QtSlot.cs | 38 ++++++++++++++--------------- qtsharp/src/bindings/static/QtSupport.cs | 2 +- 5 files changed, 31 insertions(+), 31 deletions(-) (limited to 'qtsharp/src/bindings/static') diff --git a/qtsharp/src/bindings/static/QString.cs b/qtsharp/src/bindings/static/QString.cs index 1a790975..df25945e 100644 --- a/qtsharp/src/bindings/static/QString.cs +++ b/qtsharp/src/bindings/static/QString.cs @@ -698,28 +698,28 @@ namespace Qt { private static extern IntPtr qt_QString_at (IntPtr raw, uint i); public TQChar At (uint i) { - return LookupObject (qt_QString_at (rawObject, i), typeof (TQChar)) as QChar; + return LookupObject (qt_QString_at (rawObject, i), typeof (TQChar)) as TQChar; } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_QString_constref (IntPtr raw, uint i); public TQChar Constref (uint i) { - return LookupObject (qt_QString_constref (rawObject, i), typeof (TQChar)) as QChar; + return LookupObject (qt_QString_constref (rawObject, i), typeof (TQChar)) as TQChar; } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_QString_ref (IntPtr raw, uint i); public TQChar Q_ref (uint i) { - return LookupObject (qt_QString_ref (rawObject, i), typeof (TQChar)) as QChar; + return LookupObject (qt_QString_ref (rawObject, i), typeof (TQChar)) as TQChar; } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_QString_unicode (IntPtr raw); public TQChar Unicode () { - return LookupObject (qt_QString_unicode (rawObject), typeof (TQChar)) as QChar; + return LookupObject (qt_QString_unicode (rawObject), typeof (TQChar)) as TQChar; } [DllImport("libqtc", CharSet=CharSet.Ansi)] @@ -740,14 +740,14 @@ namespace Qt { private static extern IntPtr qt_QString_utf8 (IntPtr raw); public TQCString Utf8 () { - return LookupObject (qt_QString_utf8 (rawObject), typeof (TQCString)) as QCString; + return LookupObject (qt_QString_utf8 (rawObject), typeof (TQCString)) as TQCString; } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_QString_local8Bit (IntPtr raw); public TQCString Local8Bit () { - return LookupObject (qt_QString_local8Bit (rawObject), typeof (TQCString)) as QCString; + return LookupObject (qt_QString_local8Bit (rawObject), typeof (TQCString)) as TQCString; } [DllImport("libqtc", CharSet=CharSet.Ansi)] diff --git a/qtsharp/src/bindings/static/QToolButton.cs b/qtsharp/src/bindings/static/QToolButton.cs index 1ccc243f..e4779111 100644 --- a/qtsharp/src/bindings/static/QToolButton.cs +++ b/qtsharp/src/bindings/static/QToolButton.cs @@ -191,7 +191,7 @@ namespace Qt { if (disposed) throw new ObjectDisposedException (this+": Attempted use of disposed object"); - return LookupObject (qt_QToolButton_iconSet (rawObject, on), typeof (TQIconSet)) as QIconSet; + return LookupObject (qt_QToolButton_iconSet (rawObject, on), typeof (TQIconSet)) as TQIconSet; } [DllImport("libqtc", CharSet=CharSet.Ansi)] diff --git a/qtsharp/src/bindings/static/QWidgetStack.cs b/qtsharp/src/bindings/static/QWidgetStack.cs index fea0944c..aed0b6c2 100644 --- a/qtsharp/src/bindings/static/QWidgetStack.cs +++ b/qtsharp/src/bindings/static/QWidgetStack.cs @@ -89,14 +89,14 @@ namespace Qt { private static extern IntPtr qt_QWidgetStack_sizeHint (IntPtr raw); public TQSize SizeHint () { - return LookupObject (qt_QWidgetStack_sizeHint (RawObject), typeof(TQSize)) as QSize; + return LookupObject (qt_QWidgetStack_sizeHint (RawObject), typeof(TQSize)) as TQSize; } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_QWidgetStack_minimumSizeHint (IntPtr raw); public TQSize MinimumSizeHint () { - return LookupObject (qt_QWidgetStack_minimumSizeHint (RawObject), typeof(TQSize)) as QSize; + return LookupObject (qt_QWidgetStack_minimumSizeHint (RawObject), typeof(TQSize)) as TQSize; } [DllImport("libqtc", CharSet=CharSet.Ansi)] @@ -110,7 +110,7 @@ namespace Qt { private static extern IntPtr qt_QWidgetStack_widget (IntPtr raw, int arg1); public TQWidget Widget (int arg1) { - return LookupObject (qt_QWidgetStack_widget (RawObject, arg1), typeof(TQWidget)) as QWidget; + return LookupObject (qt_QWidgetStack_widget (RawObject, arg1), typeof(TQWidget)) as TQWidget; } [DllImport("libqtc", CharSet=CharSet.Ansi)] @@ -124,7 +124,7 @@ namespace Qt { private static extern IntPtr qt_QWidgetStack_visibleWidget (IntPtr raw); public TQWidget VisibleWidget () { - return LookupObject (qt_QWidgetStack_visibleWidget (RawObject), typeof(TQWidget)) as QWidget; + return LookupObject (qt_QWidgetStack_visibleWidget (RawObject), typeof(TQWidget)) as TQWidget; } [DllImport("libqtc", CharSet=CharSet.Ansi)] diff --git a/qtsharp/src/bindings/static/QtSlot.cs b/qtsharp/src/bindings/static/QtSlot.cs index 462be9ad..a48c9d42 100644 --- a/qtsharp/src/bindings/static/QtSlot.cs +++ b/qtsharp/src/bindings/static/QtSlot.cs @@ -95,109 +95,109 @@ namespace Qt { public void SlotBridge_QString (IntPtr value0) { - TQString csvalue0 = QtSupport.LookupObject (value0, typeof (TQString)) as QString; + TQString csvalue0 = QtSupport.LookupObject (value0, typeof (TQString)) as TQString; Invoke (new object[] {csvalue0}); } public void SlotBridge_QDockWindow (IntPtr value0) { - TQDockWindow csvalue0 = QtSupport.LookupObject (value0, typeof (TQDockWindow)) as QDockWindow; + TQDockWindow csvalue0 = QtSupport.LookupObject (value0, typeof (TQDockWindow)) as TQDockWindow; Invoke (new object[] {csvalue0}); } public void SlotBridge_QDropEvent (IntPtr value0) { - TQDropEvent csvalue0 = QtSupport.LookupObject (value0, typeof (TQDropEvent)) as QDropEvent; + TQDropEvent csvalue0 = QtSupport.LookupObject (value0, typeof (TQDropEvent)) as TQDropEvent; Invoke (new object[] {csvalue0}); } public void SlotBridge_QDropEventQListViewItem (IntPtr value0, IntPtr value1) { - TQDropEvent csvalue0 = QtSupport.LookupObject (value0, typeof (TQDropEvent)) as QDropEvent; - TQListViewItem csvalue1 = QtSupport.LookupObject (value1, typeof (TQListViewItem)) as QListViewItem; + TQDropEvent csvalue0 = QtSupport.LookupObject (value0, typeof (TQDropEvent)) as TQDropEvent; + TQListViewItem csvalue1 = QtSupport.LookupObject (value1, typeof (TQListViewItem)) as TQListViewItem; Invoke (new object[] {csvalue0, csvalue1}); } public void SlotBridge_QIconViewItem (IntPtr value0) { - TQIconViewItem csvalue0 = QtSupport.LookupObject (value0, typeof (TQIconViewItem)) as QIconViewItem; + TQIconViewItem csvalue0 = QtSupport.LookupObject (value0, typeof (TQIconViewItem)) as TQIconViewItem; Invoke (new object[] {csvalue0}); } public void SlotBridge_QListBoxItem (IntPtr value0) { - TQListBoxItem csvalue0 = QtSupport.LookupObject (value0, typeof (TQListBoxItem)) as QListBoxItem; + TQListBoxItem csvalue0 = QtSupport.LookupObject (value0, typeof (TQListBoxItem)) as TQListBoxItem; Invoke (new object[] {csvalue0}); } public void SlotBridge_QListViewItem (IntPtr value0) { - TQListViewItem csvalue0 = QtSupport.LookupObject (value0, typeof (TQListViewItem)) as QListViewItem; + TQListViewItem csvalue0 = QtSupport.LookupObject (value0, typeof (TQListViewItem)) as TQListViewItem; Invoke (new object[] {csvalue0}); } public void SlotBridge_QListViewItemQListViewItem (IntPtr value0, IntPtr value1) { - TQListViewItem csvalue0 = QtSupport.LookupObject (value0, typeof (TQListViewItem)) as QListViewItem; - TQListViewItem csvalue1 = QtSupport.LookupObject (value1, typeof (TQListViewItem)) as QListViewItem; + TQListViewItem csvalue0 = QtSupport.LookupObject (value0, typeof (TQListViewItem)) as TQListViewItem; + TQListViewItem csvalue1 = QtSupport.LookupObject (value1, typeof (TQListViewItem)) as TQListViewItem; Invoke (new object[] {csvalue0, csvalue1}); } public void SlotBridge_QListViewItemQListViewItemQListViewItem (IntPtr value0, IntPtr value1, IntPtr value2) { - TQListViewItem csvalue0 = QtSupport.LookupObject (value0, typeof (TQListViewItem)) as QListViewItem; - TQListViewItem csvalue1 = QtSupport.LookupObject (value1, typeof (TQListViewItem)) as QListViewItem; - TQListViewItem csvalue2 = QtSupport.LookupObject (value2, typeof (TQListViewItem)) as QListViewItem; + TQListViewItem csvalue0 = QtSupport.LookupObject (value0, typeof (TQListViewItem)) as TQListViewItem; + TQListViewItem csvalue1 = QtSupport.LookupObject (value1, typeof (TQListViewItem)) as TQListViewItem; + TQListViewItem csvalue2 = QtSupport.LookupObject (value2, typeof (TQListViewItem)) as TQListViewItem; Invoke (new object[] {csvalue0, csvalue1, csvalue2}); } public void SlotBridge_QNetworkOperation (IntPtr value0) { - TQNetworkOperation csvalue0 = QtSupport.LookupObject (value0, typeof (TQNetworkOperation)) as QNetworkOperation; + TQNetworkOperation csvalue0 = QtSupport.LookupObject (value0, typeof (TQNetworkOperation)) as TQNetworkOperation; Invoke (new object[] {csvalue0}); } public void SlotBridge_QObject (IntPtr value0) { - TQObject csvalue0 = QtSupport.LookupObject (value0, typeof (TQObject)) as QObject; + TQObject csvalue0 = QtSupport.LookupObject (value0, typeof (TQObject)) as TQObject; Invoke (new object[] {csvalue0}); } public void SlotBridge_QToolBar (IntPtr value0) { - TQToolBar csvalue0 = QtSupport.LookupObject (value0, typeof (TQToolBar)) as QToolBar; + TQToolBar csvalue0 = QtSupport.LookupObject (value0, typeof (TQToolBar)) as TQToolBar; Invoke (new object[] {csvalue0}); } public void SlotBridge_QWidget (IntPtr value0) { - TQWidget csvalue0 = QtSupport.LookupObject (value0, typeof (TQWidget)) as QWidget; + TQWidget csvalue0 = QtSupport.LookupObject (value0, typeof (TQWidget)) as TQWidget; Invoke (new object[] {csvalue0}); } public void SlotBridge_intQIconViewItem (int value0, IntPtr value1) { - TQIconViewItem csvalue1 = QtSupport.LookupObject (value1, typeof (TQIconViewItem)) as QIconViewItem; + TQIconViewItem csvalue1 = QtSupport.LookupObject (value1, typeof (TQIconViewItem)) as TQIconViewItem; Invoke (new object[] {value0, csvalue1}); } public void SlotBridge_intQListBoxItem (int value0, IntPtr value1) { - TQListBoxItem csvalue1 = QtSupport.LookupObject (value1, typeof (TQListBoxItem)) as QListBoxItem; + TQListBoxItem csvalue1 = QtSupport.LookupObject (value1, typeof (TQListBoxItem)) as TQListBoxItem; Invoke (new object[] {value0, csvalue1}); } diff --git a/qtsharp/src/bindings/static/QtSupport.cs b/qtsharp/src/bindings/static/QtSupport.cs index af48d72a..01031446 100644 --- a/qtsharp/src/bindings/static/QtSupport.cs +++ b/qtsharp/src/bindings/static/QtSupport.cs @@ -346,7 +346,7 @@ namespace Qt { if ((ev = (TQEvent)LookupObject (eventinstance)) == null) { object[] args = new object[] { eventinstance }; BindingFlags bflags = BindingFlags.Instance | BindingFlags.NonPublic | BindingFlags.Public; - ev = Activator.CreateInstance (evtype, bflags, null, args, null) as QEvent; + ev = Activator.CreateInstance (evtype, bflags, null, args, null) as TQEvent; } // Notify global event handlers first. -- cgit v1.2.1