summaryrefslogtreecommitdiff
path: root/user/qt5-qtbase/forward-port-move.patch
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2020-09-19 00:05:46 +0000
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2020-09-19 00:05:46 +0000
commitcc24acfe4ce7c33801aeb362c8ac13ccf2dac2b4 (patch)
tree5615e599278a678ac233adcd437c8eed67070914 /user/qt5-qtbase/forward-port-move.patch
parenta7f03fc523db2f305ffd73220b12fb5a6bd2b3b6 (diff)
downloadpackages-cc24acfe4ce7c33801aeb362c8ac13ccf2dac2b4.tar.gz
packages-cc24acfe4ce7c33801aeb362c8ac13ccf2dac2b4.tar.bz2
packages-cc24acfe4ce7c33801aeb362c8ac13ccf2dac2b4.tar.xz
packages-cc24acfe4ce7c33801aeb362c8ac13ccf2dac2b4.zip
user/[KDE Applications]: Update to 20.08.1
Diffstat (limited to 'user/qt5-qtbase/forward-port-move.patch')
-rw-r--r--user/qt5-qtbase/forward-port-move.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/user/qt5-qtbase/forward-port-move.patch b/user/qt5-qtbase/forward-port-move.patch
new file mode 100644
index 000000000..cc30ea6e1
--- /dev/null
+++ b/user/qt5-qtbase/forward-port-move.patch
@@ -0,0 +1,20 @@
+At least Akonadi uses this from 5.13.0. We can use LTS Qt by backporting these
+simple macros.
+
+--- qtbase-everywhere-src-5.12.9/src/corelib/global/qglobal.h.old 2020-06-03 10:51:20.000000000 +0000
++++ qtbase-everywhere-src-5.12.9/src/corelib/global/qglobal.h 2020-09-17 16:01:53.181072159 +0000
+@@ -372,6 +372,14 @@
+ Class(const Class &) Q_DECL_EQ_DELETE;\
+ Class &operator=(const Class &) Q_DECL_EQ_DELETE;
+
++#define Q_DISABLE_MOVE(Class) \
++ Class(Class &&) = delete; \
++ Class &operator=(Class &&) = delete;
++
++#define Q_DISABLE_COPY_MOVE(Class) \
++ Q_DISABLE_COPY(Class) \
++ Q_DISABLE_MOVE(Class)
++
+ /*
+ No, this is not an evil backdoor. QT_BUILD_INTERNAL just exports more symbols
+ for Qt's internal unit tests. If you want slower loading times and more