ctkDICOMItemTreeModel.cpp 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. /*=========================================================================
  2. Library: CTK
  3. Copyright (c) 2010 Kitware Inc.
  4. Licensed under the Apache License, Version 2.0 (the "License");
  5. you may not use this file except in compliance with the License.
  6. You may obtain a copy of the License at
  7. http://www.apache.org/licenses/LICENSE-2.0
  8. Unless required by applicable law or agreed to in writing, software
  9. distributed under the License is distributed on an "AS IS" BASIS,
  10. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  11. See the License for the specific language governing permissions and
  12. limitations under the License.
  13. =========================================================================*/
  14. // ctkDICOMWidgets includes
  15. #include "ctkDICOMItemTreeModel.h"
  16. //----------------------------------------------------------------------------
  17. class ctkDICOMItemTreeModelPrivate: public ctkPrivate<ctkDICOMItemTreeModel>
  18. {
  19. public:
  20. ctkDICOMItemTreeModelPrivate(){}
  21. };
  22. //----------------------------------------------------------------------------
  23. // ctkDICOMItemTreeModelPrivate methods
  24. //----------------------------------------------------------------------------
  25. // ctkDICOMItemTreeModel methods
  26. //----------------------------------------------------------------------------
  27. ctkDICOMItemTreeModel::ctkDICOMItemTreeModel(QObject* _parent):Superclass(_parent)
  28. {
  29. CTK_INIT_PRIVATE(ctkDICOMItemTreeModel);
  30. //CTK_D(ctkDICOMItemTreeModel);
  31. }
  32. //----------------------------------------------------------------------------
  33. ctkDICOMItemTreeModel::~ctkDICOMItemTreeModel()
  34. {
  35. }
  36. //----------------------------------------------------------------------------
  37. QModelIndex ctkDICOMItemTreeModel::index(int row, int column,
  38. const QModelIndex &parent) const
  39. {
  40. return QModelIndex();
  41. }
  42. //----------------------------------------------------------------------------
  43. QModelIndex ctkDICOMItemTreeModel::parent(const QModelIndex &child) const
  44. {
  45. return QModelIndex();
  46. }
  47. //----------------------------------------------------------------------------
  48. Qt::ItemFlags ctkDICOMItemTreeModel::flags(const QModelIndex &index) const
  49. {
  50. return 0;
  51. }
  52. //----------------------------------------------------------------------------
  53. QVariant ctkDICOMItemTreeModel::data(const QModelIndex &index, int role) const
  54. {
  55. return QVariant();
  56. }
  57. //----------------------------------------------------------------------------
  58. QVariant ctkDICOMItemTreeModel::headerData(int section, Qt::Orientation orientation,
  59. int role) const
  60. {
  61. return QVariant();
  62. }
  63. //----------------------------------------------------------------------------
  64. int ctkDICOMItemTreeModel::rowCount(const QModelIndex &parent) const
  65. {
  66. return -1;
  67. }
  68. //----------------------------------------------------------------------------
  69. int ctkDICOMItemTreeModel::columnCount(const QModelIndex &parent) const
  70. {
  71. return -1;
  72. }