28 QModelIndex index(
int row,
int column,
const QModelIndex & = QModelIndex())
const;
30 virtual QModelIndex parent(
const QModelIndex &)
const {
return QModelIndex(); }
31 virtual int rowCount(
const QModelIndex &parent = QModelIndex())
const;
32 virtual int columnCount(
const QModelIndex &)
const {
return ColumnCount; }
33 virtual QVariant data(
const QModelIndex &index,
int role = Qt::DisplayRole)
const;
34 virtual QVariant headerData(
int section, Qt::Orientation,
int role = Qt::DisplayRole)
const;
37 const fileset_entry *getRowEntry(
int row)
const {
return entries_.value(row, NULL); }
38 int entryCount()
const {
return static_cast<int>(entries_.count()); }
43 QVector<const fileset_entry *> entries_;
44 enum Column { Name, Created, Modified, Size, ColumnCount };
46 QString nameToDate(
const char *name)
const ;
47 QString time_tToString(time_t clock)
const;
Definition fileset_entry_model.h:22