mirror of
https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System.git
synced 2025-01-13 00:30:25 +08:00
clear dock widget focus on repin
This commit is contained in:
parent
59108ed245
commit
060313c11f
@ -53,6 +53,7 @@
|
|||||||
#include "DockWidgetTab.h"
|
#include "DockWidgetTab.h"
|
||||||
#include "DockWidgetSideTab.h"
|
#include "DockWidgetSideTab.h"
|
||||||
#include "DockAreaTitleBar.h"
|
#include "DockAreaTitleBar.h"
|
||||||
|
#include "DockFocusController.h"
|
||||||
|
|
||||||
#include <functional>
|
#include <functional>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
@ -1508,6 +1509,7 @@ COverlayDockContainer* CDockContainerWidget::createAndInitializeDockWidgetOverla
|
|||||||
|
|
||||||
const auto dockContainer = new COverlayDockContainer(DockWidget, area, this);
|
const auto dockContainer = new COverlayDockContainer(DockWidget, area, this);
|
||||||
dockContainer->hide();
|
dockContainer->hide();
|
||||||
|
d->DockManager->dockFocusController()->clearDockWidgetFocus(DockWidget);
|
||||||
return dockContainer;
|
return dockContainer;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -320,6 +320,14 @@ void CDockFocusController::setDockWidgetTabFocused(CDockWidgetTab* Tab)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
//===========================================================================
|
||||||
|
void CDockFocusController::clearDockWidgetFocus(CDockWidget* dockWidget)
|
||||||
|
{
|
||||||
|
dockWidget->clearFocus();
|
||||||
|
updateDockWidgetFocusStyle(dockWidget, false);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
//===========================================================================
|
//===========================================================================
|
||||||
void CDockFocusController::setDockWidgetFocused(CDockWidget* focusedNow)
|
void CDockFocusController::setDockWidgetFocused(CDockWidget* focusedNow)
|
||||||
{
|
{
|
||||||
|
@ -75,6 +75,11 @@ public:
|
|||||||
*/
|
*/
|
||||||
void setDockWidgetTabFocused(CDockWidgetTab* Tab);
|
void setDockWidgetTabFocused(CDockWidgetTab* Tab);
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Request clear focus for a dock widget
|
||||||
|
*/
|
||||||
|
void clearDockWidgetFocus(CDockWidget* dockWidget);
|
||||||
|
|
||||||
public Q_SLOTS:
|
public Q_SLOTS:
|
||||||
/**
|
/**
|
||||||
* Request a focus change to the given dock widget
|
* Request a focus change to the given dock widget
|
||||||
|
Loading…
Reference in New Issue
Block a user