MCPcopy Create free account
hub / github.com/abreheret/PixelAnnotationTool / treeWidgetClicked

Method treeWidgetClicked

src/main_window.cpp:369–379  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

367}
368
369void MainWindow::treeWidgetClicked() {
370 QString iFile = currentFile();
371 QString iDir = currentDir();
372 if (iFile.isEmpty() || iDir.isEmpty())
373 return;
374
375 allDisconnnect(image_canvas);
376 int index = getImageCanvas(iFile, image_canvas);
377 updateConnect(image_canvas);
378 tabWidget->setCurrentIndex(index);
379}
380
381void MainWindow::on_tree_widget_img_currentItemChanged(QTreeWidgetItem *current, QTreeWidgetItem *previous) {
382 treeWidgetClicked();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected