itom
Loading...
Searching...
No Matches
leafFilterProxyModel.h
1
/* ********************************************************************
2
itom software
3
URL: http://www.uni-stuttgart.de/ito
4
Copyright (C) 2020, Institut für Technische Optik (ITO),
5
Universität Stuttgart, Germany
6
7
This file is part of itom.
8
9
itom is free software; you can redistribute it and/or modify it
10
under the terms of the GNU Library General Public Licence as published by
11
the Free Software Foundation; either version 2 of the Licence, or (at
12
your option) any later version.
13
14
itom is distributed in the hope that it will be useful, but
15
WITHOUT ANY WARRANTY; without even the implied warranty of
16
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library
17
General Public Licence for more details.
18
19
You should have received a copy of the GNU Library General Public License
20
along with itom. If not, see <http://www.gnu.org/licenses/>.
21
*********************************************************************** */
22
23
#ifndef LEAFFILTERPROXYMODEL_H
24
#define LEAFFILTERPROXYMODEL_H
25
26
#include <QSortFilterProxyModel>
27
28
namespace
ito
29
{
30
31
class
LeafFilterProxyModel
:
public
QSortFilterProxyModel
32
{
33
Q_OBJECT
34
public
:
35
explicit
LeafFilterProxyModel
(QObject *parent = 0);
36
37
signals:
38
39
public
slots:
40
41
protected
:
42
bool
filterAcceptsRow(
int
source_row,
const
QModelIndex &source_parent)
const
;
43
bool
filterAcceptsRowItself(
int
source_row,
const
QModelIndex &source_parent)
const
;
44
bool
hasAcceptedChildren(
int
source_row,
const
QModelIndex &source_parent)
const
;
45
46
};
47
48
}
//end namespace ito
49
50
#endif
// LEAFFILTERPROXYMODEL_H
ito::LeafFilterProxyModel
This class provides a special search function to the help model. The normal filtermodel hides nodes i...
Definition
leafFilterProxyModel.h:32
ito
Definition
apiFunctionsGraph.cpp:40
itom
Qitom
models
leafFilterProxyModel.h
Generated on Tue Nov 12 2024 10:43:14 for itom by
1.12.0