~ubuntu-branches/ubuntu/utopic/kde-workspace/utopic-proposed

« back to all changes in this revision

Viewing changes to plasma/generic/tools/remote-widgets-browser/plasmafiltermodel.h

  • Committer: Bazaar Package Importer
  • Author(s): Michał Zając
  • Date: 2011-07-09 08:31:15 UTC
  • Revision ID: james.westby@ubuntu.com-20110709083115-ohyxn6z93mily9fc
Tags: upstream-4.6.90
Import upstream version 4.6.90

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* Copyright 2011 Kevin Ottens <ervin@kde.org>
 
2
 
 
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.
 
10
 
 
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.
 
15
 
 
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,
 
19
   USA.
 
20
*/
 
21
 
 
22
#ifndef PLASMAFILTERMODEL_H
 
23
#define PLASMAFILTERMODEL_H
 
24
 
 
25
#include <krecursivefilterproxymodel.h>
 
26
 
 
27
class PlasmaFilterModel : public KRecursiveFilterProxyModel
 
28
{
 
29
    Q_OBJECT
 
30
 
 
31
public:
 
32
    PlasmaFilterModel(QObject *parent = 0);
 
33
    virtual ~PlasmaFilterModel();
 
34
 
 
35
    virtual bool filterAcceptsColumn(int sourceColumn, const QModelIndex &sourceParent) const;
 
36
    virtual bool acceptRow(int sourceRow, const QModelIndex &sourceParent) const;
 
37
 
 
38
public slots:
 
39
    void runIndex(const QModelIndex &index);
 
40
};
 
41
 
 
42
#endif
 
43