Class: Qt::MetaEnum
Instance Method Summary
collapse
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, #|, #~
Instance Method Details
1391
1392
1393
1394
|
# File 'lib/Qt/qtruby4.rb', line 1391
def inspect
str = super
str.sub(/>$/, " scope=%s, name=%s, keyValues=Array (%d element(s))>" % [scope, name, keyValues.length])
end
|
#keyValues ⇒ Object
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
|
# File 'lib/Qt/qtruby4.rb', line 1379
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
1375
1376
1377
|
# File 'lib/Qt/qtruby4.rb', line 1375
def name(*args)
method_missing(:name, *args)
end
|
#pretty_print(pp) ⇒ Object
1396
1397
1398
1399
|
# File 'lib/Qt/qtruby4.rb', line 1396
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
|