Class: Qt::Action

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

Instance Method Details

#setShortcut(arg) ⇒ Object



223
224
225
226
227
228
229
# File 'lib/qt/qtruby4.rb', line 223

def setShortcut(arg)
	if arg.kind_of?(String)
		return super(Qt::KeySequence.new(arg))
	else
		return super(arg)
	end
end

#shortcut=(arg) ⇒ Object



231
232
233
# File 'lib/qt/qtruby4.rb', line 231

def shortcut=(arg)
	setShortcut(arg)
end