[libcalamaresui] Center slideshow pictures

This commit is contained in:
Adriaan de Groot 2020-05-13 17:28:04 +02:00
parent 5aafa0f4c4
commit 20c1ae246d

View File

@ -181,6 +181,8 @@ SlideshowPictures::SlideshowPictures( QWidget* parent )
, m_imageIndex( 0 )
, m_images( Branding::instance()->slideshowImages() )
{
m_label->setSizePolicy( QSizePolicy::Expanding, QSizePolicy::Expanding );
m_label->setAlignment( Qt::AlignCenter );
m_timer->setInterval( std::chrono::milliseconds( 2000 ) );
connect( m_timer, &QTimer::timeout, this, &SlideshowPictures::next );
}