QtCore: clean up API removals
Use the same new pattern as in QtWidgets.
Amends de18b3ff37
.
Change-Id: Ia1cbd40aa7a7efc9a954d22b599e13a19a6a9266
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
This commit is contained in:
parent
d3ecc6db29
commit
becb3596f0
@ -35,6 +35,7 @@ qt_internal_add_module(Core
|
||||
NO_GENERATE_METATYPES # metatypes are extracted manually below
|
||||
EXCEPTIONS
|
||||
SOURCES
|
||||
compat/removed_api.cpp
|
||||
global/archdetect.cpp
|
||||
global/qcompare_impl.h
|
||||
global/qcompare.h
|
||||
@ -241,7 +242,6 @@ qt_internal_add_module(Core
|
||||
tools/qsize.cpp tools/qsize.h
|
||||
tools/qstack.h
|
||||
tools/qtaggedpointer.h
|
||||
tools/qtcore_tools_removed_functions_in_6_3.cpp
|
||||
tools/qtools_p.h
|
||||
tools/qvarlengtharray.h
|
||||
tools/qvector.h
|
||||
@ -273,8 +273,8 @@ qt_internal_add_module(Core
|
||||
)
|
||||
|
||||
set(corelib_no_pch_sources
|
||||
compat/removed_api.cpp
|
||||
kernel/qmetatype.cpp
|
||||
tools/qtcore_tools_removed_functions_in_6_3.cpp
|
||||
)
|
||||
|
||||
foreach(src ${corelib_no_pch_sources})
|
||||
|
@ -37,13 +37,13 @@
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
#define QT_BUILD_FUNCTIONS_REMOVED_IN_6_3
|
||||
#define QT_BUILD_REMOVED_API
|
||||
|
||||
#include "qglobal.h"
|
||||
|
||||
QT_USE_NAMESPACE
|
||||
|
||||
#if QT_DEPRECATED_SINCE(6, 3)
|
||||
#if QT_REMOVED_SINCE(6, 3)
|
||||
|
||||
#include "tools/qcryptographichash.h"
|
||||
|
||||
@ -60,4 +60,4 @@ QByteArray QCryptographicHash::hash(const QByteArray &data, Algorithm method)
|
||||
// #include <qotherheader.h>
|
||||
// // implement removed functions from qotherheader.h
|
||||
|
||||
#endif // QT_DEPRECATED_SINCE(6, 3)
|
||||
#endif // QT_REMOVED_SINCE(6, 3)
|
@ -108,7 +108,7 @@ public:
|
||||
QT_DEPRECATED_VERSION_X_6_4("Use the QByteArrayView overload instead")
|
||||
void addData(const char *data, qsizetype length);
|
||||
#endif
|
||||
#ifdef QT_BUILD_FUNCTIONS_REMOVED_IN_6_3
|
||||
#if QT_REMOVED_SINCE(6, 3)
|
||||
void addData(const QByteArray &data);
|
||||
#endif
|
||||
void addData(QByteArrayView data) noexcept;
|
||||
@ -117,7 +117,7 @@ public:
|
||||
QByteArray result() const;
|
||||
QByteArrayView resultView() const noexcept;
|
||||
|
||||
#ifdef QT_BUILD_FUNCTIONS_REMOVED_IN_6_3
|
||||
#if QT_REMOVED_SINCE(6, 3)
|
||||
static QByteArray hash(const QByteArray &data, Algorithm method);
|
||||
#endif
|
||||
static QByteArray hash(QByteArrayView data, Algorithm method);
|
||||
|
Loading…
Reference in New Issue
Block a user