ProductDependencyTreeDelegate.h 807 B

12345678910111213141516171819202122232425
  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. #pragma once
  9. #include <QStyledItemDelegate>
  10. #include <QPointer>
  11. namespace AssetProcessor
  12. {
  13. class ProductAssetDetailsPanel;
  14. class ProductDependencyTreeDelegate : public QStyledItemDelegate
  15. {
  16. Q_OBJECT
  17. public:
  18. ProductDependencyTreeDelegate(QObject* parent, QPointer<ProductAssetDetailsPanel> panel);
  19. protected:
  20. bool editorEvent(QEvent* event, QAbstractItemModel* model, const QStyleOptionViewItem& option, const QModelIndex& index) override;
  21. private:
  22. QPointer<ProductAssetDetailsPanel> m_panel;
  23. };
  24. } // namespace AssetProcessor