3
0

SharedPreviewerFactory.cpp 1.0 KB

123456789101112131415161718192021222324252627282930313233
  1. /*
  2. * Copyright (c) Contributors to the Open 3D Engine Project.
  3. * For complete copyright and license terms please see the LICENSE at the root of this distribution.
  4. *
  5. * SPDX-License-Identifier: Apache-2.0 OR MIT
  6. *
  7. */
  8. #include <AzToolsFramework/AssetBrowser/AssetBrowserEntry.h>
  9. #include <SharedPreview/SharedPreviewUtils.h>
  10. #include <SharedPreview/SharedPreviewer.h>
  11. #include <SharedPreview/SharedPreviewerFactory.h>
  12. namespace AZ
  13. {
  14. namespace LyIntegration
  15. {
  16. AzToolsFramework::AssetBrowser::Previewer* SharedPreviewerFactory::CreatePreviewer(QWidget* parent) const
  17. {
  18. return new SharedPreviewer(parent);
  19. }
  20. bool SharedPreviewerFactory::IsEntrySupported(const AzToolsFramework::AssetBrowser::AssetBrowserEntry* entry) const
  21. {
  22. return SharedPreviewUtils::IsSupportedAssetType(entry->GetThumbnailKey());
  23. }
  24. const QString& SharedPreviewerFactory::GetName() const
  25. {
  26. return m_name;
  27. }
  28. } // namespace LyIntegration
  29. } // namespace AZ