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

Method showMagnifyingGlass

YACReader/viewer.cpp:1091–1101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1089}
1090
1091void Viewer::showMagnifyingGlass()
1092{
1093 if (render->hasLoadedComic()) {
1094 QPoint p = QPoint(cursor().pos().x(), cursor().pos().y());
1095 p = this->parentWidget()->mapFromGlobal(p);
1096 mglass->move(static_cast<int>(p.x() - float(mglass->width()) / 2), static_cast<int>(p.y() - float(mglass->height()) / 2));
1097 mglass->show();
1098 mglass->updateImage(mglass->x() + mglass->width() / 2, mglass->y() + mglass->height() / 2);
1099 setMagnifyingGlassShown(true);
1100 }
1101}
1102
1103void Viewer::hideMagnifyingGlass()
1104{

Callers 2

toFullScreenMethod · 0.80
toNormalMethod · 0.80

Calls 4

QPointClass · 0.85
hasLoadedComicMethod · 0.80
updateImageMethod · 0.80
showMethod · 0.45

Tested by

no test coverage detected