ColumnGroupItemDelegate.h 696 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. #ifndef COLUMNGROUPITEMDELEGATE_H
  9. #define COLUMNGROUPITEMDELEGATE_H
  10. #include <QStyledItemDelegate>
  11. class ColumnGroupItemDelegate
  12. : public QStyledItemDelegate
  13. {
  14. public:
  15. ColumnGroupItemDelegate(QObject* parent = 0);
  16. QSize sizeHint(const QStyleOptionViewItem& option, const QModelIndex& index) const override;
  17. void paint(QPainter* painter, const QStyleOptionViewItem& option, const QModelIndex& index) const override;
  18. };
  19. #endif // COLUMNGROUPITEMDELEGATE_H