[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-bindings
Subject:    [Kde-bindings] KDE/kdebindings/qtruby
From:       Richard Dale <Richard_Dale () tipitina ! demon ! co ! uk>
Date:       2006-12-16 9:40:27
Message-ID: 1166262027.012209.29012.nullmailer () svn ! kde ! org
[Download RAW message or body]

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@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@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@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!(/>$/, "")
_______________________________________________
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