MCPcopy Create free account
hub / github.com/CalcProgrammer1/OpenRGB / resizeEvent

Method resizeEvent

qt/DeviceView.cpp:690–701  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

688}
689
690void DeviceView::resizeEvent(QResizeEvent* /*event*/)
691{
692 size = width();
693 offset_x = 0;
694
695 if(height() < size * matrix_h)
696 {
697 size = height() / matrix_h;
698 offset_x = (width() - size) / 2;
699 }
700 update();
701}
702
703void DeviceView::paintEvent(QPaintEvent* /* event */)
704{

Callers

nothing calls this directly

Calls 1

updateFunction · 0.50

Tested by

no test coverage detected