-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathresulttreeview.h
45 lines (37 loc) · 1.01 KB
/
resulttreeview.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
39
40
41
42
43
44
45
#ifndef RESULTTREEVIEW_H
#define RESULTTREEVIEW_H
#include <QTreeView>
#include "kadresult.h"
class Kademlia;
class ResultTableModel;
class ResultSortFilterProxyModel;
class ResultItemDelegate;
class ResultTreeView : public QTreeView
{
Q_OBJECT
public:
ResultTreeView(QString key, QWidget *parent = 0);
~ResultTreeView();
void InitControl();
void AddContextMenu();
void FilterResult(QString name, QStringList typeList);
private:
QMenu *m_pPopupMenu;
QString m_key;
QStringList m_typeFilter;
QString m_nameFilter;
Kademlia *m_pKademlia;
ResultTableModel *m_pResultTableModel;
ResultSortFilterProxyModel *m_pResultProxyModel;
ResultItemDelegate *m_pResultItemDelegate;
signals:
void updateTabTitle(QString title, QWidget *widget);
private slots:
void insertResult(const KadResult& result);
void customContextMenuRequested(const QPoint & pos);
void playerCurrentItem();
void copySelectedEd2kItem();
void downloadSelectedItem();
void on_sectionClicked_emited(int logicalIndex);
};
#endif // RESULTTREEVIEW_H