MCPcopy Create free account
hub / github.com/WarmUpTill/SceneSwitcher / getBarRect

Method getBarRect

lib/utils/volume-control.cpp:1216–1226  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1214}
1215
1216QRect VolumeMeter::getBarRect() const
1217{
1218 QRect rec = rect();
1219 if (vertical)
1220 rec.setWidth(displayNrAudioChannels * (meterThickness + 1) - 1);
1221 else
1222 rec.setHeight(displayNrAudioChannels * (meterThickness + 1) -
1223 1);
1224
1225 return rec;
1226}
1227
1228void VolumeMeter::changeEvent(QEvent *e)
1229{

Callers 1

timerEventMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected