Class: Ruber::OutputWidget::TableView

Inherits:
Qt::TableView
  • Object
show all
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::TableView in an Ruber::OutputWidget.

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

Instance Method Summary (collapse)

Signal Summary

Instance Method Details

- (Object) contextMenuEvent(e)

Override of Qt::TableView#contextMenuEvent

It emits the #context_menu_requested signal



1144
1145
1146
1147
# File 'lib/ruber/output_widget.rb', line 1144

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

Signal Details

- context_menu_requested(QPoint pt)

Signal emitted when the user right-clicks on the view

Parameters:

  • pt (Qt::Point)

    the point where the user clicked