[Kde-bindings] issues with KTextEditor interfaces in ruby bindings

Stefano Crocco stefano.crocco at alice.it
Sun Jul 10 08:32:55 UTC 2011


Hello to everyone,

I just found out a couple of issues with the KDE ruby bindings (KDE 4.7 RC 1) 
and some of the KTextEditor interfaces. The first issue is that the 
KTextEditor::MovingInterface, and the associated classes 
KTextEditor::MovingCursor and KTextEditor::MovingRange are not implemented 
(just look at the constants defined under the KTextEditor module).

The second issue is that calling the marks method of the 
KTextEditor::MarkInterface raises an exception saying it can't handle
'const QHash<int,KTextEditor::Mark*>&' as return-type. You can check this by 
running the following code:

require 'korundum4'
require 'ktexteditor'
data = KDE::AboutData.new "test", "", KDE::ki18n("Test"), '0.0.0',
    KDE.ki18n('A Test Application'), KDE::AboutData::License_GPL
KDE::CmdLineArgs.init ARGV, data
opts = KDE::CmdLineOptions.new
app = KDE::Application.new
doc = KTextEditor::EditorChooser.editor('katepart').create_document(nil)
doc.qobject_cast(KTextEditor::MarkInterface).marks

Thanks for your attention

Stefano



More information about the Kde-bindings mailing list