Class: Object
- Inherits:
- BasicObject
- Defined in:
- lib/qt_connect/qt_compat.rb
Overview
try using Qt.Variant type conversions if all else fails
Instance Method Summary collapse
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(m, *args, &block) ⇒ Object
650 651 652 653 654 655 |
# File 'lib/qt_connect/qt_compat.rb', line 650 def method_missing(m,*args,&block) #puts "missing #{m} for #{self.class} #{caller[0].split('/')[-1]}" method=((m==:toBool) || (m==:to_bool)) ? :toBoolean : m return Qt::Variant.send(method,self) if com.trolltech.qt.QVariant.respond_to? method return super end |