mirror of
https://github.com/YACReader/yacreader
synced 2025-06-03 00:58:32 -04:00
Fix a typo in Viewer::magnifyingGlassShowed name
Make Viewer::magnifyingGlassIsVisible() const.
This commit is contained in:
parent
c8697ccd2d
commit
5254e66da3
@ -36,7 +36,7 @@ Viewer::Viewer(QWidget *parent)
|
|||||||
drag(false),
|
drag(false),
|
||||||
shouldOpenNext(false),
|
shouldOpenNext(false),
|
||||||
shouldOpenPrevious(false),
|
shouldOpenPrevious(false),
|
||||||
magnifyingGlassShowed(false),
|
magnifyingGlassShown(false),
|
||||||
restoreMagnifyingGlass(false)
|
restoreMagnifyingGlass(false)
|
||||||
{
|
{
|
||||||
translator = new YACReaderTranslator(this);
|
translator = new YACReaderTranslator(this);
|
||||||
@ -715,7 +715,7 @@ void Viewer::mouseMoveEvent(QMouseEvent *event)
|
|||||||
showCursor();
|
showCursor();
|
||||||
hideCursorTimer->start(2500);
|
hideCursorTimer->start(2500);
|
||||||
|
|
||||||
if (magnifyingGlassShowed)
|
if (magnifyingGlassShown)
|
||||||
mglass->move(static_cast<int>(event->x() - float(mglass->width()) / 2), static_cast<int>(event->y() - float(mglass->height()) / 2));
|
mglass->move(static_cast<int>(event->x() - float(mglass->width()) / 2), static_cast<int>(event->y() - float(mglass->height()) / 2));
|
||||||
|
|
||||||
if (render->hasLoadedComic()) {
|
if (render->hasLoadedComic()) {
|
||||||
@ -759,7 +759,7 @@ QPixmap Viewer::pixmap() const
|
|||||||
|
|
||||||
void Viewer::magnifyingGlassSwitch()
|
void Viewer::magnifyingGlassSwitch()
|
||||||
{
|
{
|
||||||
magnifyingGlassShowed ? hideMagnifyingGlass() : showMagnifyingGlass();
|
magnifyingGlassShown ? hideMagnifyingGlass() : showMagnifyingGlass();
|
||||||
}
|
}
|
||||||
|
|
||||||
void Viewer::showMagnifyingGlass()
|
void Viewer::showMagnifyingGlass()
|
||||||
@ -770,14 +770,14 @@ void Viewer::showMagnifyingGlass()
|
|||||||
mglass->move(static_cast<int>(p.x() - float(mglass->width()) / 2), static_cast<int>(p.y() - float(mglass->height()) / 2));
|
mglass->move(static_cast<int>(p.x() - float(mglass->width()) / 2), static_cast<int>(p.y() - float(mglass->height()) / 2));
|
||||||
mglass->show();
|
mglass->show();
|
||||||
mglass->updateImage(mglass->x() + mglass->width() / 2, mglass->y() + mglass->height() / 2);
|
mglass->updateImage(mglass->x() + mglass->width() / 2, mglass->y() + mglass->height() / 2);
|
||||||
magnifyingGlassShowed = true;
|
magnifyingGlassShown = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void Viewer::hideMagnifyingGlass()
|
void Viewer::hideMagnifyingGlass()
|
||||||
{
|
{
|
||||||
mglass->hide();
|
mglass->hide();
|
||||||
magnifyingGlassShowed = false;
|
magnifyingGlassShown = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
void Viewer::informationSwitch()
|
void Viewer::informationSwitch()
|
||||||
@ -932,7 +932,7 @@ void Viewer::resetContent()
|
|||||||
|
|
||||||
void Viewer::setLoadingMessage()
|
void Viewer::setLoadingMessage()
|
||||||
{
|
{
|
||||||
if (magnifyingGlassShowed) {
|
if (magnifyingGlassShown) {
|
||||||
hideMagnifyingGlass();
|
hideMagnifyingGlass();
|
||||||
restoreMagnifyingGlass = true;
|
restoreMagnifyingGlass = true;
|
||||||
}
|
}
|
||||||
@ -942,7 +942,7 @@ void Viewer::setLoadingMessage()
|
|||||||
|
|
||||||
void Viewer::setPageUnavailableMessage()
|
void Viewer::setPageUnavailableMessage()
|
||||||
{
|
{
|
||||||
if (magnifyingGlassShowed) {
|
if (magnifyingGlassShown) {
|
||||||
hideMagnifyingGlass();
|
hideMagnifyingGlass();
|
||||||
restoreMagnifyingGlass = true;
|
restoreMagnifyingGlass = true;
|
||||||
}
|
}
|
||||||
|
@ -78,7 +78,7 @@ public slots:
|
|||||||
void animateHideGoToFlow();
|
void animateHideGoToFlow();
|
||||||
void rotateLeft();
|
void rotateLeft();
|
||||||
void rotateRight();
|
void rotateRight();
|
||||||
bool magnifyingGlassIsVisible() { return magnifyingGlassShowed; }
|
bool magnifyingGlassIsVisible() const { return magnifyingGlassShown; }
|
||||||
void setBookmark(bool);
|
void setBookmark(bool);
|
||||||
void save();
|
void save();
|
||||||
void doublePageSwitch();
|
void doublePageSwitch();
|
||||||
@ -157,7 +157,7 @@ private:
|
|||||||
private:
|
private:
|
||||||
//! Magnifying glass
|
//! Magnifying glass
|
||||||
MagnifyingGlass *mglass;
|
MagnifyingGlass *mglass;
|
||||||
bool magnifyingGlassShowed;
|
bool magnifyingGlassShown;
|
||||||
bool restoreMagnifyingGlass;
|
bool restoreMagnifyingGlass;
|
||||||
|
|
||||||
//! Manejadores de evento:
|
//! Manejadores de evento:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user