changeset 94:07e1e47954f6

Default to include empty fields
author Andre Heinecke <andre.heinecke@intevation.de>
date Mon, 29 Jun 2015 15:38:41 +0200
parents e4e3228dda08
children ad78dc946ed3
files src/filterwidget.cpp src/includeemptysortmodel.h
diffstat 2 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/filterwidget.cpp	Fri Jun 19 14:31:44 2015 +0200
+++ b/src/filterwidget.cpp	Mon Jun 29 15:38:41 2015 +0200
@@ -87,6 +87,7 @@
     if (mWithEmptyChk) {
         mEmptyChk = new QCheckBox(tr("Include empty fields"));
         baseLayout->addWidget(mEmptyChk);
+        mEmptyChk->setCheckState(Qt::Checked);
         connect(mEmptyChk, &QCheckBox::stateChanged, this, &FilterWidget::includeEmptyChanged);
     }
 
--- a/src/includeemptysortmodel.h	Fri Jun 19 14:31:44 2015 +0200
+++ b/src/includeemptysortmodel.h	Mon Jun 29 15:38:41 2015 +0200
@@ -24,7 +24,7 @@
     Q_OBJECT
 
 public:
-    IncludeEmptySortModel() : QSortFilterProxyModel(), mIncludeEmpty(false) {}
+    IncludeEmptySortModel() : QSortFilterProxyModel(), mIncludeEmpty(true) {}
 
     /** @brief wrapper around the base class call that accepts empty
      * values if includeEmpty is checked. */
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)