D12738: Use TableView for debug page.
Sandro Knauß
noreply at phabricator.kde.org
Mon May 7 16:03:30 BST 2018
knauss added a comment.
In D12738#259115 <https://phabricator.kde.org/D12738#259115>, @dvratil wrote:
> 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
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.
REPOSITORY
R199 Akonadi Console
REVISION DETAIL
https://phabricator.kde.org/D12738
To: knauss, dvratil
Cc: #kde_pim, dvasin, winterz, vkrause, mlaurent, knauss, dvratil
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-pim/attachments/20180507/e3709e64/attachment.html>
More information about the kde-pim
mailing list