mirror of
https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System.git
synced 2025-01-14 00:52:05 +08:00
Remove [[fallthrough]]
This commit is contained in:
parent
32f9b4664b
commit
0e6971e2ae
@ -64,13 +64,11 @@ struct OverlayDockContainerPrivate
|
|||||||
switch (area)
|
switch (area)
|
||||||
{
|
{
|
||||||
case CDockWidgetSideTab::LeftBottom:
|
case CDockWidgetSideTab::LeftBottom:
|
||||||
[[fallthrough]];
|
|
||||||
case CDockWidgetSideTab::LeftTop:
|
case CDockWidgetSideTab::LeftTop:
|
||||||
{
|
{
|
||||||
return LeftDockWidgetArea;
|
return LeftDockWidgetArea;
|
||||||
}
|
}
|
||||||
case CDockWidgetSideTab::RightBottom:
|
case CDockWidgetSideTab::RightBottom:
|
||||||
[[fallthrough]];
|
|
||||||
case CDockWidgetSideTab::RightTop:
|
case CDockWidgetSideTab::RightTop:
|
||||||
{
|
{
|
||||||
return RightDockWidgetArea;
|
return RightDockWidgetArea;
|
||||||
@ -92,13 +90,11 @@ struct OverlayDockContainerPrivate
|
|||||||
switch (Area)
|
switch (Area)
|
||||||
{
|
{
|
||||||
case CDockWidgetSideTab::LeftTop:
|
case CDockWidgetSideTab::LeftTop:
|
||||||
[[fallthrough]];
|
|
||||||
case CDockWidgetSideTab::LeftBottom:
|
case CDockWidgetSideTab::LeftBottom:
|
||||||
{
|
{
|
||||||
return QPoint(1, _this->height() / 2);
|
return QPoint(1, _this->height() / 2);
|
||||||
}
|
}
|
||||||
case CDockWidgetSideTab::RightTop:
|
case CDockWidgetSideTab::RightTop:
|
||||||
[[fallthrough]];
|
|
||||||
case CDockWidgetSideTab::RightBottom:
|
case CDockWidgetSideTab::RightBottom:
|
||||||
{
|
{
|
||||||
return QPoint(_this->width() - 1, _this->height() / 2);
|
return QPoint(_this->width() - 1, _this->height() / 2);
|
||||||
@ -149,7 +145,6 @@ COverlayDockContainer::COverlayDockContainer(CDockManager* DockManager, CDockWid
|
|||||||
switch (area)
|
switch (area)
|
||||||
{
|
{
|
||||||
case CDockWidgetSideTab::LeftBottom:
|
case CDockWidgetSideTab::LeftBottom:
|
||||||
[[fallthrough]];
|
|
||||||
case CDockWidgetSideTab::LeftTop:
|
case CDockWidgetSideTab::LeftTop:
|
||||||
{
|
{
|
||||||
addWidget(d->DockArea);
|
addWidget(d->DockArea);
|
||||||
@ -157,7 +152,6 @@ COverlayDockContainer::COverlayDockContainer(CDockManager* DockManager, CDockWid
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case CDockWidgetSideTab::RightBottom:
|
case CDockWidgetSideTab::RightBottom:
|
||||||
[[fallthrough]];
|
|
||||||
case CDockWidgetSideTab::RightTop:
|
case CDockWidgetSideTab::RightTop:
|
||||||
{
|
{
|
||||||
addWidget(emptyWidget);
|
addWidget(emptyWidget);
|
||||||
@ -287,16 +281,13 @@ void COverlayDockContainer::setDockSizeProportion(float SplitterProportion)
|
|||||||
switch (d->Area)
|
switch (d->Area)
|
||||||
{
|
{
|
||||||
case CDockWidgetSideTab::LeftBottom:
|
case CDockWidgetSideTab::LeftBottom:
|
||||||
[[fallthrough]];
|
|
||||||
case CDockWidgetSideTab::LeftTop:
|
case CDockWidgetSideTab::LeftTop:
|
||||||
{
|
{
|
||||||
setSizes({ dockSize, remainingSize });
|
setSizes({ dockSize, remainingSize });
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case CDockWidgetSideTab::RightBottom:
|
case CDockWidgetSideTab::RightBottom:
|
||||||
[[fallthrough]];
|
|
||||||
case CDockWidgetSideTab::RightTop:
|
case CDockWidgetSideTab::RightTop:
|
||||||
[[fallthrough]];
|
|
||||||
case CDockWidgetSideTab::Bottom:
|
case CDockWidgetSideTab::Bottom:
|
||||||
{
|
{
|
||||||
setSizes({ remainingSize, dockSize });
|
setSizes({ remainingSize, dockSize });
|
||||||
@ -439,13 +430,11 @@ bool COverlayDockContainer::areaExistsInConfig(CDockWidgetSideTab::SideTabBarAre
|
|||||||
switch (area)
|
switch (area)
|
||||||
{
|
{
|
||||||
case CDockWidgetSideTab::LeftBottom:
|
case CDockWidgetSideTab::LeftBottom:
|
||||||
[[fallthrough]];
|
|
||||||
case CDockWidgetSideTab::LeftTop:
|
case CDockWidgetSideTab::LeftTop:
|
||||||
{
|
{
|
||||||
return CDockManager::testConfigFlag(CDockManager::DockContainerHasLeftSideBar);
|
return CDockManager::testConfigFlag(CDockManager::DockContainerHasLeftSideBar);
|
||||||
}
|
}
|
||||||
case CDockWidgetSideTab::RightBottom:
|
case CDockWidgetSideTab::RightBottom:
|
||||||
[[fallthrough]];
|
|
||||||
case CDockWidgetSideTab::RightTop:
|
case CDockWidgetSideTab::RightTop:
|
||||||
{
|
{
|
||||||
return CDockManager::testConfigFlag(CDockManager::DockContainerHasRightSideBar);
|
return CDockManager::testConfigFlag(CDockManager::DockContainerHasRightSideBar);
|
||||||
|
Loading…
Reference in New Issue
Block a user