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:
Albert Astals Cid 2011-12-16 00:27:30 +01:00
parent 6176e29256
commit ac79610a8b

View file

@ -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()