Class: Qt::TableWidget

Inherits:
Object show all
Defined in:
lib/cosmos/tools/cmd_tlm_server/cmd_tlm_server_gui.rb,
lib/cosmos/gui/qt.rb

Overview

For the CTS we display all the tables as full size Thus we don’t want the table to absorb the scroll wheel events but instead pass them up to the container so the entire window will scroll.

Instance Method Summary collapse

Instance Method Details

#displayFullSizeObject

Resizes the table, turns off scroll bars, and sets the minimum and maximum sizes to the full size of the table with all the elements in view



278
279
280
281
282
283
284
285
286
287
# File 'lib/cosmos/gui/qt.rb', line 278

def displayFullSize
  resizeColumnsToContents()
  resizeRowsToContents()
  setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff)
  setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff)
  setMinimumSize(2*frameWidth() + horizontalHeader.length + verticalHeader.width,
                 2*frameWidth() + verticalHeader.length + horizontalHeader.height)
  setMaximumSize(2*frameWidth() + horizontalHeader.length + verticalHeader.width,
                 2*frameWidth() + verticalHeader.length + horizontalHeader.height)
end

#wheelEvent(event) ⇒ Object



38
39
40
# File 'lib/cosmos/tools/cmd_tlm_server/cmd_tlm_server_gui.rb', line 38

def wheelEvent(event)
  event.ignore()
end