MCPcopy Create free account
hub / github.com/DreamSourceLab/DSView / column_resize

Method column_resize

DSView/pv/dock/protocoldock.cpp:597–611  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

595}
596
597void ProtocolDock::column_resize(int index, int old_size, int new_size)
598{
599 (void)index;
600 (void)old_size;
601 (void)new_size;
602 pv::data::DecoderModel *decoder_model = _session->get_decoder_model();
603 if (decoder_model->getDecoderStack()) {
604 int top_row = _table_view->rowAt(0);
605 int bom_row = _table_view->rowAt(_table_view->height());
606 if (bom_row >= top_row && top_row >= 0) {
607 for (int i = top_row; i <= bom_row; i++)
608 _table_view->resizeRowToContents(i);
609 }
610 }
611}
612
613void ProtocolDock::export_table_view()
614{

Callers

nothing calls this directly

Calls 2

get_decoder_modelMethod · 0.80
getDecoderStackMethod · 0.80

Tested by

no test coverage detected