We have to use setFixedSize() here, otherwise the layout will set a height

of 0 for the ThumbnailWidget => ThumbnailWidget::region() is empty => QWidget::repaint
won't paint the content of the widget.

Now the thumbnails are showed on startup again and when the orientation is
changed the layout of the thumbnails is adapted as well...

svn path=/trunk/playground/graphics/okular/; revision=578852
remotes/origin/KDE/4.0
Tobias Koenig 20 years ago
parent 760fdbcadb
commit 69a72ebbe8
  1. 2
      ui/thumbnaillist.cpp

@ -510,7 +510,7 @@ void ThumbnailWidget::resizeFitWidth( int width )
{
m_pixmapWidth = width - m_margin;
m_pixmapHeight = (int)round( m_page->ratio() * (double)m_pixmapWidth );
resize( width, heightHint() );
setFixedSize( QSize( width, heightHint() ) );
}
void ThumbnailWidget::setSelected( bool selected )

Loading…
Cancel
Save