| 1089 | } |
| 1090 | |
| 1091 | void 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 | |
| 1103 | void Viewer::hideMagnifyingGlass() |
| 1104 | { |
no test coverage detected