diff options
author | Alexey Rusakov <Kitsune-Ral@users.sf.net> | 2021-11-09 13:59:47 +0100 |
---|---|---|
committer | Alexey Rusakov <Kitsune-Ral@users.sf.net> | 2021-11-11 07:37:05 +0100 |
commit | 65bb0b5fcf029df7a9bfa0b7b7b7e3203fd7862f (patch) | |
tree | 2c38c8f799ac3f7dfd1d8e67dec24702971e3bb5 /lib/quotient_common.h | |
parent | 38291a7b442906b638ce0d34a429c72089e80f6d (diff) | |
download | libquotient-65bb0b5fcf029df7a9bfa0b7b7b7e3203fd7862f.tar.gz libquotient-65bb0b5fcf029df7a9bfa0b7b7b7e3203fd7862f.zip |
DECL_DEPRECATED_ENUMERATOR
A handy macro that introduces an enumerator with a respective
Q_DECL_DEPRECATED_X recommending the substitution.
Diffstat (limited to 'lib/quotient_common.h')
-rw-r--r-- | lib/quotient_common.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/quotient_common.h b/lib/quotient_common.h index e1e14a14..3d8ace67 100644 --- a/lib/quotient_common.h +++ b/lib/quotient_common.h @@ -23,6 +23,9 @@ Q_ENUM_NS_IMPL(Enum) \ Q_FLAG_NS(Flags) +#define DECL_DEPRECATED_ENUMERATOR(Deprecated, Recommended) \ + Deprecated Q_DECL_ENUMERATOR_DEPRECATED_X("Use " #Recommended) = Recommended + namespace Quotient { Q_NAMESPACE |