mirror of
https://github.com/YACReader/yacreader
synced 2025-07-18 04:54:29 -04:00
Library: eliminate QPainter warnings
There were many run-time warnings in YACReaderLibrary built in Debug mode with hardware acceleration disabled and with ClassicComicsView as the active comics view: QWidget::paintEngine: Should no longer be called QPainter::begin: Paint device returned engine == 0, type: 1 The ComicFlowWidgetSW::paintEvent() implementation now corresponds to ComicFlowWidgetGL::paintEvent(), which has been fixed earlier. QWidget::repaint() calls paintEvent() immediately. PictureFlow::paintEvent() calls d->renderer->paint(). So the d->renderer->paint() call in PictureFlow::updateMarks() was redundant.
This commit is contained in:
@ -1421,7 +1421,6 @@ void PictureFlow::markSlide(int index, YACReaderComicReadStatus readStatus)
|
||||
void PictureFlow::updateMarks()
|
||||
{
|
||||
d->renderer->init();
|
||||
d->renderer->paint();
|
||||
repaint();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user