From 7d7042353078c90e25983ed35666db693a70b304 Mon Sep 17 00:00:00 2001 From: Bernardo Gomes Negri Date: Sun, 20 Feb 2022 19:43:24 -0300 Subject: [PATCH] Match QT library more closely with C library Even if this part of the library is deprecated, it is still useful to have for some projects. I also believe this will help fix KDE bug #443555 --- qt/pool.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/qt/pool.h b/qt/pool.h index b59829b7..746636d9 100644 --- a/qt/pool.h +++ b/qt/pool.h @@ -80,6 +80,8 @@ class APPSTREAMQT_EXPORT Pool : public QObject * None: No flags. * UseUser: Create an user-specific metadata cache. * UseSystem: Use and - if possible - update the global metadata cache. + * NoClear: Don't clear the cache when opening it. + * RefreshSystem: Refresh the system cache that is shared between applications. * * Flags on how caching should be used. **/ @@ -87,6 +89,8 @@ class APPSTREAMQT_EXPORT Pool : public QObject CacheFlagNone [[deprecated]] = 0, CacheFlagUseUser [[deprecated]] = 1 << 0, CacheFlagUseSystem [[deprecated]] = 1 << 1, + CacheFlagNoClear [[deprecated]] = 1 << 2, + CacheFlagRefreshSystem [[deprecated]] = 1 << 3, }; /**