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.
1302 1303 1304 1305 1306 1307 |
# File 'lib/Qt/qtruby4.rb', line 1302 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
1309 1310 1311 1312 |
# File 'lib/Qt/qtruby4.rb', line 1309 def inspect str = super str.sub(/>$/, " %s>" % toString) end |
#pretty_print(pp) ⇒ Object
1314 1315 1316 1317 |
# File 'lib/Qt/qtruby4.rb', line 1314 def pretty_print(pp) str = to_s pp.text str.sub(/>$/, " %s>" % toString) end |