MCPcopy Create free account
hub / github.com/YACReader/yacreader / updateImage

Method updateImage

YACReader/magnifying_glass.cpp:31–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29}
30
31void MagnifyingGlass::updateImage(int x, int y)
32{
33 auto *const viewer = qobject_cast<const Viewer *>(parentWidget());
34 QImage img = viewer->grabMagnifiedRegion(QPoint(x, y), size(), zoomLevel);
35 setPixmap(QPixmap::fromImage(img));
36 move(static_cast<int>(x - float(width()) / 2), static_cast<int>(y - float(height()) / 2));
37}
38
39void MagnifyingGlass::updateImage()
40{

Callers 1

showMagnifyingGlassMethod · 0.80

Calls 2

QPointClass · 0.85
grabMagnifiedRegionMethod · 0.80

Tested by

no test coverage detected