Class: Ruber::OutputWidget::TreeView
- Inherits:
-
Qt::TreeView
- Object
- Qt::TreeView
- Ruber::OutputWidget::TreeView
- Defined in:
- lib/ruber/output_widget.rb,
lib/ruber/output_widget.rb,
lib/ruber/output_widget.rb,
lib/ruber/output_widget.rb,
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)
-
- (Object) contextMenuEvent(e)
Override of
Qt::TreeView#contextMenuEvent
.
Signal Summary
-
- context_menu_requested(QPoint pt)
Signal emitted when the user right-clicks on the view.
Instance Method Details
- (Object) contextMenuEvent(e)
Override of Qt::TreeView#contextMenuEvent
It emits the #context_menu_requested signal
1118 1119 1120 1121 |
# File 'lib/ruber/output_widget.rb', line 1118 def contextMenuEvent e super e emit (e.global_pos) end |
Signal Details
Signal emitted when the user right-clicks on the view