AbstractSortModel.h 587 B

123456789101112131415161718192021222324252627
  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 ABSTRACTSORTMODEL_H
  9. #define ABSTRACTSORTMODEL_H
  10. #if !defined(Q_MOC_RUN)
  11. #include <QAbstractItemModel>
  12. #endif
  13. class AbstractSortModel
  14. : public QAbstractTableModel
  15. {
  16. Q_OBJECT
  17. public:
  18. AbstractSortModel(QObject* parent = nullptr);
  19. virtual bool LessThan(const QModelIndex& lhs, const QModelIndex& rhs) const;
  20. };
  21. #endif // ABSTRACTSORTMODEL_H