Class: Object
- Inherits:
- BasicObject
- Defined in:
- lib/qtext/extensions.rb
Overview
Because Qt::Variant.new( obj ) is a PITA to type
Instance Method Summary collapse
Instance Method Details
#to_variant ⇒ Object
10 11 12 13 14 15 16 |
# File 'lib/qtext/extensions.rb', line 10 def to_variant begin Qt::Variant.fromValue( self ) rescue Exception => e raise RuntimeError, "error converting #{self.inspect} to variant", e.backtrace end end |