Commit e7d5f41e authored by Anders Lund's avatar Anders Lund

Handle focus better by setting a focus proxy. This way setFocus() and...

Handle focus better by setting a focus proxy. This way setFocus() and hasFocus() etc works in a meaningful way ;)
Approved by Robert Knight.

svn path=/trunk/KDE/kdebase/apps/konsole/; revision=721467
parent ca652286
......@@ -162,6 +162,8 @@ Session* Part::createSession(const QString& key)
}
void Part::activeViewChanged(SessionController* controller)
{
widget()->setFocusProxy( _viewManager->activeView() );
if ( controller == _pluggedController )
return;
......
......@@ -61,6 +61,7 @@ ViewManager::ViewManager(QObject* parent , KActionCollection* collection)
// the ViewManager class is not currently able to handle a ViewSplitter in recursive-splitting
// mode
_viewSplitter->setRecursiveSplitting(false);
_viewSplitter->setFocusPolicy(Qt::NoFocus);
// setup actions which relating to the view
setupActions();
......
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