[Kde-bindings] KDE/kdebindings/qtruby
Richard Dale
Richard_Dale at tipitina.demon.co.uk
Thu Nov 30 19:54:03 UTC 2006
SVN commit 609437 by rdale:
* The Qt::KeySequence constructor wasn't working when passed a
Qt::Key enum type and it needed to be cast to an Integer via
a to_i() call.
* When a Qt::DBusInterface.call() method was invoked without using
the call() method, but by calling the method directly, and the method
returned a QVariant Qt::DBusArgument value, the QVariant return
value was converted to nil.
* Fixed some errors in the mainwindows/mdi example, thanks to shirk
and |Vargas| for pointing them out.
CCMAIL: kde-bindings at kde.org
M +12 -0 ChangeLog
M +1 -1 rubylib/examples/mainwindows/mdi/mainwindow.rb
M +1 -1 rubylib/examples/mainwindows/mdi/mdichild.rb
M +14 -0 rubylib/qtruby/lib/Qt/qtruby4.rb
--- trunk/KDE/kdebindings/qtruby/ChangeLog #609436:609437
@@ -1,3 +1,15 @@
+2006-11-30 Richard Dale <rdale at foton.es>
+
+ * The Qt::KeySequence constructor wasn't working when passed a
+ Qt::Key enum type and it needed to be cast to an Integer via
+ a to_i() call.
+ * When a Qt::DBusInterface.call() method was invoked without using
+ the call() method, but by calling the method directly, and the method
+ returned a QVariant Qt::DBusArgument value, the QVariant return
+ value was converted to nil.
+ * Fixed some errors in the mainwindows/mdi example, thanks to shirk
+ and |Vargas| for pointing them out.
+
2006-11-23 Richard Dale <rdale at foton.es>
* Made Qt::TreeWidgetItem and Qt::TreeWidget Enumerable
--- trunk/KDE/kdebindings/qtruby/rubylib/examples/mainwindows/mdi/mainwindow.rb #609436:609437
@@ -348,6 +348,6 @@
return mdiChild
end
end
- return 0
+ return nil
end
end
--- trunk/KDE/kdebindings/qtruby/rubylib/examples/mainwindows/mdi/mdichild.rb #609436:609437
@@ -57,7 +57,7 @@
end
inf = Qt::TextStream.new(file)
- Qt::Application.setOverrideCursor(Qt::WaitCursor)
+ Qt::Application.overrideCursor = Qt::Cursor.new(Qt::WaitCursor)
setPlainText(inf.readAll())
Qt::Application.restoreOverrideCursor()
--- trunk/KDE/kdebindings/qtruby/rubylib/qtruby/lib/Qt/qtruby4.rb #609436:609437
@@ -783,6 +783,15 @@
end
end
+ class KeySequence < Qt::Base
+ def initialize(*args)
+ if args.length == 1 && args[0].kind_of?(Qt::Enum) && args[0].type == "Qt::Key"
+ return super(args[0].to_i)
+ end
+ return super(*args)
+ end
+ end
+
class LCDNumber < Qt::Base
def display(item)
method_missing(:display, item)
@@ -1589,6 +1598,11 @@
when Qt::Variant::Url
return toUrl
end
+
+ case typeName()
+ when "QDBusArgument"
+ return qVariantValue(Qt::DBusArgument, self)
+ end
end
def inspect
More information about the Kde-bindings
mailing list