Class: Qt::KeySequence

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

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ KeySequence

Returns a new instance of KeySequence.



1339
1340
1341
1342
1343
1344
# File 'lib/Qt/qtruby4.rb', line 1339

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



1346
1347
1348
1349
# File 'lib/Qt/qtruby4.rb', line 1346

def inspect
  str = super
  str.sub(/>$/, " %s>" % toString)
end

#pretty_print(pp) ⇒ Object



1351
1352
1353
1354
# File 'lib/Qt/qtruby4.rb', line 1351

def pretty_print(pp)
  str = to_s
  pp.text str.sub(/>$/, " %s>" % toString)
end