Class: Qt::MetaObject

Inherits:
Object show all
Defined in:
lib/rui/toolkits/qtbase/qt.rb

Instance Method Summary collapse

Instance Method Details

#create_signal_mapObject



205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
# File 'lib/rui/toolkits/qtbase/qt.rb', line 205

def create_signal_map
  map = {}
  (0...methodCount).map do |i|
    m = method(i)
    if m.methodType == Qt::MetaMethod::Signal
      sign = m.signature 
      sign =~ /^(.*)\(.*\)$/
      sig = $1.underscore.to_sym
      val = [sign, m.parameterTypes]
      map[sig] ||= []
      map[sig] << val
    end
  end
  map
end