32 #include <QAbstractItemModel>
33 #include <QModelIndex>
35 #include <QTextStream>
37 #include <QStringList>
52 const static QStringList
cols;
55 QVariant
data(
const QModelIndex &
index,
int role)
const;
56 Qt::ItemFlags
flags(
const QModelIndex &
index)
const;
57 QVariant
headerData(
int section, Qt::Orientation orientation,
58 int role = Qt::DisplayRole)
const;
59 QModelIndex
index(
int row,
int column,
60 const QModelIndex &
parent = QModelIndex())
const;
68 bool insert(
int,
const QString&);
70 const QModelIndex &
parent = QModelIndex());
72 const QModelIndex &
parent = QModelIndex());
74 QStringList
fileType(
const QString pathname);
void appendData(const QString &lines)
QStringList fileType(const QString pathname)
QVariant data(const QModelIndex &index, int role) const
QColor itemColor(const DirItem *)
QVariant headerData(int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const
void writeData(QTextStream &os)
Qt::ItemFlags flags(const QModelIndex &index) const
bool insert(int, const QString &)
QModelIndex parent(const QModelIndex &index) const
void setupModelData(QDir *lines, DirItem *parent)
DirModel(QDir *data, QObject *parent=0)
QModelIndex index(int row, int column, const QModelIndex &parent=QModelIndex()) const
void searchKeyChanged(const QString &key="")
int rowCount(const QModelIndex &parent=QModelIndex()) const
static const QStringList cols
static const QColor colors[24]
int columnCount(const QModelIndex &parent=QModelIndex()) const
virtual bool insertRows(int row, int count, const QModelIndex &parent=QModelIndex())
virtual bool removeRows(int row, int count, const QModelIndex &parent=QModelIndex())