Method: Qt::MetaObject#propertyNames
- Defined in:
- lib/Qt/qtruby4.rb
#propertyNames(inherits = false) ⇒ Object
Add three methods, ‘propertyNames()’, ‘slotNames()’ and ‘signalNames()’ from Qt3, as they are very useful when debugging
1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 |
# File 'lib/Qt/qtruby4.rb', line 1458 def propertyNames(inherits = false) res = [] if inherits for p in 0...propertyCount() res.push property(p).name end else for p in propertyOffset()...propertyCount() res.push property(p).name end end return res end |