Tabeview can handle more lines with less RAM, so we can do not eat the
complete RAM while debugging.
Details
Details
- Reviewers
dvratil - Commits
- R199:af7f309dd3dc: Use TableView for debug page.
Diff Detail
Diff Detail
- Repository
- R199 Akonadi Console
- Branch
- master
- Lint
No Linters Available - Unit
No Unit Test Coverage
Comment Actions
Since the view is backed by QStandardItemModel I think it would be better to use appendRow():
auto out = new QStandardItem(QStringLiteral("->")); out->setForeground(Qt::green); mModel->appendRow({ new QStandardItem(identifier), out, new QStandardItem(msg.trimmed());
and analogously for the other direction
src/connectionpage.cpp | ||
---|---|---|
38–40 | mModel->setVerticalHeaderLabels({ QStringLiteral("Sender"), QStringLiteral("Direction"), QStringLiteral("Message") }); |
Comment Actions
well currently the mModel is a pointer to QAbstractItemModel, so this can't be done. I don't know if QStandardItemModel is enough in future, or if we need QAbstractItemModel anyways, if we add a own model class.