[Kde-bindings] KDE/kdebindings/ruby/korundum
Richard Dale
Richard_Dale at tipitina.demon.co.uk
Mon Mar 31 10:51:27 UTC 2008
SVN commit 792124 by rdale:
* Fixed problem with the KDE::CmdLineOptions.add() method reported by Andreas
Pakulat - it will now convert String args to Qt::ByteArrays
CCMAIL: kde-bindings at kde.org
M +5 -0 ChangeLog
M +1 -1 examples/kurldemo.rb
M +11 -0 src/lib/KDE/korundum4.rb
--- trunk/KDE/kdebindings/ruby/korundum/ChangeLog #792123:792124
@@ -1,3 +1,8 @@
+2008-03-31 Richard Dale <rdale at foton.es>
+
+ * Fixed problem with the KDE::CmdLineOptions.add() method reported by Andreas
+ Pakulat - it will now convert String args to Qt::ByteArrays
+
2008-03-28 Richard Dale <rdale at foton.es>
* Literals in a Soprano ActiveRDF SPARQL query result set are now returned as
--- trunk/KDE/kdebindings/ruby/korundum/examples/kurldemo.rb #792123:792124
@@ -101,7 +101,7 @@
KDE::CmdLineArgs.init(ARGV, aboutData)
cmdlineoptions = KDE::CmdLineOptions.new()
-#cmdlineoptions.add("+files", KDE.ki18n("File to open"))
+cmdlineoptions.add("+files", KDE.ki18n("File to open"))
KDE::CmdLineArgs.addCmdLineOptions(cmdlineoptions)
app = KDE::Application.new()
--- trunk/KDE/kdebindings/ruby/korundum/src/lib/KDE/korundum4.rb #792123:792124
@@ -194,6 +194,17 @@
end
end
+ class CmdLineOptions
+ def add(*args)
+ sargs = []
+ arg = args.shift
+ sargs << (arg.kind_of?(String) ? Qt::ByteArray.new(arg) : arg) unless arg.nil?
+ sargs << args.shift unless args.empty?
+ sargs << (arg.kind_of?(String) ? Qt::ByteArray.new(arg) : arg) unless arg.nil?
+ super(*sargs)
+ end
+ end
+
class Service
def inspect
str = super
More information about the Kde-bindings
mailing list