Mercurial > retraceit
comparison src/metadataview.h @ 88:3916cb3c9105
Add new FilterSort model that allows to include empty values
author | Andre Heinecke <andre.heinecke@intevation.de> |
---|---|
date | Fri, 19 Jun 2015 14:26:16 +0200 |
parents | 5923d569167b |
children | b8c7644a9d49 |
comparison
equal
deleted
inserted
replaced
87:3b3a1384eb5f | 88:3916cb3c9105 |
---|---|
18 #include <QDateTime> | 18 #include <QDateTime> |
19 | 19 |
20 class QTableView; | 20 class QTableView; |
21 class QSortFilterProxyModel; | 21 class QSortFilterProxyModel; |
22 class QxtCsvModel; | 22 class QxtCsvModel; |
23 class IncludeEmptySortModel; | |
24 class FilterWidget; | |
23 | 25 |
24 /** | 26 /** |
25 * @class MetaDataView | 27 * @class MetaDataView |
26 * @brief Table view of the meta data data information. | 28 * @brief Table view of the meta data data information. |
27 */ | 29 */ |
75 void applyDefaultSort(); | 77 void applyDefaultSort(); |
76 | 78 |
77 /** @brief resizes the columns to headers content */ | 79 /** @brief resizes the columns to headers content */ |
78 void resizeColsToHeaders(); | 80 void resizeColsToHeaders(); |
79 | 81 |
80 protected: | 82 private: |
81 QxtCsvModel *mCSVModel; | 83 QxtCsvModel *mCSVModel; |
82 QSortFilterProxyModel *mSortModel; | 84 IncludeEmptySortModel *mSortModel; |
83 QTableView *mView; | 85 QTableView *mView; |
84 int mDateColIdx; | 86 int mDateColIdx; |
87 FilterWidget *mFilterWidget; | |
85 }; | 88 }; |
86 | 89 |
87 | 90 |
88 #endif // METADATAVIEW_H | 91 #endif // METADATAVIEW_H |