Class: Cosmos::PryLineEdit

Inherits:
Qt::LineEdit show all
Defined in:
lib/cosmos/gui/dialogs/pry_dialog.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Qt::LineEdit

#setColors, #text=

Instance Attribute Details

#keyPressCallbackObject

Returns the value of attribute keyPressCallback.



22
23
24
# File 'lib/cosmos/gui/dialogs/pry_dialog.rb', line 22

def keyPressCallback
  @keyPressCallback
end

Instance Method Details

#keyPressEvent(event) ⇒ Object



23
24
25
26
# File 'lib/cosmos/gui/dialogs/pry_dialog.rb', line 23

def keyPressEvent(event)
  call_super = @keyPressCallback.call(event)
  super(event) if call_super
end