Class: Qt::KeySequence
Instance Method Summary collapse
-
#initialize(*args) ⇒ KeySequence
constructor
A new instance of KeySequence.
- #inspect ⇒ Object
- #pretty_print(pp) ⇒ Object
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(*args) ⇒ KeySequence
Returns a new instance of KeySequence.
1323 1324 1325 1326 1327 1328 |
# File 'lib/Qt/qtruby4.rb', line 1323 def initialize(*args) if args.length == 1 && args[0].kind_of?(Qt::Enum) && args[0].type == "Qt::Key" return super(args[0].to_i) end return super(*args) end |
Instance Method Details
#inspect ⇒ Object
1330 1331 1332 1333 |
# File 'lib/Qt/qtruby4.rb', line 1330 def inspect str = super str.sub(/>$/, " %s>" % toString) end |
#pretty_print(pp) ⇒ Object
1335 1336 1337 1338 |
# File 'lib/Qt/qtruby4.rb', line 1335 def pretty_print(pp) str = to_s pp.text str.sub(/>$/, " %s>" % toString) end |