10 #ifndef SUPPORTED_PROTOCOLS_MODEL_H
11 #define SUPPORTED_PROTOCOLS_MODEL_H
19 #include <QSortFilterProxyModel>
28 QString name()
const {
return name_; }
29 ftenum_t type()
const {
return ftype_; }
30 QString filter()
const {
return filter_; }
31 QString description()
const {
return descr_; }
50 enum SupportedProtocolsColumn {
58 int fieldCount() {
return field_count_;}
60 QModelIndex index(
int row,
int column,
61 const QModelIndex & = QModelIndex())
const;
62 QModelIndex parent(
const QModelIndex &)
const;
63 QVariant data(
const QModelIndex &index,
int role)
const;
65 QVariant headerData(
int section, Qt::Orientation orientation,
66 int role = Qt::DisplayRole)
const;
68 int rowCount(
const QModelIndex &parent = QModelIndex())
const;
69 int columnCount(
const QModelIndex &parent = QModelIndex())
const;
84 virtual bool filterAcceptsRow(
int sourceRow,
const QModelIndex &sourceParent)
const;
86 void setFilter(
const QString& filter);
89 bool lessThan(
const QModelIndex &source_left,
const QModelIndex &source_right)
const;
Definition: tree_model_helpers.h:23
Definition: supported_protocols_model.h:22
Definition: supported_protocols_model.h:43
Definition: supported_protocols_model.h:79