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.
1268 1269 1270 1271 1272 1273 |
# File 'lib/Qt/qtruby4.rb', line 1268 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
1275 1276 1277 1278 |
# File 'lib/Qt/qtruby4.rb', line 1275 def inspect str = super str.sub(/>$/, " %s>" % toString) end |
#pretty_print(pp) ⇒ Object
1280 1281 1282 1283 |
# File 'lib/Qt/qtruby4.rb', line 1280 def pretty_print(pp) str = to_s pp.text str.sub(/>$/, " %s>" % toString) end |