comparison src/includeemptysortmodel.h @ 94:07e1e47954f6

Default to include empty fields
author Andre Heinecke <andre.heinecke@intevation.de>
date Mon, 29 Jun 2015 15:38:41 +0200
parents 3916cb3c9105
children
comparison
equal deleted inserted replaced
93:e4e3228dda08 94:07e1e47954f6
22 class IncludeEmptySortModel : public QSortFilterProxyModel 22 class IncludeEmptySortModel : public QSortFilterProxyModel
23 { 23 {
24 Q_OBJECT 24 Q_OBJECT
25 25
26 public: 26 public:
27 IncludeEmptySortModel() : QSortFilterProxyModel(), mIncludeEmpty(false) {} 27 IncludeEmptySortModel() : QSortFilterProxyModel(), mIncludeEmpty(true) {}
28 28
29 /** @brief wrapper around the base class call that accepts empty 29 /** @brief wrapper around the base class call that accepts empty
30 * values if includeEmpty is checked. */ 30 * values if includeEmpty is checked. */
31 bool filterAcceptsRow(int sourceRow, const QModelIndex &sourceParent) const; 31 bool filterAcceptsRow(int sourceRow, const QModelIndex &sourceParent) const;
32 32
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)