Code/Editor

Signed-off-by: Esteban Papp <81431996+amznestebanpapp@users.noreply.github.com>
This commit is contained in:
Esteban Papp
2021-08-16 15:56:36 -07:00
parent e6b5342c07
commit 2963739288
51 changed files with 286 additions and 337 deletions
+2 -2
View File
@@ -1102,7 +1102,7 @@ void QtViewPaneManager::RestoreDefaultLayout(bool resetSettings)
entityInspectorViewPane->m_dockWidget->setFloating(false);
static const float tabWidgetWidthPercentage = 0.2f;
int newWidth = (float)screenWidth * tabWidgetWidthPercentage;
int newWidth = static_cast<int>((float)screenWidth * tabWidgetWidthPercentage);
if (levelInspectorPane)
{
@@ -1139,7 +1139,7 @@ void QtViewPaneManager::RestoreDefaultLayout(bool resetSettings)
// so that they get an appropriate default width since the minimum sizes have
// been removed from these widgets
static const float entityOutlinerWidthPercentage = 0.15f;
int newWidth = (float)screenWidth * entityOutlinerWidthPercentage;
int newWidth = static_cast<int>((float)screenWidth * entityOutlinerWidthPercentage);
m_mainWindow->resizeDocks({ entityOutlinerViewPane->m_dockWidget }, { newWidth }, Qt::Horizontal);
}