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

Function comicBaseName

YACReader/main_window_viewer.cpp:48–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46namespace {
47
48QString comicBaseName(const QString &path)
49{
50 QFileInfo comicInfo(path);
51 QString baseName = comicInfo.isDir() ? comicInfo.fileName() : comicInfo.completeBaseName();
52 if (baseName.isEmpty())
53 baseName = "page";
54
55 return baseName;
56}
57
58QString pageSuffix(const QList<int> &pages)
59{

Callers 2

saveImageMethod · 0.85
extractPagesMethod · 0.85

Calls 2

isEmptyMethod · 0.80
isDirMethod · 0.45

Tested by

no test coverage detected