MCPcopy Create free account
hub / github.com/OpenBoard-org/OpenBoard / updatePosition

Method updatePosition

src/domain/UBGraphicsWidgetItem.cpp:465–472  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

463}
464
465void UBGraphicsWidgetItem::updatePosition()
466{
467 // partial workaround for QTBUG-109068 to forward the position of the item
468 // on the scene to the QWebEngineView
469 QSize actualSize = size().toSize();
470 mWebEngineView->resize(actualSize - QSize(1,1));
471 mWebEngineView->resize(actualSize);
472}
473
474void UBGraphicsWidgetItem::setSnapshot(const QPixmap& pix, bool frozen)
475{

Callers 3

OpenLayers.jsFile · 0.80
mouseReleaseEventMethod · 0.80
foreachFunction · 0.80

Calls 1

resizeMethod · 0.45

Tested by

no test coverage detected