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

Method headerWidth

DSView/pv/view/view.cpp:890–908  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

888}
889
890int 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
910void View::resizeEvent(QResizeEvent*)
911{

Callers

nothing calls this directly

Calls 5

get_nameEditWidthMethod · 0.80
emptyMethod · 0.80
get_leftWidthMethod · 0.80
get_rightWidthMethod · 0.80
get_name_widthMethod · 0.45

Tested by

no test coverage detected