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

Method currentFolderPath

YACReaderLibrary/library_window.cpp:2371–2383  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2369}
2370
2371QString LibraryWindow::currentFolderPath()
2372{
2373 QString path;
2374
2375 if (foldersView->selectionModel()->selectedRows().length() > 0)
2376 path = foldersModel->getFolderPath(foldersModelProxy->mapToSource(foldersView->currentIndex()));
2377 else
2378 path = foldersModel->getFolderPath(QModelIndex());
2379
2380 QLOG_DEBUG() << "current folder path : " << QDir::cleanPath(currentPath() + path);
2381
2382 return QDir::cleanPath(currentPath() + path);
2383}
2384
2385void LibraryWindow::showExportComicsInfo()
2386{

Callers

nothing calls this directly

Calls 5

selectedRowsMethod · 0.80
getFolderPathMethod · 0.80
QModelIndexClass · 0.50
selectionModelMethod · 0.45
currentIndexMethod · 0.45

Tested by

no test coverage detected