ADTF  3.18.3
filterable_treemodel.h
Go to the documentation of this file.
1 
8 /*
9  * This file depends on Qt which is licensed under LGPLv3.
10  * See ADTF_DIR/3rdparty/qt5 and doc/license for detailed information.
11  */
12 
13 #pragma once
14 
15 #include <QStandardItemModel>
16 #include <adtf_utils.h>
17 
18 namespace adtf
19 {
20 namespace ui
21 {
22 namespace widget
23 {
24 namespace osborn
25 {
26 
31 class cFilterableTreeModel : public QStandardItemModel
32 {
33  public:
34  cFilterableTreeModel(QObject* pParent = nullptr);
35 
36  void SetFilterColumnIdx(int64_t nFilterColumnIdx);
37 
38  protected:
39  QVariant headerData(int section, Qt::Orientation orientation, int role) const;
40 
41  protected:
42  int64_t m_nFilterColumnIdx = -1;
43 };
44 
45 }
47 }
48 }
49 }
Copyright © Audi Electronics Venture GmbH.
Is a base class for models which can be filtered (by a overlayed sort proxy).
Namespace for entire ADTF SDK.