Qtruby4: rbuic4 -kde is always active (Suse Linux 11.0)

Hi,
Seems as when compiling *.ui files with rbuic4 -x it always generates
code for kde even if the -kde flag is omitted.

E.g: rbuic -x -i mainwindow.ui -o mainwindow.rb

The above example generates:

require ‘korundum4’
.
.
.
if $0 == FILE
about = KDE::AboutData.new(“mainwindow”, “MainWindow”,
KDE.ki18n(""), “0.1”)
KDE::CmdLineArgs.init(ARGV, about)
a = KDE::Application.new
u = Ui_MainWindow.new
w = Qt::MainWindow.new
u.setupUi(w)
a.topWidget = w
w.show
a.exec
end

As from what I have understood it should generate:

require ‘Qt’ or ‘Qt4’
.
.
.
if $0 == FILE
a = Qt::Application.new(ARGV)
u = Ui_MainWindow.new
w = Qt::MainWindow.new
u.setupUi(w)
w.show
a.exec
end

By replacing with what I’m expected the code runs. Have I misunderstood
something or is this is a known issue?

Environment:
Suse Linux 11.0 Linux 2.6.25.11-0.1-default #1 SMP 2008-07-13 20:48:28
+0200 i686 i686 i386 GNU/Linux
rbuic4 4.4.0
Qt Designer 4.4.1

Br,
Niclas Olsson

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs