[Kde-bindings] KDE/kdebindings/qtruby
Richard Dale
Richard_Dale at tipitina.demon.co.uk
Sat Dec 16 09:40:27 UTC 2006
SVN commit 614089 by rdale:
* Added the painting/fontsampler example
* There is no way to distinguish between the two copy constructors:
QTreeWidgetItem (const QTreeWidgetItem & other)
QTreeWidgetItem (QTreeWidgetItem * parent, const QStringList &
strings, int type = Type)
when the latter has a single argument. So force the second variant to
be called
CCMAIL: kde-bindings at kde.org
M +10 -0 ChangeLog
M +1 -1 rubylib/examples/designer/calculatorform/makefile
A rubylib/examples/painting/fontsampler (directory)
A rubylib/examples/painting/fontsampler/main.rb
A rubylib/examples/painting/fontsampler/mainwindow.rb
A rubylib/examples/painting/fontsampler/mainwindowbase.ui
A rubylib/examples/painting/fontsampler/makefile
A rubylib/examples/painting/fontsampler/previewdialog.rb
A rubylib/examples/painting/fontsampler/previewdialogbase.ui
A rubylib/examples/painting/fontsampler/previewlabel.rb
M +13 -0 rubylib/qtruby/lib/Qt/qtruby4.rb
--- trunk/KDE/kdebindings/qtruby/ChangeLog #614088:614089
@@ -1,3 +1,13 @@
+2006-12-16 Richard Dale <rdale at foton.es>
+
+ * Added the painting/fontsampler example
+ * There is no way to distinguish between the two copy constructors:
+ QTreeWidgetItem (const QTreeWidgetItem & other)
+ QTreeWidgetItem (QTreeWidgetItem * parent, const QStringList &
+ strings, int type = Type)
+ when the latter has a single argument. So force the second variant to
+ be called
+
2006-12-14 Richard Dale <rdale at foton.es>
* Added the painting/svgviewer example
--- trunk/KDE/kdebindings/qtruby/rubylib/examples/designer/calculatorform/makefile #614088:614089
@@ -1,3 +1,3 @@
ui_calculatorform.rb: calculatorform.ui
- rbuic calculatorform.ui -o ui_calculatorform.rb
+ rbuic4 calculatorform.ui -o ui_calculatorform.rb
--- trunk/KDE/kdebindings/qtruby/rubylib/qtruby/lib/Qt/qtruby4.rb #614088:614089
@@ -1532,6 +1532,19 @@
class TreeWidgetItem < Qt::Base
include Enumerable
+ def initialize(*args)
+ # There is not way to distinguish between the copy constructor
+ # QTreeWidgetItem (const QTreeWidgetItem & other)
+ # and
+ # QTreeWidgetItem (QTreeWidgetItem * parent, const QStringList & strings, int type = Type)
+ # when the latter has a single argument. So force the second variant to be called
+ if args.length == 1 && args[0].kind_of?(Qt::TreeWidgetItem)
+ super(args[0], Qt::TreeWidgetItem::Type)
+ else
+ super(*args)
+ end
+ end
+
def inspect
str = super
str.sub!(/>$/, "")
More information about the Kde-bindings
mailing list