| 888 | } |
| 889 | |
| 890 | int View::headerWidth() |
| 891 | { |
| 892 | int headerWidth = _header->get_nameEditWidth(); |
| 893 | |
| 894 | std::vector<Trace*> traces; |
| 895 | get_traces(ALL_VIEW, traces); |
| 896 | |
| 897 | if (!traces.empty()) |
| 898 | { |
| 899 | for(auto t : traces){ |
| 900 | int w = t->get_name_width() + t->get_leftWidth() + t->get_rightWidth(); |
| 901 | headerWidth = max(w, headerWidth); |
| 902 | } |
| 903 | } |
| 904 | |
| 905 | setViewportMargins(headerWidth, RulerHeight, 0, 0); |
| 906 | |
| 907 | return headerWidth; |
| 908 | } |
| 909 | |
| 910 | void View::resizeEvent(QResizeEvent*) |
| 911 | { |
nothing calls this directly
no test coverage detected