10 #ifndef SUPPORTED_PROTOCOLS_MODEL_H 11 #define SUPPORTED_PROTOCOLS_MODEL_H 15 #include <ui/qt/models/tree_model_helpers.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;
85 virtual bool filterAcceptsRow(
int sourceRow,
const QModelIndex &sourceParent)
const;
87 void setFilter(
const QString& filter);
90 bool lessThan(
const QModelIndex &source_left,
const QModelIndex &source_right)
const;
98 #endif // SUPPORTED_PROTOCOLS_MODEL_H Definition: supported_protocols_model.h:21
Definition: supported_protocols_model.h:78
Definition: tree_model_helpers.h:22
Definition: supported_protocols_model.h:42