Derive TaskFilterModel from QAbstractItemModel not TaskModel

Change-Id: Ic748ada71e46811a05ced52ea7b1172ad02eb2ee
Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com>
This commit is contained in:
Daniel Teske
2012-02-22 11:40:25 +01:00
parent 380d2025fb
commit f593d74774
2 changed files with 2 additions and 2 deletions

View File

@@ -311,7 +311,7 @@ void TaskModel::setFileNotFound(const QModelIndex &idx, bool b)
// TaskFilterModel
/////
TaskFilterModel::TaskFilterModel(TaskModel *sourceModel, QObject *parent) : TaskModel(parent),
TaskFilterModel::TaskFilterModel(TaskModel *sourceModel, QObject *parent) : QAbstractItemModel(parent),
m_sourceModel(sourceModel)
{
Q_ASSERT(m_sourceModel);

View File

@@ -128,7 +128,7 @@ private:
QFont m_lineMeasurementFont;
};
class TaskFilterModel : public TaskModel
class TaskFilterModel : public QAbstractItemModel
{
Q_OBJECT