* Added command line tool example similar to 'sopranocmd'
[kdebindings.git] / ruby / qtwebkit / qtwebkit.rb
blob118d8794e8c3f9aa7baadfac775c9d012677067c
1 #!/usr/bin/ruby
3 module QtWebKit
4     module Internal
5         def self.init_all_classes
6             getClassList.each do |c|
7                 classname = Qt::Internal::normalize_classname(c)
8                 id = Qt::Internal::findClass(c);
9                 Qt::Internal::insert_pclassid(classname, id)
10                 Qt::Internal::cpp_names[classname] = c
11                 klass = Qt::Internal::isQObject(c) ? Qt::Internal::create_qobject_class(classname, Qt) \
12                                                     : Qt::Internal::create_qt_class(classname, Qt)
13                 Qt::Internal::classes[classname] = klass unless klass.nil?
14             end
15         end
16     end
17 end