3
* Copyright (C) 2001 - 2007 Christian Hohnstaedt.
11
#include <qtreeview.h>
12
#include <qitemselectionmodel.h>
13
#include <qsortfilterproxymodel.h>
14
#include "lib/db_base.h"
17
class XcaTreeView: public QTreeView
22
QSortFilterProxyModel *proxy;
24
XcaTreeView(QWidget *parent = 0);
26
void contextMenuEvent(QContextMenuEvent * e);
27
void setModel(QAbstractItemModel *model);
28
QModelIndex getIndex(const QModelIndex &index);
29
QModelIndex getProxyIndex(const QModelIndex &index);
30
QModelIndexList getSelectedIndexes();
35
class CertTreeView: public XcaTreeView
38
CertTreeView(QWidget *parent = 0);
41
class XcaProxyModel: public QSortFilterProxyModel
45
XcaProxyModel(QWidget *parent = 0);
46
bool lessThan(const QModelIndex &left, const QModelIndex &right) const;