Class: Ruber::OutputWidget::ListView
- Defined in:
- lib/ruber/output_widget.rb
Overview
Convenience class to be used instead of @Qt::ListView@ in an Ruber::OutputWidget.
The only difference from @Qt::ListVew@ is that it defines a @context_menu_requested(QPoint)@ signal and emits it from its #contextMenuEvent method
Instance Method Summary collapse
-
#contextMenuEvent(e) ⇒ Object
Override of @Qt::ListView#contextMenuEvent@.
Instance Method Details
#contextMenuEvent(e) ⇒ Object
Override of @Qt::ListView#contextMenuEvent@
It emits the #context_menu_requested signal
1105 1106 1107 1108 |
# File 'lib/ruber/output_widget.rb', line 1105 def contextMenuEvent e super e emit (e.global_pos) end |