MCPcopy Create free account
hub / github.com/KDE/labplot / updatePosition

Method updatePosition

src/3rdparty/Qt-Advanced-Docking-System/src/DockOverlay.cpp:911–919  ·  view source on GitHub ↗

============================================================================

Source from the content-addressed store, hash-verified

909
910//============================================================================
911void CDockOverlayCross::updatePosition()
912{
913 resize(d->DockOverlay->size());
914 QPoint TopLeft = d->DockOverlay->pos();
915 QPoint Offest((this->width() - d->DockOverlay->width()) / 2,
916 (this->height() - d->DockOverlay->height()) / 2);
917 QPoint CrossTopLeft = TopLeft - Offest;
918 move(CrossTopLeft);
919}
920
921
922//============================================================================

Callers 2

showEventMethod · 0.95
showOverlayMethod · 0.45

Calls 3

heightMethod · 0.80
sizeMethod · 0.45
widthMethod · 0.45

Tested by

no test coverage detected