diff options
author | Mårten Nordheim <marten.nordheim@qt.io> | 2022-02-03 13:31:54 +0100 |
---|---|---|
committer | Mårten Nordheim <marten.nordheim@qt.io> | 2022-03-31 11:54:42 +0200 |
commit | 8367be8ede233245f1c11ed1291c02afcdb0750e (patch) | |
tree | cf70bf044b7eb4d779a408bc1399cfb1d530f05e /src/network/kernel/qnetworkinformation.h | |
parent | a0a2bf2d95d4fcd468b6ce3c2e728d95425dd760 (diff) |
QNetworkInformation: Deprecate vague load functions
And replace them with more descriptive versions
Change-Id: I3d5256072a5bbe0919a08b800877aa9b6a305a0b
Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
Diffstat (limited to 'src/network/kernel/qnetworkinformation.h')
-rw-r--r-- | src/network/kernel/qnetworkinformation.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/network/kernel/qnetworkinformation.h b/src/network/kernel/qnetworkinformation.h index 0c8093ed1c..c21871eb29 100644 --- a/src/network/kernel/qnetworkinformation.h +++ b/src/network/kernel/qnetworkinformation.h @@ -101,8 +101,12 @@ public: Features supportedFeatures() const; static bool loadDefaultBackend(); - static bool load(QStringView backend); - static bool load(Features features); + static bool loadBackendByName(QStringView backend); + static bool loadBackendByFeatures(Features features); +#if QT_DEPRECATED_SINCE(6,4) + QT_DEPRECATED_VERSION_X_6_4("Use loadBackendByName") static bool load(QStringView backend); + QT_DEPRECATED_VERSION_X_6_4("Use loadBackendByFeatures") static bool load(Features features); +#endif static QStringList availableBackends(); static QNetworkInformation *instance(); |