| 214 | } |
| 215 | |
| 216 | void FrameHandler::slotVideoControlChanged() |
| 217 | { |
| 218 | // Update the controls and get the new selected size |
| 219 | auto newSize = getNewSizeFromControls(); |
| 220 | DEBUG_FRAME( |
| 221 | "FrameHandler::slotVideoControlChanged new size %dx%d", newSize.width, newSize.height); |
| 222 | |
| 223 | if (newSize != frameSize && newSize.isValid()) |
| 224 | { |
| 225 | // Set the new size and update the controls. |
| 226 | this->setFrameSize(newSize); |
| 227 | // The frame size changed. We need to redraw/re-cache. |
| 228 | emit signalHandlerChanged(true, RECACHE_CLEAR); |
| 229 | } |
| 230 | } |
| 231 | |
| 232 | Size FrameHandler::getNewSizeFromControls() |
| 233 | { |
nothing calls this directly
no test coverage detected