swaymux/tree/PsTreeModel.cpp

21 lines
486 B
C++
Raw Normal View History

2024-03-02 22:33:27 +01:00
//
// Created by grimmauld on 25.02.24.
//
#include "PsTreeModel.h"
void PsTreeModel::update() {
2024-03-04 00:27:05 +01:00
/*
auto* root = getRoot();
auto changes = update_process_records(root);
2024-03-02 22:33:27 +01:00
QList<QPersistentModelIndex> changedParents{};
for(auto* node: changes) {
changedParents.push_back(createIndex(node->row(), 0, node));
}
layoutAboutToBeChanged(changedParents);
2024-03-04 00:27:05 +01:00
*/
2024-03-02 22:33:27 +01:00
}
2024-03-04 00:27:05 +01:00
PsTreeModel::PsTreeModel(QObject *parent) : PsTreeModel(get_process_records(), parent) {}