Code/Editor
Signed-off-by: Esteban Papp <81431996+amznestebanpapp@users.noreply.github.com>
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user