MCPcopy Create free account
hub / github.com/YACReader/yacreader / openContainingFolder

Method openContainingFolder

YACReaderLibrary/library_window.cpp:2259–2268  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2257}
2258
2259void LibraryWindow::openContainingFolder()
2260{
2261 QModelIndex modelIndex = foldersModelProxy->mapToSource(foldersView->currentIndex());
2262 QString path;
2263 if (modelIndex.isValid())
2264 path = QDir::cleanPath(currentPath() + foldersModel->getFolderPath(modelIndex));
2265 else
2266 path = QDir::cleanPath(currentPath());
2267 QDesktopServices::openUrl(QUrl("file:///" + path, QUrl::TolerantMode));
2268}
2269
2270void LibraryWindow::setFolderAsNotCompleted()
2271{

Callers

nothing calls this directly

Calls 3

getFolderPathMethod · 0.80
currentIndexMethod · 0.45
isValidMethod · 0.45

Tested by

no test coverage detected