Finish FocusScope support

When clicking on a TitleBar the focus will be redirected to either:
- Last widget that had focus inside the scope
- To the DockWidget. Implies the user setting a guest widget that
accepts focus

Fixes: #56
This commit is contained in:
Sergio Martins
2020-08-08 17:05:03 +01:00
committed by Sergio Martins
parent c9468bef8a
commit 890784ba5a
10 changed files with 71 additions and 8 deletions

View File

@@ -111,6 +111,9 @@ int main(int argc, char **argv)
if (parser.isSet(noTitleBars))
flags |= KDDockWidgets::Config::Flag_HideTitleBarWhenTabsVisible | KDDockWidgets::Config::Flag_AlwaysShowTabs;
if (parser.isSet(customStyle))
flags |= KDDockWidgets::Config::Flag_TitleBarIsFocusable; // also showing title bar focus with -p, just to not introduce another switch
if (parser.isSet(reorderTabsOption))
flags |= KDDockWidgets::Config::Flag_AllowReorderTabs;