MCPcopy Create free account
hub / github.com/actuallyaridan/linux-devmgmt / propertyLabelWidth

Function propertyLabelWidth

src/ui/DevicePropertiesDialog.cpp:172–176  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

170}
171
172static int propertyLabelWidth(const QWidget *ref) {
173 QFontMetrics fm(ref->font());
174 // "Driver Provider:" is the widest label across General and Driver tabs.
175 return fm.horizontalAdvance("Driver Provider:") + 4;
176}
177
178QWidget *DevicePropertiesDialog::buildGeneralTab() {
179 auto *w = new QWidget;

Callers 2

buildGeneralTabMethod · 0.85
buildDriverTabMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected