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

Function measure_string

DSView/pv/ui/fn.cpp:151–156  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

149 }
150
151 QSize measure_string(QFont font, QString str)
152 {
153 QFontMetrics fm(font);
154 QRect rc = fm.boundingRect(str);
155 return rc.size();
156 }
157
158 void adjust_label_size(QLabel *ctrl, AdjustSizeAction action)
159 {

Callers 1

adjust_label_sizeFunction · 0.85

Calls 1

sizeMethod · 0.80

Tested by

no test coverage detected