Commit 9c333feb authored by David Schulz's avatar David Schulz

Allow focusing the bookmark view

This Fixes an issue when trying to open bookmarks in an external
windows.

Task-number: QTCREATORBUG-16524
Change-Id: I216f1d4f308a05abcbb4e074368dde30f0e05064
Reviewed-by: Eike Ziller's avatarEike Ziller <eike.ziller@qt.io>
parent bac2d184
......@@ -223,7 +223,7 @@ BookmarkView::BookmarkView(BookmarkManager *manager) :
setItemDelegate(new BookmarkDelegate(this));
setFrameStyle(QFrame::NoFrame);
setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
setFocusPolicy(Qt::NoFocus);
setAttribute(Qt::WA_MacShowFocusRect, false);
setSelectionModel(manager->selectionModel());
setSelectionMode(QAbstractItemView::SingleSelection);
setSelectionBehavior(QAbstractItemView::SelectRows);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment