Medical Imaging Interaction Toolkit  2024.06.00
Medical Imaging Interaction Toolkit
QmitkViewProxyModel.h
Go to the documentation of this file.
1 /*============================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 
13 #ifndef QmitkViewProxyModel_h
14 #define QmitkViewProxyModel_h
15 
16 #include <QSortFilterProxyModel>
17 
18 class QmitkViewProxyModel : public QSortFilterProxyModel
19 {
20 public:
21  explicit QmitkViewProxyModel(QObject* parent = nullptr);
22  ~QmitkViewProxyModel() override;
23 
24 private:
25  bool filterAcceptsRow(int sourceRow, const QModelIndex& sourceParent) const override;
26  bool lessThan(const QModelIndex& left, const QModelIndex& right) const override;
27 };
28 
29 #endif
QmitkViewProxyModel::~QmitkViewProxyModel
~QmitkViewProxyModel() override
QmitkViewProxyModel
Definition: QmitkViewProxyModel.h:18
QmitkViewProxyModel::QmitkViewProxyModel
QmitkViewProxyModel(QObject *parent=nullptr)