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
1357
1358
1359
1360
|
# File 'lib/Qt/qtruby4.rb', line 1357
def inspect
str = super
str.sub(/>$/, " scope=%s, name=%s, keyValues=Array (%d element(s))>" % [scope, name, keyValues.length])
end
|
#keyValues ⇒ Object
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
|
# File 'lib/Qt/qtruby4.rb', line 1345
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
1341
1342
1343
|
# File 'lib/Qt/qtruby4.rb', line 1341
def name(*args)
method_missing(:name, *args)
end
|
#pretty_print(pp) ⇒ Object
1362
1363
1364
1365
|
# File 'lib/Qt/qtruby4.rb', line 1362
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
|