CSelectInstanceDialog: Use float literals

double here is a mis typing.
This commit is contained in:
Lioncache
2025-12-16 21:42:12 -05:00
parent 2afd51c928
commit 8e3ab79ca0

View File

@@ -18,8 +18,8 @@ CSelectInstanceDialog::CSelectInstanceDialog(CWorldEditor *pEditor, QWidget *pPa
mTypesModel.SetModelType(CInstancesModel::EInstanceModelType::Types);
mTypesModel.SetShowColumnEnabled(false);
int Col0Width = ui->LayersTreeView->width() * 0.9;
int Col1Width = ui->LayersTreeView->width() * 0.1;
const auto Col0Width = static_cast<int>(ui->LayersTreeView->width() * 0.9f);
const auto Col1Width = static_cast<int>(ui->LayersTreeView->width() * 0.1f);
mLayersProxyModel.setSourceModel(&mLayersModel);
ui->LayersTreeView->setModel(&mLayersProxyModel);
ui->LayersTreeView->header()->setSortIndicator(0, Qt::AscendingOrder);