[Kde-bindings] KDE/kdebindings/ruby/korundum

Richard Dale Richard_Dale at tipitina.demon.co.uk
Tue Sep 9 19:26:27 UTC 2008


SVN commit 859206 by rdale:

* The KDE::Dialog exec method was giving a ArgumentError exception.
  Also fixed some other classes with exec() methods. Problem reported 
  by Stefano Crocco

CCMAIL: kde-bindings at kde.org


 M  +6 -0      ChangeLog  
 M  +33 -0     src/lib/KDE/korundum4.rb  


--- trunk/KDE/kdebindings/ruby/korundum/ChangeLog #859205:859206
@@ -1,3 +1,9 @@
+2008-09-09  Richard Dale  <richard.j.dale at gmail.com>
+
+	* The KDE::Dialog exec method was giving a ArgumentError exception.
+	  Also fixed some other classes with exec() methods. Problem reported 
+	  by Stefano Crocco
+
 2008-09-04  Richard Dale  <richard.j.dale at gmail.com>
 
 	* Added a KSharedPtr<KMimeType> marshaller so that the 
--- trunk/KDE/kdebindings/ruby/korundum/src/lib/KDE/korundum4.rb #859205:859206
@@ -43,6 +43,7 @@
 		def initialize(*k)
 			super
 			$kapp = self
+			$qApp = self
 		end
 		
 		def exec
@@ -302,6 +303,12 @@
 		end
 	end
 
+	class Dialog < Qt::Base
+		def exec(*args)
+			method_missing(:exec, *args)
+		end
+	end
+
 	class DoubleNumInput < Qt::Base
 		def range=(arg)
 			if arg.kind_of? Range
@@ -338,6 +345,12 @@
 		end
 	end
 
+	class Job < Qt::Base
+		def exec(*args)
+			method_missing(:exec, *args)
+		end
+	end
+
 	class MainWindow < Qt::Base
 		# A sane alternative to the strange looking C++ template version.
 		# There is no need to pass a list of classes, as the Ruby classes
@@ -389,6 +402,18 @@
 		end
 	end
 
+	class PopupFrame < Qt::Base
+		def exec(*args)
+			method_missing(:exec, *args)
+		end
+	end
+
+	class ProtocolInfo < Qt::Base
+		def exec(*args)
+			method_missing(:exec, *args)
+		end
+	end
+
 	class Service < Qt::Base
 		def inspect
 			str = super
@@ -399,12 +424,20 @@
 			str = to_s
 			pp.text str.sub(/>$/, "\n library=%s,\n type=%s,\n name=%s>" % [library.inspect, type.inspect, name.inspect])
 		end
+
+		def exec(*args)
+			method_missing(:exec, *args)
+		end
 	end
 
 	class ServiceAction < Qt::Base
 		def name(*args)
 			method_missing(:name, *args)
 		end
+
+		def exec(*args)
+			method_missing(:exec, *args)
+		end
 	end
 
 	class Shortcut < Qt::Base



More information about the Kde-bindings mailing list