Enabled ClickFocus for CDockWidget to support focussing in case the content does not support it
Renamed FocusStyling to FocusHighlighting
This commit is contained in:
@@ -467,7 +467,7 @@ CDockManager::CDockManager(QWidget *parent) :
|
||||
d->Containers.append(this);
|
||||
d->loadStylesheet();
|
||||
|
||||
if (CDockManager::configFlags().testFlag(CDockManager::FocusStyling))
|
||||
if (CDockManager::configFlags().testFlag(CDockManager::FocusHighlighting))
|
||||
{
|
||||
d->FocusController = new CDockFocusController(this);
|
||||
}
|
||||
@@ -926,6 +926,16 @@ void CDockManager::notifyFloatingWidgetDrop(CFloatingDockContainer* FloatingWidg
|
||||
}
|
||||
|
||||
|
||||
//===========================================================================
|
||||
void CDockManager::setDockWidgetFocused(CDockWidget* DockWidget)
|
||||
{
|
||||
if (d->FocusController)
|
||||
{
|
||||
d->FocusController->setDockWidgetFocused(DockWidget);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
} // namespace ads
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user