1 | // Copyright (C) 2016 The Qt Company Ltd. |
---|---|
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0 |
3 | |
4 | #include "globals.h" |
5 | |
6 | const QString &settingsPrefix() |
7 | { |
8 | static QString prefix = QString(QLatin1String("%1.%2/")) |
9 | .arg(a: (QT_VERSION >> 16) & 0xff) |
10 | .arg(a: (QT_VERSION >> 8) & 0xff); |
11 | return prefix; |
12 | } |
13 | |
14 | QString settingPath(const char *path) |
15 | { |
16 | return settingsPrefix() + QLatin1String(path); |
17 | } |
18 |