Class: Qt::KeySequence

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

Instance Method Summary collapse

Methods inherited from Base

#%, #&, #*, #**, #+, #-, #-@, #/, #<, #<<, #<=, #==, #>, #>=, #>>, #^, #methods, #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.



883
884
885
886
887
888
# File 'lib/qt/qtruby4.rb', line 883

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