MCPcopy Index your code
hub / github.com/DreamSourceLab/DSView / del_cursor

Method del_cursor

DSView/pv/dock/measuredock.cpp:910–934  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

908}
909
910void MeasureDock::del_cursor()
911{
912 auto *src = qobject_cast<QToolButton *>(sender());
913 assert(src);
914
915 Cursor* cursor = NULL;
916 auto &cursor_list = _view.get_cursorList();
917 auto mode_rows = get_mode_rows();
918
919 for (auto it = mode_rows->_opt_row_list.begin(); it != mode_rows->_opt_row_list.end(); it++)
920 {
921 if ((*it).del_bt == src){
922 cursor = (*it).cursor;
923 break;
924 }
925 }
926
927 if (cursor)
928 _view.del_cursor(cursor);
929 if (cursor_list.empty())
930 _view.show_cursors(false);
931
932 cursor_update();
933 _view.update();
934}
935
936void MeasureDock::UpdateLanguage()
937{

Callers

nothing calls this directly

Calls 4

emptyMethod · 0.80
show_cursorsMethod · 0.80
endMethod · 0.45
updateMethod · 0.45

Tested by

no test coverage detected