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

Method clear

YACReaderLibrary/import_widget.cpp:288–311  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

286}
287
288void ImportWidget::clear()
289{
290 previousWidth = 0;
291
292 // nos aseguramos de que las animaciones han finalizado antes de borrar
293 QList<QGraphicsItem *> all = coversScene->items();
294 for (int i = 0; i < all.size(); i++) {
295 QGraphicsItem *gi = all[i];
296 if (gi->parentItem() == NULL)
297 delete gi;
298 }
299 coversScene->clear();
300
301 delete coversScene;
302 coversScene = new QGraphicsScene;
303
304 coversView->setScene(coversScene);
305
306 updatingCovers = false;
307
308 currentComicLabel->setText("...");
309
310 this->i = 0;
311}
312
313void ImportWidget::setImportLook()
314{

Callers 15

setComicsMethod · 0.45
closeEventMethod · 0.45
setCurrentIndexMethod · 0.45
closeMethod · 0.45
closeMethod · 0.45
closeMethod · 0.45
closeMethod · 0.45
closeMethod · 0.45
execMethod · 0.45
setModelMethod · 0.45

Calls 1

setTextMethod · 0.45

Tested by

no test coverage detected