summaryrefslogtreecommitdiffstats
path: root/qt-ui/models.cpp
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tomaz.canabrava@intel.com>2014-10-31 17:33:28 -0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-10-31 14:58:56 -0700
commitdc147be1536e67ea7ff2c3bfd77198a8f3eddb24 (patch)
tree266047a6b65aecaff527f60d6d7ea1449899b7b2 /qt-ui/models.cpp
parent1c0da67a267b9fc6a77608b4e2fa0aead472a393 (diff)
downloadsubsurface-dc147be1536e67ea7ff2c3bfd77198a8f3eddb24.tar.gz
Implemented the flags method for LocationFilter.
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/models.cpp')
-rw-r--r--qt-ui/models.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/qt-ui/models.cpp b/qt-ui/models.cpp
index 15f3a92ed..47fc4dd66 100644
--- a/qt-ui/models.cpp
+++ b/qt-ui/models.cpp
@@ -2487,7 +2487,7 @@ bool LocationFilterModel::filterRow(int source_row, const QModelIndex &source_pa
Qt::ItemFlags LocationFilterModel::flags(const QModelIndex &index) const
{
- return QStringListModel::flags(index);
+ return QStringListModel::flags(index) | Qt::ItemIsUserCheckable;
}
LocationFilterModel *LocationFilterModel::instance()