Class: Qt::MetaEnum

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

Instance Method Summary collapse

Methods inherited from Base

#%, #&, #*, #**, #+, #-, #[email protected], #/, #<, #<<, #<=, #==, #>, #>=, #>>, #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, #|, #~

Instance Method Details

#inspectObject


1412
1413
1414
1415
# File 'lib/Qt/qtruby4.rb', line 1412

def inspect
  str = super
  str.sub(/>$/, " scope=%s, name=%s, keyValues=Array (%d element(s))>" % [scope, name, keyValues.length])
end

#keyValuesObject


1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
# File 'lib/Qt/qtruby4.rb', line 1400

def keyValues()
  res = []
  for i in 0...keyCount()
    if flag?
      res.push "%s=0x%x" % [key(i), value(i)]
    else
      res.push "%s=%d" % [key(i), value(i)]
    end
  end
  return res
end

#name(*args) ⇒ Object


1396
1397
1398
# File 'lib/Qt/qtruby4.rb', line 1396

def name(*args)
  method_missing(:name, *args)
end

#pretty_print(pp) ⇒ Object


1417
1418
1419
1420
# File 'lib/Qt/qtruby4.rb', line 1417

def pretty_print(pp)
  str = to_s
  pp.text str.sub(/>$/, " scope=%s, name=%s, keyValues=Array (%d element(s))>" % [scope, name, keyValues.length])
end