![]() |
Qt 6.x
The Qt SDK
|
#include <qwinregistry_p.h>
Public Member Functions | |
QWinRegistryKey () | |
QWinRegistryKey (HKEY parentHandle, QStringView subKey, REGSAM permissions=KEY_READ, REGSAM access=0) | |
~QWinRegistryKey () | |
QWinRegistryKey (QWinRegistryKey &&other) noexcept | |
void | swap (QWinRegistryKey &other) noexcept |
bool | isValid () const |
HKEY | handle () const |
operator HKEY () const | |
void | close () |
QVariant | value (QStringView subKey) const |
template<typename T > | |
std::optional< T > | value (QStringView subKey) const |
QString | stringValue (QStringView subKey) const |
QPair< DWORD, bool > | dwordValue (QStringView subKey) const |
Definition at line 26 of file qwinregistry_p.h.
QT_BEGIN_NAMESPACE QWinRegistryKey::QWinRegistryKey | ( | ) |
Definition at line 11 of file qwinregistry.cpp.
|
explicit |
Definition at line 17 of file qwinregistry.cpp.
References QStringView::utf16().
QWinRegistryKey::~QWinRegistryKey | ( | ) |
Definition at line 26 of file qwinregistry.cpp.
References close().
|
inlinenoexcept |
Definition at line 36 of file qwinregistry_p.h.
void QWinRegistryKey::close | ( | ) |
Definition at line 31 of file qwinregistry.cpp.
References isValid().
Referenced by ~QWinRegistryKey().
QPair< DWORD, bool > QWinRegistryKey::dwordValue | ( | QStringView | subKey | ) | const |
Definition at line 128 of file qwinregistry.cpp.
References qMakePair().
Referenced by QWindowsTheme::queryDarkMode(), QWindowsContext::readAdvancedExplorerSettings(), and QWindowsCursor::size().
|
inline |
Definition at line 43 of file qwinregistry_p.h.
|
inline |
Definition at line 41 of file qwinregistry_p.h.
Referenced by close(), qt_accentColor(), and value().
|
inline |
Definition at line 45 of file qwinregistry_p.h.
QString QWinRegistryKey::stringValue | ( | QStringView | subKey | ) | const |
Definition at line 123 of file qwinregistry.cpp.
Referenced by QWindowsFontEngineDirectWrite::fontNameSubstitute(), QSysInfo::machineUniqueId(), and mailCommand().
|
inlinenoexcept |
Definition at line 39 of file qwinregistry_p.h.
References other(), and qSwap().
QVariant QWinRegistryKey::value | ( | QStringView | subKey | ) | const |
Definition at line 39 of file qwinregistry.cpp.
References QList< T >::append(), QString::fromWCharArray(), i, QString::isEmpty(), QStringView::isEmpty(), isValid(), QString::length(), list, nullptr, ret, str, and QStringView::utf16().
Referenced by qt_accentColor().
|
inline |
Definition at line 51 of file qwinregistry_p.h.
References QVariant::isValid(), and var.