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.



2373
2374
2375
2376
2377
2378
2379
# File 'lib/Qt/qtruby4.rb', line 2373

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



2381
2382
# File 'lib/Qt/qtruby4.rb', line 2381

def setVariant(variant)
end

#variantObject



2388
2389
2390
# File 'lib/Qt/qtruby4.rb', line 2388

def variant()
  return self
end

#variant=(variant) ⇒ Object



2384
2385
2386
# File 'lib/Qt/qtruby4.rb', line 2384

def variant=(variant)
  setVariant(variant)
end