[Kde-bindings] KDE/kdebindings/qtruby
Richard Dale
Richard_Dale at tipitina.demon.co.uk
Thu Oct 19 12:58:20 UTC 2006
SVN commit 597159 by rdale:
* A Qt::DBusArgument can be obtained via a call to qVariantValue(), like
this:
qVariantValue(Qt::DBusArgument, variant)
CCMAIL: kde-bindings at kde.org
M +7 -0 ChangeLog
M +4 -0 rubylib/qtruby/Qt.cpp
--- trunk/KDE/kdebindings/qtruby/ChangeLog #597158:597159
@@ -1,3 +1,10 @@
+2006-10-19 Richard Dale <rdale at foton.es>
+
+ * A Qt::DBusArgument can be obtained via a call to qVariantValue(), like
+ this:
+
+ qVariantValue(Qt::DBusArgument, variant)
+
2006-10-16 Richard Dale <rdale at foton.es>
* Fixed Qt::DBusInterface.call() so it automatically wraps the arguments
--- trunk/KDE/kdebindings/qtruby/rubylib/qtruby/Qt.cpp #597158:597159
@@ -613,6 +613,10 @@
} else if (strcmp(classname, "Qt::TextFormat") == 0) {
QTextFormat v = qVariantValue<QTextFormat>(*variant);
value_ptr = (void *) new QTextFormat(v);
+ } else if ( strcmp(classname, "Qt::DBusArgument") == 0
+ && qstrcmp(variant->typeName(), "QDBusArgument") == 0 )
+ {
+ value_ptr = (void *) variant->constData();
} else {
// Assume the value of the Qt::Variant can be obtained
// with a call such as Qt::Variant.toPoint()
More information about the Kde-bindings
mailing list