Class: Qt::KeySequence

Inherits:
Base show all
Defined in:
lib/Qt/qtruby4.rb

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, #|, #~

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

#inspectObject



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