Can someone help me present a list filtered by the column 1 of the TreeView and the Hierarchical AbstractItemModel?

I am trying to present a list in the lowerleft of only items that are of Type VARIABLE or STRING BUILDER. I have attempted to use sortFilterProxyModel and am missing something. I guess it only works on items that match when their parent is rootnode.

I have been beating my head against the wall on how to do this without making two seperate AbstractItem models and attempting to maintain the QmodelIndexes.

myGui.jpg