mirror of
https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System.git
synced 2024-12-25 07:31:33 +08:00
Added activateWindow() call in CFloatingDockCiontainer::showEvent
This is required to properly style the floating widget that contains the currently focused widget
This commit is contained in:
parent
f90f0b0427
commit
c4d2d72e92
@ -1034,6 +1034,7 @@ void CDockManager::onApplicationFocusChanged(QWidget* focusedOld, QWidget* focus
|
||||
return;
|
||||
}
|
||||
std::cout << "CDockManager::onFocusChanged" << std::endl;
|
||||
std::cout << "focusedNow " << focusedNow << std::endl;
|
||||
Q_UNUSED(focusedOld)
|
||||
if (!focusedNow)
|
||||
{
|
||||
|
@ -804,10 +804,17 @@ void CFloatingDockContainer::hideEvent(QHideEvent *event)
|
||||
d->Hiding = false;
|
||||
}
|
||||
|
||||
|
||||
//============================================================================
|
||||
void CFloatingDockContainer::showEvent(QShowEvent *event)
|
||||
{
|
||||
Super::showEvent(event);
|
||||
#ifdef Q_OS_LINUX
|
||||
if (CDockManager::testConfigFlag(CDockManager::FocusStyling))
|
||||
{
|
||||
this->window()->activateWindow();
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user