mirror of
https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System.git
synced 2024-11-15 13:15:43 +08:00
Fixed warnings on MacOS: replaced QApplication::setActiveWindow(this); with QWidget::activateWindow
This commit is contained in:
parent
85f65b3f1a
commit
36cdf4a252
@ -1010,7 +1010,7 @@ void CFloatingDockContainer::moveFloating()
|
||||
// the main window as the active window for some reason. This fixes
|
||||
// that by resetting the active window to the floating widget after
|
||||
// updating the overlays.
|
||||
QApplication::setActiveWindow(this);
|
||||
activateWindow();
|
||||
#endif
|
||||
break;
|
||||
default:
|
||||
@ -1248,7 +1248,7 @@ void CFloatingDockContainer::moveEvent(QMoveEvent *event)
|
||||
// the main window as the active window for some reason. This fixes
|
||||
// that by resetting the active window to the floating widget after
|
||||
// updating the overlays.
|
||||
QApplication::setActiveWindow(this);
|
||||
activateWindow();
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user