32 #include <QAbstractItemModel>
33 #include <QModelIndex>
35 #include <QTextStream>
50 QVariant
data(
const QModelIndex &
index,
int role)
const;
51 Qt::ItemFlags
flags(
const QModelIndex &index)
const;
52 QVariant
headerData(
int section, Qt::Orientation orientation,
53 int role = Qt::DisplayRole)
const;
54 QModelIndex
index(
int row,
int column,
55 const QModelIndex &
parent = QModelIndex())
const;
56 QModelIndex
parent(
const QModelIndex &index)
const;
57 int rowCount(
const QModelIndex &parent = QModelIndex())
const;
58 int columnCount(
const QModelIndex &parent = QModelIndex())
const;
63 bool insert(
int,
const QString&);
65 const QModelIndex & parent = QModelIndex());
67 const QModelIndex & parent = QModelIndex());
QVariant headerData(int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const
virtual bool insertRows(int row, int count, const QModelIndex &parent=QModelIndex())
bool insert(int, const QString &)
void appendData(const QString &data)
QModelIndex parent(const QModelIndex &index) const
int columnCount(const QModelIndex &parent=QModelIndex()) const
int rowCount(const QModelIndex &parent=QModelIndex()) const
void searchKeyChanged(const QString &key="")
QModelIndex index(int row, int column, const QModelIndex &parent=QModelIndex()) const
LogModel(const QString &data, QObject *parent=0)
void writeData(QTextStream &os)
virtual bool removeRows(int row, int count, const QModelIndex &parent=QModelIndex())
Qt::ItemFlags flags(const QModelIndex &index) const
QVariant data(const QModelIndex &index, int role) const
void setupModelData(const QString &lines, LogItem *parent)