aboutsummaryrefslogtreecommitdiffstats
path: root/qt-ui/models.cpp
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tomaz.canabrava@intel.com>2014-10-31 17:26:51 -0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-10-31 14:58:56 -0700
commit2f60b73bb1dd3fcfe0c98d8cd9400e23572f1418 (patch)
treec2c1cc5619502a4b681fd01ffca38b6ccd4dfd50 /qt-ui/models.cpp
parent03c22c3b18133ae4e71d69d1c20246bc7fbb83ec (diff)
downloadsubsurface-2f60b73bb1dd3fcfe0c98d8cd9400e23572f1418.tar.gz
Location Filter, skeleton code.
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.cpp35
1 files changed, 35 insertions, 0 deletions
diff --git a/qt-ui/models.cpp b/qt-ui/models.cpp
index 42a696834..ff6974145 100644
--- a/qt-ui/models.cpp
+++ b/qt-ui/models.cpp
@@ -2465,6 +2465,41 @@ bool BuddyFilterModel::setData(const QModelIndex &index, const QVariant &value,
return false;
}
+LocationFilterModel::LocationFilterModel(QObject *parent): QStringListModel(parent)
+{
+
+}
+
+QVariant LocationFilterModel::data(const QModelIndex &index, int role) const
+{
+ return QStringListModel::data(index, role);
+}
+
+bool LocationFilterModel::filterRow(int source_row, const QModelIndex &source_parent, QAbstractItemModel *sourceModel) const
+{
+
+}
+
+Qt::ItemFlags LocationFilterModel::flags(const QModelIndex &index) const
+{
+ return QStringListModel::flags(index);
+}
+
+LocationFilterModel *LocationFilterModel::instance()
+{
+
+}
+
+void LocationFilterModel::repopulate()
+{
+
+}
+
+bool LocationFilterModel::setData(const QModelIndex &index, const QVariant &value, int role)
+{
+ return QStringListModel::setData(index, value, role);
+}
+
MultiFilterSortModel *MultiFilterSortModel::instance()
{
static MultiFilterSortModel *self = new MultiFilterSortModel();