mirror of
https://invent.kde.org/graphics/okular
synced 2024-08-25 02:45:38 +00:00
Set a focus proxy in case this widget ends up with focus
Should never happen, but as it is the "main" widget of the part it might end up there if someone just says part->mainwidget->setfocus or something like that At least this way the focus does not go down the drain and ends up in the sidebar list, which is not optimal but is better than getting the keyboard focus lost
This commit is contained in:
parent
6176e29256
commit
ac79610a8b
|
@ -474,6 +474,8 @@ Sidebar::Sidebar( QWidget *parent )
|
|||
connect( d->list, SIGNAL(customContextMenuRequested(QPoint)),
|
||||
this, SLOT(listContextMenu(QPoint)) );
|
||||
connect( d->splitter, SIGNAL(splitterMoved(int,int)), this, SLOT(splitterMoved(int,int)) );
|
||||
|
||||
setFocusProxy( d->list );
|
||||
}
|
||||
|
||||
Sidebar::~Sidebar()
|
||||
|
|
Loading…
Reference in a new issue