1
/* Copyright 2011 Kevin Ottens <ervin@kde.org>
3
This program is free software; you can redistribute it and/or
4
modify it under the terms of the GNU General Public License as
5
published by the Free Software Foundation; either version 2 of
6
the License or (at your option) version 3 or any later version
7
accepted by the membership of KDE e.V. (or its successor approved
8
by the membership of KDE e.V.), which shall act as a proxy
9
defined in Section 14 of version 3 of the license.
11
This program is distributed in the hope that it will be useful,
12
but WITHOUT ANY WARRANTY; without even the implied warranty of
13
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
GNU General Public License for more details.
16
You should have received a copy of the GNU General Public License
17
along with this program; if not, write to the Free Software
18
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
22
#ifndef PLASMAFILTERMODEL_H
23
#define PLASMAFILTERMODEL_H
25
#include <krecursivefilterproxymodel.h>
27
class PlasmaFilterModel : public KRecursiveFilterProxyModel
32
PlasmaFilterModel(QObject *parent = 0);
33
virtual ~PlasmaFilterModel();
35
virtual bool filterAcceptsColumn(int sourceColumn, const QModelIndex &sourceParent) const;
36
virtual bool acceptRow(int sourceRow, const QModelIndex &sourceParent) const;
39
void runIndex(const QModelIndex &index);