@@ -73,8 +73,7 @@ void KeypointWidget::init() {
7373 connect (bodyPartsListWidget, &KeypointListWidget::removeKeypoint, this , &KeypointWidget::removeKeypointSlot);
7474 connect (bodyPartsListWidget, &KeypointListWidget::suppressKeypoint, this , &KeypointWidget::suppressKeypointSlot);
7575 connect (bodyPartsListWidget, &KeypointListWidget::unsuppressKeypoint, this , &KeypointWidget::unsuppressKeypointSlot);
76- // connect(bodyPartsListWidget, &KeypointListWidget::toggleCurrentKeypoint, this, &KeypointWidget::toggleCurrentKeypointSlot);
77- connect (bodyPartsListWidget, &KeypointListWidget::afterToggleSuppression, this , &KeypointWidget::afterToggleSuppressionSlot);
76+ connect (bodyPartsListWidget, &KeypointListWidget::advanceCurrentKeypoint, this , &KeypointWidget::advanceCurrentKeypointSlot);
7877
7978 for (const auto & bp : Dataset::dataset->bodypartsList ()) {
8079 QListWidgetItem * bpItem = new QListWidgetItem ();
@@ -183,23 +182,7 @@ void KeypointWidget::toggleCurrentKeypointSlot() {
183182 keypointList->toggleCurrentKeypointSuppression ();
184183}
185184
186- void KeypointWidget::afterToggleSuppressionSlot () {
187-
188- KeypointListWidget* keypointList = keypointListMap[m_currentEntity];
189-
190- // advance the row to the next keypoint, if possible
191- if (keypointList->currentRow () < keypointList->count ()-1 ) {
192- keypointList->setCurrentRow (keypointList->currentRow ()+1 );
193-
194- // update the viewer accordingly
195- QColor color = colorMap->getColor (keypointList->currentRow (), keypointList->count ());
196- m_currentBodypart = keypointList->item (keypointList->currentRow ())->text ();
197- emit currentBodypartChanged (m_currentBodypart, color);
198- emit updateViewer ();
199- }
200- }
201-
202- void KeypointWidget::skipCurrentKeypointSlot (){
185+ void KeypointWidget::advanceCurrentKeypointSlot (){
203186 // figure out which keypointList is currently active
204187 KeypointListWidget* keypointList = keypointListMap[m_currentEntity];
205188
0 commit comments