Gui: Remove CornerNaviCube from OverlayParams and use directly in OverlayManager

This commit is contained in:
Rexbas
2023-10-15 14:40:35 +02:00
committed by Adrián Insaurralde Avalos
parent d1d6f9d13a
commit 54f2ae336d
4 changed files with 207 additions and 258 deletions

View File

@@ -663,8 +663,11 @@ public:
h -= tabbar->height();
int naviCubeSize = NaviCube::getNaviCubeSize();
int naviCorner = OverlayParams::getDockOverlayCheckNaviCube() ?
OverlayParams::getCornerNaviCube() : -1;
int naviCorner = OverlayParams::getDockOverlayCheckNaviCube()
? App::GetApplication()
.GetParameterGroupByPath("User parameter:BaseApp/Preferences/NaviCube")
->GetInt("CornerNaviCube", 1)
: -1;
QRect rect;
QRect rectBottom(0,0,0,0);