QAdvanced Item View
0.4
The QAIV (Qt Advanced Item Views) library provides GUI and utility classes extending the capabilities of the Qt item views.
Main Page
Related Pages
Modules
Classes
Files
File List
All
Classes
Functions
Variables
Enumerations
Enumerator
Properties
Groups
Pages
qaivlib
qsearchbar.h
1
/******************************************************************************
2
** This file is part of qadvanceditemviews.
3
**
4
** Copyright (c) 2011-2014 Martin Hoppe martin@2x2hoppe.de
5
**
6
** qadvanceditemviews is free software: you can redistribute it
7
** and/or modify it under the terms of the GNU Lesser General
8
** Public License as published by the Free Software Foundation,
9
** either version 3 of the License, or (at your option) any
10
** later version.
11
**
12
** qadvanceditemviews is distributed in the hope that it will be
13
** useful, but WITHOUT ANY WARRANTY; without even the implied
14
** warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15
** See the GNU General Public License for more details.
16
**
17
** You should have received a copy of the GNU Lesser General Public
18
** License along with qadvanceditemviews.
19
** If not, see <http://www.gnu.org/licenses/>.
20
******************************************************************************/
21
#ifndef QSEARCHBAR_H
22
#define QSEARCHBAR_H
23
24
#include <QWidget>
25
#include <qaivlib_global.h>
26
27
namespace
Ui {
class
QSearchBar
;};
28
29
class
QSearchBarPrivate;
30
31
class
QAIVLIBSHARED_EXPORT
QSearchBar
:
public
QWidget
32
{
33
Q_OBJECT
34
public
:
35
QSearchBar
(QWidget* parent = 0);
36
~
QSearchBar
();
37
signals:
38
void
expressionChanged(
const
QString & text);
39
void
searchNext();
40
void
searchPrevious();
41
public
slots:
42
void
clear();
43
void
match(QAbstractItemModel* model);
44
//bool match(const QModelIndex & start, int role, const QVariant & value, int hits = 1, Qt::MatchFlags flags = Qt::MatchFlags( Qt::MatchStartsWith | Qt::MatchWrap)) const;
45
private
slots:
46
void
expressionChangedHandler(
const
QString & text);
47
private
:
48
QSearchBarPrivate* d;
49
Ui::QSearchBar *ui;
50
};
51
52
#endif // QSEARCHBAR_H
QSearchBar
Definition:
qsearchbar.h:31
Generated on Mon Aug 18 2014 23:02:02 for QAdvanced Item View by
1.8.7