AbstractSortModel.cpp 563 B

1234567891011121314151617181920212223
  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 "EditorDefs.h"
  9. #include "AbstractSortModel.h"
  10. AbstractSortModel::AbstractSortModel(QObject* parent)
  11. : QAbstractTableModel(parent)
  12. {
  13. }
  14. bool AbstractSortModel::LessThan(const QModelIndex& lhs, const QModelIndex& rhs) const
  15. {
  16. return lhs.data().toString() < rhs.data().toString();
  17. }
  18. #include <Util/moc_AbstractSortModel.cpp>