| 367 | } |
| 368 | |
| 369 | void 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 | |
| 381 | void MainWindow::on_tree_widget_img_currentItemChanged(QTreeWidgetItem *current, QTreeWidgetItem *previous) { |
| 382 | treeWidgetClicked(); |
nothing calls this directly
no outgoing calls
no test coverage detected