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

Method prepareForOpening

YACReader/viewer.cpp:236–258  ·  view source on GitHub ↗

Deprecated

Source from the content-addressed store, hash-verified

234
235// Deprecated
236void Viewer::prepareForOpening()
237{
238 if (render->hasLoadedComic())
239 save();
240 // bd->setBookmarks(*bm);
241
242 goToFlow->reset();
243
244 // render->update();
245
246 // Drop the previous comic's decoded/scaled pages so we never flash stale
247 // content while the new comic loads.
248 continuousPageProvider->reset();
249 continuousWidget->invalidateScaledImageCache();
250
251 verticalScrollBar()->setSliderPosition(verticalScrollBar()->minimum());
252
253 if (Configuration::getConfiguration().getShowInformation() && !information) {
254 QTimer::singleShot(0, this, &Viewer::informationSwitch);
255 }
256
257 informationLabel->setText("...");
258}
259
260void Viewer::open(QString pathFile, int atPage)
261{

Callers

nothing calls this directly

Calls 5

hasLoadedComicMethod · 0.80
getShowInformationMethod · 0.80
resetMethod · 0.45
setTextMethod · 0.45

Tested by

no test coverage detected