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

Method update_cursor_info

DSView/pv/dock/measuredock.cpp:737–759  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

735}
736
737void MeasureDock::update_cursor_info()
738{
739 auto &cursor_list = _view.get_cursorList();
740 auto mode_rows = get_mode_rows();
741
742 int num_cursors = cursor_list.size();
743 int num_rows = mode_rows->_opt_row_list.size();
744
745 if (num_rows == 0){
746 return;
747 }
748
749 assert(num_cursors == num_rows);
750
751 for(int i = 0; i < num_cursors; i++)
752 {
753 if (mode_rows->_opt_row_list[i].info_label != NULL){
754 QString cur_pos = _view.get_cm_time(i) + "/"
755 + QString::number(_view.get_cursor_samples(i));
756 mode_rows->_opt_row_list[i].info_label->setText(cur_pos);
757 }
758 }
759}
760
761void MeasureDock::set_cursor_btn_color(QPushButton *btn)
762{

Callers

nothing calls this directly

Calls 3

sizeMethod · 0.80
get_cm_timeMethod · 0.80
get_cursor_samplesMethod · 0.80

Tested by

no test coverage detected