@@ -73,8 +73,7 @@ void KeypointWidget::init() {
73
73
connect (bodyPartsListWidget, &KeypointListWidget::removeKeypoint, this , &KeypointWidget::removeKeypointSlot);
74
74
connect (bodyPartsListWidget, &KeypointListWidget::suppressKeypoint, this , &KeypointWidget::suppressKeypointSlot);
75
75
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);
78
77
79
78
for (const auto & bp : Dataset::dataset->bodypartsList ()) {
80
79
QListWidgetItem * bpItem = new QListWidgetItem ();
@@ -183,23 +182,7 @@ void KeypointWidget::toggleCurrentKeypointSlot() {
183
182
keypointList->toggleCurrentKeypointSuppression ();
184
183
}
185
184
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 (){
203
186
// figure out which keypointList is currently active
204
187
KeypointListWidget* keypointList = keypointListMap[m_currentEntity];
205
188
0 commit comments