- improve support for on the fly rotation of our window. Schedule the image update for a future frame so we don't block right away and clear the current image. This also fixes loading multiple images during a rotation as it takes time for geometry changes to apply to QT
This commit is contained in:
@@ -41,3 +41,9 @@ void ImageSwitcher::start()
|
||||
connect(&timerNoContent, SIGNAL(timeout()), this, SLOT(updateImage()));
|
||||
timer.start(timeout);
|
||||
}
|
||||
|
||||
void ImageSwitcher::scheduleImageUpdate()
|
||||
{
|
||||
// update our image in 100msec, to let the system settle
|
||||
QTimer::singleShot(100, this, SLOT(updateImage()));
|
||||
}
|
||||
Reference in New Issue
Block a user