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

Function defaultPageExportDirectory

YACReader/main_window_viewer.cpp:81–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79}
80
81QString defaultPageExportDirectory()
82{
83 const auto locations = { QStandardPaths::PicturesLocation,
84 QStandardPaths::DocumentsLocation,
85 QStandardPaths::HomeLocation };
86
87 for (const auto location : locations) {
88 const QString path = QStandardPaths::writableLocation(location);
89 if (!path.isEmpty())
90 return path;
91 }
92
93 return QDir::currentPath();
94}
95
96QString pageExportDirectory(QSettings *settings, QString key)
97{

Callers 1

pageExportDirectoryFunction · 0.85

Calls 1

isEmptyMethod · 0.80

Tested by

no test coverage detected