summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/corelib/CMakeLists.txt2
-rw-r--r--src/corelib/compat/removed_api.cpp2
-rw-r--r--src/corelib/global/qglobal.h2
-rw-r--r--src/corelib/global/qtenvironmentvariables.cpp (renamed from src/corelib/global/qenvironmentvariables.cpp)16
-rw-r--r--src/corelib/global/qtenvironmentvariables.h (renamed from src/corelib/global/qenvironmentvariables.h)8
-rw-r--r--src/tools/bootstrap/CMakeLists.txt2
6 files changed, 16 insertions, 16 deletions
diff --git a/src/corelib/CMakeLists.txt b/src/corelib/CMakeLists.txt
index 32e8456136..a4ea44db42 100644
--- a/src/corelib/CMakeLists.txt
+++ b/src/corelib/CMakeLists.txt
@@ -55,7 +55,6 @@ qt_internal_add_module(Core
global/qcontainerinfo.h
global/qdarwinhelpers.h
global/qendian.cpp global/qendian.h global/qendian_p.h
- global/qenvironmentvariables.cpp global/qenvironmentvariables.h
global/qexceptionhandling.cpp global/qexceptionhandling.h
global/qflags.h
global/qfloat16.cpp global/qfloat16.h
@@ -80,6 +79,7 @@ qt_internal_add_module(Core
global/qtclasshelpermacros.h
global/qtconfigmacros.h
global/qtdeprecationmarkers.h
+ global/qtenvironmentvariables.cpp global/qtenvironmentvariables.h
global/qtrace_p.h
global/qtranslation.h
global/qtresource.h
diff --git a/src/corelib/compat/removed_api.cpp b/src/corelib/compat/removed_api.cpp
index 213b07f655..234a9522d4 100644
--- a/src/corelib/compat/removed_api.cpp
+++ b/src/corelib/compat/removed_api.cpp
@@ -295,7 +295,7 @@ QString QDir::operator[](int i) const
}
#endif
-#include "qenvironmentvariables.h"
+#include "qtenvironmentvariables.h"
bool qputenv(const char *varName, const QByteArray &value)
{
diff --git a/src/corelib/global/qglobal.h b/src/corelib/global/qglobal.h
index 6a247f9ea4..70b0a0faf9 100644
--- a/src/corelib/global/qglobal.h
+++ b/src/corelib/global/qglobal.h
@@ -90,7 +90,6 @@ QT_END_NAMESPACE
#include <QtCore/qatomic.h>
#include <QtCore/qconstructormacros.h>
#include <QtCore/qdarwinhelpers.h>
-#include <QtCore/qenvironmentvariables.h>
#include <QtCore/qexceptionhandling.h>
#include <QtCore/qforeach.h>
#include <QtCore/qglobalstatic.h>
@@ -100,6 +99,7 @@ QT_END_NAMESPACE
#include <QtCore/qoverload.h>
#include <QtCore/qswap.h>
#include <QtCore/qtdeprecationmarkers.h>
+#include <QtCore/qtenvironmentvariables.h>
#include <QtCore/qtranslation.h>
#include <QtCore/qtresource.h>
#include <QtCore/qtypetraits.h>
diff --git a/src/corelib/global/qenvironmentvariables.cpp b/src/corelib/global/qtenvironmentvariables.cpp
index 4860913327..4046beae1f 100644
--- a/src/corelib/global/qenvironmentvariables.cpp
+++ b/src/corelib/global/qtenvironmentvariables.cpp
@@ -1,7 +1,7 @@
// Copyright (C) 2022 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
-#include "qenvironmentvariables.h"
+#include "qtenvironmentvariables.h"
#include <qplatformdefs.h>
#include <QtCore/qbytearray.h>
@@ -18,7 +18,7 @@ QT_BEGIN_NAMESPACE
Q_CONSTINIT static QBasicMutex environmentMutex;
/*!
- \relates <QEnvironmentVariables>
+ \relates <QtEnvironmentVariables>
\threadsafe
Returns the value of the environment variable with name \a varName as a
@@ -63,7 +63,7 @@ QByteArray qgetenv(const char *varName)
\fn QString qEnvironmentVariable(const char *varName, const QString &defaultValue)
\fn QString qEnvironmentVariable(const char *varName)
- \relates <QEnvironmentVariables>
+ \relates <QtEnvironmentVariables>
\since 5.10
These functions return the value of the environment variable, \a varName, as a
@@ -143,7 +143,7 @@ QString qEnvironmentVariable(const char *varName)
}
/*!
- \relates <QEnvironmentVariables>
+ \relates <QtEnvironmentVariables>
\since 5.1
Returns whether the environment variable \a varName is empty.
@@ -171,7 +171,7 @@ bool qEnvironmentVariableIsEmpty(const char *varName) noexcept
}
/*!
- \relates <QEnvironmentVariables>
+ \relates <QtEnvironmentVariables>
\since 5.5
Returns the numerical value of the environment variable \a varName.
@@ -219,7 +219,7 @@ int qEnvironmentVariableIntValue(const char *varName, bool *ok) noexcept
}
/*!
- \relates <QEnvironmentVariables>
+ \relates <QtEnvironmentVariables>
\since 5.1
Returns whether the environment variable \a varName is set.
@@ -244,7 +244,7 @@ bool qEnvironmentVariableIsSet(const char *varName) noexcept
/*!
\fn bool qputenv(const char *varName, QByteArrayView value)
- \relates <QEnvironmentVariables>
+ \relates <QtEnvironmentVariables>
This function sets the \a value of the environment variable named
\a varName. It will create the variable if it does not exist. It
@@ -294,7 +294,7 @@ bool qputenv(const char *varName, QByteArrayView raw)
}
/*!
- \relates <QEnvironmentVariables>
+ \relates <QtEnvironmentVariables>
This function deletes the variable \a varName from the environment.
diff --git a/src/corelib/global/qenvironmentvariables.h b/src/corelib/global/qtenvironmentvariables.h
index 78fea255d3..1d26bed316 100644
--- a/src/corelib/global/qenvironmentvariables.h
+++ b/src/corelib/global/qtenvironmentvariables.h
@@ -1,14 +1,14 @@
// Copyright (C) 2022 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
-#ifndef QENVIRONMENTVARIABLES_H
-#define QENVIRONMENTVARIABLES_H
+#ifndef QTENVIRONMENTVARIABLES_H
+#define QTENVIRONMENTVARIABLES_H
#include <QtCore/qglobal.h>
#include <QtCore/qtdeprecationmarkers.h>
#if 0
-#pragma qt_class(QEnvironmentVariables)
+#pragma qt_class(QtEnvironmentVariables)
#pragma qt_sync_stop_processing
#endif
@@ -33,4 +33,4 @@ Q_CORE_EXPORT int qEnvironmentVariableIntValue(const char *varName, bool *ok=nu
QT_END_NAMESPACE
-#endif /* QENVIRONMENTVARIABLES_H */
+#endif /* QTENVIRONMENTVARIABLES_H */
diff --git a/src/tools/bootstrap/CMakeLists.txt b/src/tools/bootstrap/CMakeLists.txt
index 66d16781aa..5a2299e37c 100644
--- a/src/tools/bootstrap/CMakeLists.txt
+++ b/src/tools/bootstrap/CMakeLists.txt
@@ -19,7 +19,6 @@ qt_internal_extend_target(Bootstrap
SOURCES
../../corelib/global/qassert.cpp
../../corelib/global/qendian.cpp
- ../../corelib/global/qenvironmentvariables.cpp
../../corelib/global/qfloat16.cpp
../../corelib/global/qglobal.cpp
../../corelib/global/qlogging.cpp
@@ -27,6 +26,7 @@ qt_internal_extend_target(Bootstrap
../../corelib/global/qnumeric.cpp
../../corelib/global/qoperatingsystemversion.cpp
../../corelib/global/qrandom.cpp
+ ../../corelib/global/qtenvironmentvariables.cpp
../../corelib/io/qabstractfileengine.cpp
../../corelib/io/qbuffer.cpp
../../corelib/io/qdebug.cpp