ClassReferencePanel.cpp 788 B

1234567891011121314151617181920212223242526272829
  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 "ClassReferencePanel.hxx"
  9. #include <Source/LUA/moc_ClassReferencePanel.cpp>
  10. DHClassReferenceWidget::DHClassReferenceWidget(QWidget* parent)
  11. : QTreeView(parent)
  12. {
  13. connect(this, SIGNAL(doubleClicked(const QModelIndex &)), this, SLOT(OnDoubleClicked(const QModelIndex &)));
  14. //CreateContextMenu();
  15. setSortingEnabled(true);
  16. sortByColumn(0, Qt::AscendingOrder);
  17. }
  18. DHClassReferenceWidget::~DHClassReferenceWidget()
  19. {
  20. }
  21. // QT tree view messages
  22. void DHClassReferenceWidget::OnDoubleClicked(const QModelIndex& modelIdx)
  23. {
  24. (void)modelIdx;
  25. }