~kubuntu-members/korundum/4.11

« back to all changes in this revision

Viewing changes to qtruby/modules/qtdeclarative/qtdeclarative.rb

  • Committer: Ian Monroe
  • Date: 2010-11-21 15:55:01 UTC
  • Revision ID: git-v1:c37670e4e3c59f5eb2ba112f5341a5e706217f6f
Split up Smoke into Qt and KDE directories. 
Move libsmoke stuff into the generator directory
Split up Ruby into qtruby and korundum directories

svn path=/trunk/KDE/kdebindings/ruby/; revision=1199320

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/ruby
 
2
 
 
3
module QtDeclarative
 
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