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

Method toggleFitToWidthSlider

YACReader/main_window_viewer.cpp:1484–1504  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1482}
1483
1484void MainWindowViewer::toggleFitToWidthSlider()
1485{
1486 int y;
1487
1488#ifdef Y_MAC_UI
1489 y = 0;
1490#else
1491 y = this->comicToolBar->frameSize().height();
1492#endif
1493
1494 if (zoomSliderAction->isVisible()) {
1495 zoomSliderAction->hide();
1496 } else {
1497#ifdef Y_MAC_UI
1498 zoomSliderAction->move((this->width() - zoomSliderAction->width()) / 2, y);
1499#else
1500 zoomSliderAction->move(250, y);
1501#endif
1502 zoomSliderAction->show();
1503 }
1504}
1505
1506void MainWindowViewer::newVersion()
1507{

Callers

nothing calls this directly

Calls 2

hideMethod · 0.80
showMethod · 0.45

Tested by

no test coverage detected