Converted tagging system to qtreewidget-based model