Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
globals.cpp
Go to the documentation of this file.
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
7{
8 static QString prefix = QString(QLatin1String("%1.%2/"))
9 .arg((QT_VERSION >> 16) & 0xff)
10 .arg((QT_VERSION >> 8) & 0xff);
11 return prefix;
12}
13
14QString settingPath(const char *path)
15{
16 return settingsPrefix() + QLatin1String(path);
17}
QString settingPath(const char *path)
Definition globals.cpp:14
const QString & settingsPrefix()
Definition globals.cpp:6