ThumbnailListPrivate does not handle keypresses

So don't give it the focus while using tab to change focus
This commit is contained in:
Albert Astals Cid 2011-12-16 00:23:33 +01:00
parent ed052f4fa1
commit 8df96e9e64

View file

@ -216,8 +216,8 @@ ThumbnailList::ThumbnailList( QWidget *parent, Okular::Document *document )
viewport()->setPalette( viewportPal );
setWidget( d );
// widget setup: can be focused by tab and mouse click (not wheel)
widget()->setFocusPolicy( Qt::StrongFocus );
// widget setup: can be focused by mouse click (not wheel nor tab)
widget()->setFocusPolicy( Qt::ClickFocus );
widget()->show();
QPalette widgetPal = widget()->palette();
widgetPal.setColor( widget()->backgroundRole(), pal.color( QPalette::Base ) );