diff --git a/examples/dockindock/perspectives.cpp b/examples/dockindock/perspectives.cpp index 3ba3664..f5aa026 100644 --- a/examples/dockindock/perspectives.cpp +++ b/examples/dockindock/perspectives.cpp @@ -106,7 +106,7 @@ void PerspectivesManager::openPerspective( const QString& name, DockInDockWidget curGroups = widget.getManager()->allManagers(false,true); for ( auto curgroup : curGroups ) { - if ( !m_perspectives[name].groups.keys().contains( curgroup->getPersistGroupName() ) ) + if ( !m_perspectives[name].groups.contains( curgroup->getPersistGroupName() ) ) { widget.destroyGroup( &curgroup->parent() ); } diff --git a/src/DockAreaWidget.cpp b/src/DockAreaWidget.cpp index 90d21e9..26d24cc 100644 --- a/src/DockAreaWidget.cpp +++ b/src/DockAreaWidget.cpp @@ -1000,12 +1000,12 @@ CDockAreaTitleBar* CDockAreaWidget::titleBar() const //============================================================================ bool CDockAreaWidget::isCentralWidgetArea() const { - if (dockWidgetsCount()!= 1) + if (dockWidgetsCount() != 1) { return false; } - return dockManager()->centralWidget() == dockWidgets()[0]; + return dockManager()->centralWidget() == dockWidgets().constFirst(); } diff --git a/src/DockContainerWidget.cpp b/src/DockContainerWidget.cpp index 1d2539a..979e5ef 100644 --- a/src/DockContainerWidget.cpp +++ b/src/DockContainerWidget.cpp @@ -568,7 +568,6 @@ void DockContainerWidgetPrivate::dropIntoSection(CFloatingDockContainer* Floatin } else { - QList NewSplitterSizes; QSplitter* NewSplitter = newSplitter(InsertParam.orientation()); int TargetAreaSize = (InsertParam.orientation() == Qt::Horizontal) ? TargetArea->width() : TargetArea->height(); bool AdjustSplitterSizes = true; @@ -692,7 +691,6 @@ void DockContainerWidgetPrivate::moveToNewSection(QWidget* Widget, CDockAreaWidg } else { - auto Sizes = TargetAreaSplitter->sizes(); int TargetAreaSize = (InsertParam.orientation() == Qt::Horizontal) ? TargetArea->width() : TargetArea->height(); QSplitter* NewSplitter = newSplitter(InsertParam.orientation()); NewSplitter->addWidget(TargetArea);