mirror of
https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System.git
synced 2025-04-01 02:42:39 +08:00
clazy: fix various warnings
This commit is contained in:
parent
6d53c16ed0
commit
6573ac7e2d
@ -106,7 +106,7 @@ void PerspectivesManager::openPerspective( const QString& name, DockInDockWidget
|
|||||||
curGroups = widget.getManager()->allManagers(false,true);
|
curGroups = widget.getManager()->allManagers(false,true);
|
||||||
for ( auto curgroup : curGroups )
|
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() );
|
widget.destroyGroup( &curgroup->parent() );
|
||||||
}
|
}
|
||||||
|
@ -1000,12 +1000,12 @@ CDockAreaTitleBar* CDockAreaWidget::titleBar() const
|
|||||||
//============================================================================
|
//============================================================================
|
||||||
bool CDockAreaWidget::isCentralWidgetArea() const
|
bool CDockAreaWidget::isCentralWidgetArea() const
|
||||||
{
|
{
|
||||||
if (dockWidgetsCount()!= 1)
|
if (dockWidgetsCount() != 1)
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
return dockManager()->centralWidget() == dockWidgets()[0];
|
return dockManager()->centralWidget() == dockWidgets().constFirst();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -568,7 +568,6 @@ void DockContainerWidgetPrivate::dropIntoSection(CFloatingDockContainer* Floatin
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
QList<int> NewSplitterSizes;
|
|
||||||
QSplitter* NewSplitter = newSplitter(InsertParam.orientation());
|
QSplitter* NewSplitter = newSplitter(InsertParam.orientation());
|
||||||
int TargetAreaSize = (InsertParam.orientation() == Qt::Horizontal) ? TargetArea->width() : TargetArea->height();
|
int TargetAreaSize = (InsertParam.orientation() == Qt::Horizontal) ? TargetArea->width() : TargetArea->height();
|
||||||
bool AdjustSplitterSizes = true;
|
bool AdjustSplitterSizes = true;
|
||||||
@ -692,7 +691,6 @@ void DockContainerWidgetPrivate::moveToNewSection(QWidget* Widget, CDockAreaWidg
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
auto Sizes = TargetAreaSplitter->sizes();
|
|
||||||
int TargetAreaSize = (InsertParam.orientation() == Qt::Horizontal) ? TargetArea->width() : TargetArea->height();
|
int TargetAreaSize = (InsertParam.orientation() == Qt::Horizontal) ? TargetArea->width() : TargetArea->height();
|
||||||
QSplitter* NewSplitter = newSplitter(InsertParam.orientation());
|
QSplitter* NewSplitter = newSplitter(InsertParam.orientation());
|
||||||
NewSplitter->addWidget(TargetArea);
|
NewSplitter->addWidget(TargetArea);
|
||||||
|
Loading…
Reference in New Issue
Block a user