22 #if ! defined (octave_find_files_model_h) 23 #define octave_find_files_model_h 1 25 #include <QAbstractListModel> 26 #include <QStringList> 45 void addFile (
const QFileInfo& info);
47 int rowCount (
const QModelIndex&
p = QModelIndex ())
const;
49 int columnCount (
const QModelIndex&
p = QModelIndex ())
const;
51 QVariant
data (
const QModelIndex& idx,
int role)
const;
53 QVariant
headerData (
int section, Qt::Orientation orientation,
54 int role = Qt::DisplayRole)
const;
56 void sort (
int column, Qt::SortOrder order = Qt::AscendingOrder);
58 QFileInfo
fileInfo (
const QModelIndex&
p)
const;
60 QIcon
fileIcon (
const QModelIndex&
p)
const;
QVariant headerData(int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const
OCTAVE_EXPORT octave_value_list column
void addFile(const QFileInfo &info)
QIcon fileIcon(const QModelIndex &p) const
int columnCount(const QModelIndex &p=QModelIndex()) const
void sort(int column, Qt::SortOrder order=Qt::AscendingOrder)
QFileInfo fileInfo(const QModelIndex &p) const
QStringList m_columnNames
QList< QFileInfo > m_files
QVariant data(const QModelIndex &idx, int role) const
~find_files_model(void)=default
find_files_model(QObject *p=nullptr)
int rowCount(const QModelIndex &p=QModelIndex()) const