| 908 | } |
| 909 | |
| 910 | void 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 | |
| 936 | void MeasureDock::UpdateLanguage() |
| 937 | { |
nothing calls this directly
no test coverage detected