22 #if !defined (octave_find_files_model_h)
23 #define octave_find_files_model_h
25 #include <QAbstractListModel>
26 #include <QStringList>
42 void addFile (
const QFileInfo &info);
44 int rowCount (
const QModelIndex & p=QModelIndex ())
const;
46 int columnCount (
const QModelIndex & p=QModelIndex ())
const;
48 QVariant
data (
const QModelIndex& idx,
int role)
const;
50 QVariant
headerData (
int section, Qt::Orientation orientation,
51 int role = Qt::DisplayRole)
const;
53 void sort (
int column, Qt::SortOrder order=Qt::AscendingOrder);
55 QFileInfo
fileInfo (
const QModelIndex & p)
const;
56 QIcon
fileIcon (
const QModelIndex &p)
const;
63 #endif // octave_find_files_model_h