Method: Clevic::TableView#selected_rows
- Defined in:
-
lib/clevic/qt/table_view.rb,
lib/clevic/swing/table_view.rb
return a collection of collections of SwingTableIndex objects indicating the indices of the current selection
75 76 77 78 79 80 81 82 83 84 85 |
# File 'lib/clevic/qt/table_view.rb', line 75 def selected_rows rows = [] selection_model.selection.each do |selection_range| (selection_range.top..selection_range.bottom).each do |row| rows << (selection_range.top_left.column..selection_range.bottom_right.column).map do |col| model.create_index( row, col ) end end end rows end |