59 tagTableWidget->insertRow( ii );
63 auto tagVector = pTimeline->getAllTags();
66 bool bExistingTagClicked =
false;
68 for (
const auto& ttag : tagVector ){
70 QTableWidgetItem *newTagItem =
new QTableWidgetItem();
71 newTagItem->setText( ttag->sTag );
72 tagTableWidget->setItem( ttag->nColumn, 0, newTagItem );
76 bExistingTagClicked =
true;
77 tagTableWidget->setCurrentItem( newTagItem );
78 tagTableWidget->openPersistentEditor( newTagItem );
83 if ( ! bExistingTagClicked ) {
85 QTableWidgetItem *newBlankItem =
new QTableWidgetItem();
87 tagTableWidget->setCurrentItem( newBlankItem );
88 tagTableWidget->openPersistentEditor( newBlankItem );