[Kde-bindings] QThread through smoke?

Caleb Tennis caleb at gentoo.org
Fri Feb 11 19:54:09 UTC 2005


On Friday 11 February 2005 10:35 am, Caleb Tennis wrote:
> I've been wondering about using the QThread class instead of builtin thread
> support - particularly in Ruby.  From what I can see, the smoke bindings
> allow for the "qthread.h" header to be parsed, but it seems like kalyptus
> doesn't build a binding for it (at least, it doesn't on my system).  Is
> there a reason for this?

As a followup, I am able to get this functionality with this patch (though I 
haven't thoroughly tested the repercussions of using it):

--- kalyptus/kalyptus 2005-02-11 13:24:14.396712424 -0500
+++ kalyptus/kalyptus.2 2005-02-11 13:25:11.908969232 -0500
@@ -129,6 +129,7 @@
     QM_EXPORT_WORKSPACE => '',
     QT_NO_REMOTE => 'QT_NO_REMOTE',
     QT_ACCESSIBILITY_SUPPORT => 'QT_ACCESSIBILITY_SUPPORT',
+    QT_THREAD_SUPPORT => 'QT_THREAD_SUPPORT',
     Q_WS_X11 => 'Q_WS_X11',
     Q_DISABLE_COPY => 'Q_DISABLE_COPY',
     Q_WS_QWS => 'undef',
@@ -554,7 +555,7 @@
          ($p =~ m/^#\s*if\s+defined\(Q_INCOMPATIBLE_3_0_ADDONS/ and 
$qt_embedded) or
          $p =~ m/^#\s*if\s+defined\(Q_OS_/ or
          $p =~ m/^#\s*if\s+defined\(Q_CC_/ or
-         $p =~ m/^#\s*if\s+defined\(QT_THREAD_SUPPORT/ or
+#         $p =~ m/^#\s*if\s+defined\(QT_THREAD_SUPPORT/ or
          $p =~ m/^#\s*else/ or
          $p =~ m/^#\s*if\s+defined\(Q_FULL_TEMPLATE_INSTANTIATION/ or
          $p =~ m/^#\s*ifdef\s+QT_WORKSPACE_WINDOWMODE/ or



More information about the Kde-bindings mailing list