Plasma-workspace

flattentaskgroupsproxymodel.cpp
1/*
2 SPDX-FileCopyrightText: 2016 Eike Hein <hein@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
5*/
6
7#include "flattentaskgroupsproxymodel.h"
8
9namespace TaskManager
10{
11class Q_DECL_HIDDEN FlattenTaskGroupsProxyModel::Private
12{
13public:
14 Private(FlattenTaskGroupsProxyModel *q);
15
16 AbstractTasksModelIface *sourceTasksModel = nullptr;
17};
18
19FlattenTaskGroupsProxyModel::Private::Private(FlattenTaskGroupsProxyModel *)
20{
21}
22
23FlattenTaskGroupsProxyModel::FlattenTaskGroupsProxyModel(QObject *parent)
25 , d(new Private(this))
26{
27}
28
29FlattenTaskGroupsProxyModel::~FlattenTaskGroupsProxyModel()
30{
31}
32
33void FlattenTaskGroupsProxyModel::setSourceModel(QAbstractItemModel *sourceModel)
34{
35 d->sourceTasksModel = dynamic_cast<AbstractTasksModelIface *>(sourceModel);
36
38}
39
40QModelIndex FlattenTaskGroupsProxyModel::mapIfaceToSource(const QModelIndex &index) const
41{
42 return mapToSource(index);
43}
44
45}
46
47#include "moc_flattentaskgroupsproxymodel.cpp"
void setSourceModel(QAbstractItemModel *model) override
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:58:38 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.