MCPcopy Create free account
hub / github.com/Sonic-DE/sonic-win / commitGeometry

Method commitGeometry

src/internalwindow.cpp:437–467  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

435}
436
437void InternalWindow::commitGeometry(const QRectF &rect)
438{
439 // The client geometry and the buffer geometry are the same.
440 const QRectF oldClientGeometry = m_clientGeometry;
441 const QRectF oldFrameGeometry = m_frameGeometry;
442 const Output *oldOutput = m_output;
443
444 Q_EMIT frameGeometryAboutToChange();
445
446 m_clientGeometry = frameRectToClientRect(rect);
447 m_frameGeometry = rect;
448 m_bufferGeometry = m_clientGeometry;
449
450 if (oldClientGeometry == m_clientGeometry && oldFrameGeometry == m_frameGeometry) {
451 return;
452 }
453
454 m_output = workspace()->outputAt(rect.center());
455 syncGeometryToInternalWindow();
456
457 if (oldClientGeometry != m_clientGeometry) {
458 Q_EMIT bufferGeometryChanged(oldClientGeometry);
459 Q_EMIT clientGeometryChanged(oldClientGeometry);
460 }
461 if (oldFrameGeometry != m_frameGeometry) {
462 Q_EMIT frameGeometryChanged(oldFrameGeometry);
463 }
464 if (oldOutput != m_output) {
465 Q_EMIT outputChanged();
466 }
467}
468
469void InternalWindow::setCaption(const QString &caption)
470{

Callers

nothing calls this directly

Calls 2

workspaceFunction · 0.85
outputAtMethod · 0.80

Tested by

no test coverage detected