Class: Qt::Variant

Inherits:
Object show all
Defined in:
lib/qtext/extensions.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.invalidObject

return an empty variant



293
294
295
# File 'lib/qtext/extensions.rb', line 293

def self.invalid
  @@invalid ||= Variant.new
end

Instance Method Details

#inspectObject



299
300
301
# File 'lib/qtext/extensions.rb', line 299

def inspect
  "#<Qt::Variant value=#{self.value} typeName=#{self.typeName}>"
end

#old_inspectObject

because the qtruby inspect doesn’t provide the value



298
# File 'lib/qtext/extensions.rb', line 298

alias_method :old_inspect, :inspect

#to_sObject

return the string of the value of this variant



304
305
306
# File 'lib/qtext/extensions.rb', line 304

def to_s
  self.value.to_s
end