mirror of
https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System.git
synced 2024-11-15 13:15:43 +08:00
Fixed some compiler warnings on Ubuntu 22.04
This commit is contained in:
parent
f848df74c3
commit
44ff9e9956
@ -2063,7 +2063,7 @@ CDockAreaWidget* CDockContainerWidget::topLevelDockArea() const
|
|||||||
QList<CDockWidget*> CDockContainerWidget::dockWidgets() const
|
QList<CDockWidget*> CDockContainerWidget::dockWidgets() const
|
||||||
{
|
{
|
||||||
QList<CDockWidget*> Result;
|
QList<CDockWidget*> Result;
|
||||||
for (const auto DockArea : d->DockAreas)
|
for (const auto& DockArea : d->DockAreas)
|
||||||
{
|
{
|
||||||
if (!DockArea)
|
if (!DockArea)
|
||||||
{
|
{
|
||||||
@ -2099,7 +2099,7 @@ void CDockContainerWidget::removeAutoHideWidget(CAutoHideDockContainer* Autohide
|
|||||||
CDockWidget::DockWidgetFeatures CDockContainerWidget::features() const
|
CDockWidget::DockWidgetFeatures CDockContainerWidget::features() const
|
||||||
{
|
{
|
||||||
CDockWidget::DockWidgetFeatures Features(CDockWidget::AllDockWidgetFeatures);
|
CDockWidget::DockWidgetFeatures Features(CDockWidget::AllDockWidgetFeatures);
|
||||||
for (const auto DockArea : d->DockAreas)
|
for (const auto& DockArea : d->DockAreas)
|
||||||
{
|
{
|
||||||
if (!DockArea)
|
if (!DockArea)
|
||||||
{
|
{
|
||||||
@ -2122,7 +2122,7 @@ CFloatingDockContainer* CDockContainerWidget::floatingWidget() const
|
|||||||
//============================================================================
|
//============================================================================
|
||||||
void CDockContainerWidget::closeOtherAreas(CDockAreaWidget* KeepOpenArea)
|
void CDockContainerWidget::closeOtherAreas(CDockAreaWidget* KeepOpenArea)
|
||||||
{
|
{
|
||||||
for (const auto DockArea : d->DockAreas)
|
for (const auto& DockArea : d->DockAreas)
|
||||||
{
|
{
|
||||||
if (!DockArea || DockArea == KeepOpenArea)
|
if (!DockArea || DockArea == KeepOpenArea)
|
||||||
{
|
{
|
||||||
|
@ -587,7 +587,7 @@ bool CDockManager::eventFilter(QObject *obj, QEvent *e)
|
|||||||
// Window always on top of the MainWindow.
|
// Window always on top of the MainWindow.
|
||||||
if (e->type() == QEvent::WindowActivate)
|
if (e->type() == QEvent::WindowActivate)
|
||||||
{
|
{
|
||||||
for (auto _window : floatingWidgets())
|
for (auto _window : d->FloatingWidgets)
|
||||||
{
|
{
|
||||||
if (!_window->isVisible() || window()->isMinimized())
|
if (!_window->isVisible() || window()->isMinimized())
|
||||||
{
|
{
|
||||||
@ -609,7 +609,7 @@ bool CDockManager::eventFilter(QObject *obj, QEvent *e)
|
|||||||
}
|
}
|
||||||
else if (e->type() == QEvent::WindowDeactivate)
|
else if (e->type() == QEvent::WindowDeactivate)
|
||||||
{
|
{
|
||||||
for (auto _window : floatingWidgets())
|
for (auto _window : d->FloatingWidgets)
|
||||||
{
|
{
|
||||||
if (!_window->isVisible() || window()->isMinimized())
|
if (!_window->isVisible() || window()->isMinimized())
|
||||||
{
|
{
|
||||||
@ -632,7 +632,7 @@ bool CDockManager::eventFilter(QObject *obj, QEvent *e)
|
|||||||
// Sync minimize with MainWindow
|
// Sync minimize with MainWindow
|
||||||
if (e->type() == QEvent::WindowStateChange)
|
if (e->type() == QEvent::WindowStateChange)
|
||||||
{
|
{
|
||||||
for (auto _window : floatingWidgets())
|
for (auto _window : d->FloatingWidgets)
|
||||||
{
|
{
|
||||||
if (! _window->isVisible())
|
if (! _window->isVisible())
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user