Class: Qt::DBusVariant

Inherits:
Variant show all
Defined in:
lib/Qt/qtruby4.rb

Constant Summary

Constants inherited from Variant

Variant::Date, Variant::DateTime, Variant::String, Variant::Time

Instance Method Summary collapse

Methods inherited from Variant

#inspect, #load, #pretty_print, #to_a, #to_f, #to_i, #to_int, #type, #value

Methods inherited from Base

#%, #&, #*, #**, #+, #-, #-@, #/, #<, #<<, #<=, #==, #>, #>=, #>>, #QCOMPARE, #QEXPECT_FAIL, #QFAIL, #QSKIP, #QTEST, #QVERIFY, #QVERIFY2, #QWARN, #^, ancestors, #is_a?, #methods, private_slots, #protected_methods, #public_methods, q_classinfo, q_signal, q_slot, signals, #singleton_methods, slots, #|, #~

Constructor Details

#initialize(value) ⇒ DBusVariant

Returns a new instance of DBusVariant



2400
2401
2402
2403
2404
2405
2406
# File 'lib/Qt/qtruby4.rb', line 2400

def initialize(value)
  if value.kind_of? Qt::Variant
    super(value)
  else
    super(Qt::Variant.new(value))
  end
end

Instance Method Details

#setVariant(variant) ⇒ Object



2408
2409
# File 'lib/Qt/qtruby4.rb', line 2408

def setVariant(variant)
end

#variantObject



2415
2416
2417
# File 'lib/Qt/qtruby4.rb', line 2415

def variant()
  return self
end

#variant=(variant) ⇒ Object



2411
2412
2413
# File 'lib/Qt/qtruby4.rb', line 2411

def variant=(variant)
  setVariant(variant)
end