-
Notifications
You must be signed in to change notification settings - Fork 38
/
filteringlistview.h
38 lines (31 loc) · 1 KB
/
filteringlistview.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#ifndef FILTERINGLISTVIEW_H
#define FILTERINGLISTVIEW_H
#include <QListView>
class FilteringListView : public QListView
{
Q_OBJECT
public:
explicit FilteringListView(QWidget *parent = 0);
signals:
void selectedCurrentEntry(const QModelIndex&);
void selectedCurrentText(const QString&);
void selectedCurrentEntryNoHistory(const QModelIndex&);
void sendCurrentEntryToEdit(const QString&);
void selectRawData(const QMap<QString, QString>&);
public slots:
void nextEntry();
void getCurrentEntryForEdit();
void prevEntry();
void firstEntry();
void lastEntry();
void nextPageOfEntries();
void prevPageOfEntries();
void selectedCurrentEntryWithText(const QString& input = "");
void selectAllEntries();
void shiftSelectCurrentEntry();
protected slots:
void dataChanged(const QModelIndex & topLeft, const QModelIndex & bottomRight, const QVector<int> & roles = QVector<int> ());
private:
void changeSelection(int how);
};
#endif // FILTERINGLISTVIEW_H