Class: Ruber::OutputWidget::TreeView

Inherits:
Qt::TreeView
  • Object
show all
Defined in:
lib/ruber/output_widget.rb

Overview

Convenience class to be used instead of @Qt::TreeView@ in an Ruber::OutputWidget.

The only difference from @Qt::TreeVew@ is that it defines a #context_menu_requested signal and emits it from its #contextMenuEvent method

Instance Method Summary collapse

Instance Method Details

#contextMenuEvent(e) ⇒ Object

Override of @Qt::TreeView#contextMenuEvent@

It emits the #context_menu_requested signal



1131
1132
1133
1134
# File 'lib/ruber/output_widget.rb', line 1131

def contextMenuEvent e
  super e
  emit context_menu_requested(e.global_pos)
end