29 virtual int rowCount(
const QModelIndex &parent = QModelIndex())
const;
30 virtual int columnCount(
const QModelIndex &parent = QModelIndex())
const;
31 virtual QVariant data(
const QModelIndex &index,
int role = Qt::DisplayRole)
const;
32 virtual QVariant headerData(
int section, Qt::Orientation orientation,
int role = Qt::DisplayRole)
const;
41 virtual void appendRow(
const QStringList &,
const QString & row_tooltip = QString(),
const QModelIndex &parent = QModelIndex());
44 virtual QStringList headerColumns()
const = 0;
47 QList<QStringList> display_data_;
48 QStringList tooltip_data_;
56 enum AStringListListFilterType
63 Q_ENUM(AStringListListFilterType)
67 virtual bool lessThan(
const QModelIndex &left,
const QModelIndex &right)
const;
68 virtual bool filterAcceptsRow(
int sourceRow,
const QModelIndex &sourceParent)
const;
69 virtual bool filterAcceptsColumn(
int column,
const QModelIndex &sourceParent)
const;
71 void setFilterType(AStringListListFilterType type,
int column = -1);
73 void setColumnToFilter(
int);
74 void setColumnsToFilter(QList<int>);
75 void clearColumnsToFilter();
77 void clearHiddenColumns();
78 void setColumnToHide(
int col);
80 void clearNumericColumns();
81 void setColumnAsNumeric(
int col);
84 void setFilter(
const QString&);
88 QMap<int, AStringListListFilterType> types_;
89 QList<int> columnsToFilter_;
90 QList<int> hiddenColumns_;
91 QList<int> numericColumns_;