![]() |
Qt 6.x
The Qt SDK
|
#include "qtenvironmentvariables.h"#include "qtenvironmentvariables_p.h"#include <qplatformdefs.h>#include <QtCore/qbytearray.h>#include <QtCore/qmutex.h>#include <QtCore/qstring.h>#include <QtCore/qvarlengtharray.h>#include <QtCore/private/qlocking_p.h>
Include dependency graph for qtenvironmentvariables.cpp:Go to the source code of this file.
Functions | |
| QString | qEnvironmentVariable (const char *varName, const QString &defaultValue) |
| QString | qEnvironmentVariable (const char *varName) |
| bool | qputenv (const char *varName, QByteArrayView raw) |
| void | qTzSet () |
| time_t | qMkTime (struct tm *when) |
| bool | qLocalTime (time_t utc, struct tm *local) |
| QString | qTzName (int dstIndex) |
Variables | |
| QT_BEGIN_NAMESPACE static Q_CONSTINIT QBasicMutex | environmentMutex |
| QString qEnvironmentVariable | ( | const char * | varName | ) |
Definition at line 141 of file qtenvironmentvariables.cpp.
References qEnvironmentVariable().
Here is the call graph for this function:Definition at line 109 of file qtenvironmentvariables.cpp.
References QVarLengthArray< T, Prealloc >::data(), environmentMutex, QString::fromLocal8Bit(), QString::fromUtf8(), i, QString::NormalizationForm_C, QString::normalized(), Q_ASSERT, qgetenv(), QVLABaseBase::size(), and Qt::Uninitialized.
Referenced by QCtfLibImpl::QCtfLibImpl(), QQmlImportDatabase::QQmlImportDatabase(), QQuickGraphicsConfigurationPrivate::QQuickGraphicsConfigurationPrivate(), QQuickTextArea::QQuickTextArea(), QQuickTextField::QQuickTextField(), bluetoothdVersion(), QmlLsp::QQmlCodeModel::buildPathsForFileUrl(), QBackingStoreRhiSupport::checkForceRhi(), contextFactory(), QKmsDevice::createScreenForConnector(), iconTempPath(), QCoreApplicationPrivate::initConsole(), QWaylandTextureSharingExtension::initialize(), QtQuickControls2NativeStylePlugin::initializeEngine(), QtWaylandClient::QWaylandScreen::logicalDpi(), machineName(), mouseCursorTheme(), parseOptions(), parseOptions(), QGtk3Storage::populateMap(), qEnvironmentVariable(), qEnvironmentVariableOptionalReal(), qEnvironmentVariableOptionalString(), QtWaylandClient::QWaylandDisplay::registry_global(), QtWaylandClient::QWaylandXdgSurface::requestActivate(), QQuickShapePrivate::selectRendererType(), and QQuickFileDialogImplPrivate::updateSelectedFile().
Here is the call graph for this function:
Here is the caller graph for this function:| bool qLocalTime | ( | time_t | utc, |
| struct tm * | local | ||
| ) |
Definition at line 363 of file qtenvironmentvariables.cpp.
References environmentMutex, Q_ASSERT, and Q_UNUSED.
Referenced by QLocalTime::utcToLocal().
Here is the caller graph for this function:| time_t qMkTime | ( | struct tm * | when | ) |
Definition at line 353 of file qtenvironmentvariables.cpp.
References environmentMutex.
Referenced by QLocalTime::computeSystemMillisRange(), and QLocalTime::getCurrentStandardUtcOffset().
Here is the caller graph for this function:| bool qputenv | ( | const char * | varName, |
| QByteArrayView | raw | ||
| ) |
Definition at line 268 of file qtenvironmentvariables.cpp.
References QByteArrayView::data(), environmentMutex, qstrdup(), QByteArrayView::size(), and str.
Referenced by QQmlDataTest::QQmlDataTest(), initEnvironment(), installCoverageTool(), main(), QEglFSVivIntegration::platformInit(), QEglFSVivWaylandIntegration::platformInit(), QStatusNotifierItemAdaptor::ProvideXdgActivationToken(), and quick_test_main_with_setup().
Here is the call graph for this function:
Here is the caller graph for this function:| QString qTzName | ( | int | dstIndex | ) |
Definition at line 403 of file qtenvironmentvariables.cpp.
References environmentMutex, QString::fromLocal8Bit(), and ok.
Referenced by QLocalTime::localTimeAbbbreviationAt(), and startsWithLocalTimeZone().
Here is the call graph for this function:
Here is the caller graph for this function:| void qTzSet | ( | ) |
Definition at line 340 of file qtenvironmentvariables.cpp.
References environmentMutex.
Referenced by QLocalTime::getCurrentStandardUtcOffset().
Here is the caller graph for this function:
|
static |
Definition at line 19 of file qtenvironmentvariables.cpp.
Referenced by qEnvironmentVariable(), qLocalTime(), qMkTime(), qputenv(), qTzName(), and qTzSet().