Adjusted parameters

Signed-off-by: igarri <igarri@amazon.com>
This commit is contained in:
igarri
2021-06-25 10:37:39 +01:00
parent c061802ab0
commit 514f9ef6c2
3 changed files with 2 additions and 12 deletions
@@ -153,16 +153,6 @@ namespace AzToolsFramework
endRemoveRows();
}
AzToolsFramework::EditorSettingsAPIRequests::SettingOutcome outcome;
AzToolsFramework::EditorSettingsAPIBus::BroadcastResult(outcome, &AzToolsFramework::EditorSettingsAPIBus::Handler::GetValue,
"Settings|MaxDisplayedItemsNumInSearch");
AZStd::any outcomeValue = outcome.GetValue<AZStd::any>();
if (outcomeValue.is<int>() == true)
{
m_numberOfItemsDisplayed = AZStd::any_cast<int>(outcome.GetValue());
}
AzToolsFramework::EditorSettingsAPIBus::BroadcastResult(
m_numberOfItemsDisplayed, &AzToolsFramework::EditorSettingsAPIBus::Handler::GetMaxNumberOfItemsShownInSearchView);
@@ -82,7 +82,7 @@ AzAssetBrowserWindow::AzAssetBrowserWindow(QWidget* parent)
if (ed_useNewAssetBrowserTableView)
{
m_ui->m_viewSwitcherCheckBox->setVisible(true);
m_ui->m_viewSwitcherCheckBox->setVisible(false);
m_tableModel->setFilterRole(Qt::DisplayRole);
m_tableModel->setSourceModel(m_filterModel.data());
m_ui->m_assetBrowserTableViewWidget->setModel(m_tableModel.data());
@@ -88,7 +88,7 @@ void CEditorPreferencesPage_Files::Reflect(AZ::SerializeContext& serialize)
editContext->Class<AssetBrowserSearch>("Asset Browser Search View", "Asset Browser Search View")
->DataElement(AZ::Edit::UIHandlers::SpinBox, &AssetBrowserSearch::m_numOfItemsShown, "Maximum number of displayed items",
"Maximum number of displayed items displayed in the Search View")
->Attribute(AZ::Edit::Attributes::Min, 10)
->Attribute(AZ::Edit::Attributes::Min, 100)
->Attribute(AZ::Edit::Attributes::Max, 1000);
editContext->Class<CEditorPreferencesPage_Files>("File Preferences", "Class for handling File Preferences")