Playing around with AMActionHistoryModel calls to get slightly better performance. Need to redo model to really make a difference.
Started new underlying tree model for AMActionHistoryModel. Moved QAbstractItemModel calls to use this model. Seems to be working. Still some functions to migrate.
Added clearing capability to the new underlying model. Refresh time for the Show More Actions Button went from 24 seconds to 8 seconds. Still can do better figuring out exactly how many actions need to be loaded to get another top level and not calling refresh recursively.
Fixed the repeated calls to refreshDb by giving better sugestions for how many more actions to load on a show more. Took running time from 8 seconds down to 1 second. Need to clean up all of the class to remove the old items list and document the code.
Tried to fix up as muc of the AMActionHistoryModel as I can without beamline testing available. Will need to test live action adding at some point.
Moved the general AMPointerTree(Node) classes to their own file in the util folder. Removed a lot of old commented out code. Added some comments and fixed some errorMons. Need to check into the performance of item selection in the model.
A pair of changes to bounds checking type problems in AMActionHistoryModel has solved the slow perfomance issues for selection. However, I believe I've introduced a problem where non-toplevel siblings aren't causing their (de)selected children to update properly.