Move from QTreeWidget to QTreeView/QStandardItemModel.

This prepares the core/ui split.