[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-bindings
Subject: [Kde-bindings] branches/KDE/3.5/kdebindings/qtruby
From: Richard Dale <Richard_Dale () tipitina ! demon ! co ! uk>
Date: 2007-02-19 18:17:54
Message-ID: 1171909074.171847.5219.nullmailer () svn ! kde ! org
[Download RAW message or body]
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@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@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@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@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!(/>$/, "")
_______________________________________________
Kde-bindings mailing list
Kde-bindings@kde.org
https://mail.kde.org/mailman/listinfo/kde-bindings
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic