[Kde-bindings] branches/KDE/3.5/kdebindings/qtruby

Richard Dale Richard_Dale at tipitina.demon.co.uk
Mon Feb 19 18:17:54 UTC 2007


SVN commit 635285 by rdale:

* Fixed a bug where the sort method of Qt::ListView and Qt::ListViewItem
  was no longer working, as the classes are 'Enumerable' and ruby was
  calling the ruby sort method instead. Thanks to kelko for reporting it
  on #kde-ruby.

CCMAIL: kde-bindings at kde.org



 M  +23 -0     ChangeLog  
 M  +8 -0      rubylib/qtruby/lib/Qt/qtruby.rb  


--- branches/KDE/3.5/kdebindings/qtruby/ChangeLog #635284:635285
@@ -1,3 +1,26 @@
+2007-02-19  Richard Dale  <rdale at foton.es>
+
+	* Fixed a bug where the sort method of Qt::ListView and Qt::ListViewItem
+	  was no longer working, as the classes are 'Enumerable' and ruby was
+	  calling the ruby sort method instead. Thanks to kelko for reporting it
+	  on #kde-ruby.
+
+2006-12-05  Richard Dale  <rdale at foton.es>
+
+	* Backported some improvements to Qt::Variants from Qt4 QtRuby
+	* When marhalling QMap types with QVariant values, if the Ruby value isn't
+	  a Qt::Variant then one is created
+	* Qt::Variants can now be constructed with Hash's of String/Qt::Variant
+	  pairs, and from Arrays of Qt::Variants
+	* When marshalling QValueList<QVariant> types from Ruby to C++, if any elements
+	  aren't Ruby Qt::Variants, they are automatically converted. Hence, the
+	  following will work:
+
+		v = Qt::Variant.new([1, 2, 3])
+
+	  The Qt::Variant v will contain a list of 3 QVariants with typeName 'int'
+	* Change all instances of strcmp() to qstrcmp()
+
 2006-11-20  Richard Dale  <rdale at foton.es>
 
 	* Made Qt::ListView, Qt::ListViewItem, Qt::BoxLayout, Qt::HBoxLayout,
--- branches/KDE/3.5/kdebindings/qtruby/rubylib/qtruby/lib/Qt/qtruby.rb #635284:635285
@@ -600,6 +600,10 @@
 				it += 1
 			end
 		end
+
+		def sort(*args)
+			method_missing(:sort, *args)
+		end
 	end
 
 	class ListViewItem < Qt::Base
@@ -613,6 +617,10 @@
 			end
 		end
 
+		def sort(*args)
+			method_missing(:sort, *args)
+		end
+
 		def inspect
 			str = super
 			str.sub!(/>$/, "")



More information about the Kde-bindings mailing list