mirror of
https://gitlab.com/eql/lqml.git
synced 2025-12-06 02:30:38 -08:00
example 'meshtastic': fast (offline) tile backup (not using zip); revisions
This commit is contained in:
parent
e8e0bca0e0
commit
49c0f4a80f
15 changed files with 132 additions and 49 deletions
|
|
@ -145,14 +145,11 @@ QVariant QT::sqlQuery(const QVariant& vQuery, const QVariant& vValues) {
|
|||
|
||||
// etc
|
||||
|
||||
QVariant QT::dataPath() {
|
||||
QVariant QT::dataPath(const QVariant& prefix) {
|
||||
// for desktop
|
||||
static QString path;
|
||||
if (path.isEmpty()) {
|
||||
path = QStandardPaths::writableLocation(QStandardPaths::AppLocalDataLocation);
|
||||
path.truncate(path.lastIndexOf(QChar('/')));
|
||||
path.append("/cl-meshtastic/data/");
|
||||
}
|
||||
QString path = QStandardPaths::writableLocation(QStandardPaths::AppLocalDataLocation);
|
||||
path.truncate(path.lastIndexOf(QChar('/')));
|
||||
path.append(QStringLiteral("/cl-meshtastic/") + prefix.toString());
|
||||
return path;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue