private Method

Module.qt_methods(meths, flags, inc_super=true)

There's no documentation for this item.

Source Code

# File qt/qtruby4.rb, line 2706
def qt_methods(meths, flags, inc_super=true)
        if !self.kind_of? Class
                return meths
        end

        klass = self
        classid = 0
        loop do
                classid = Qt::Internal::find_pclassid(klass.name)
                break if classid > 0

                klass = klass.superclass
                if klass.nil?
                        return meths
                end
        end

        # These methods are all defined in Qt::Base, even if they aren't supported by a particular
        # subclass, so remove them to avoid confusion
        meths -= ["%", "&", "*", "**", "+", "-", "-@", "/", "<", "<<", "<=", ">", ">=", ">>", "|", "~", "^"]
        ids = []
        if inc_super
                Qt::Internal::getAllParents(classid, ids)
        end
        ids << classid
        ids.each { |c| Qt::Internal::findAllMethodNames(meths, c, flags) }
        return meths.uniq
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.