aboutsummaryrefslogtreecommitdiff
path: root/lib/qt_connection_util.h
diff options
context:
space:
mode:
authorAlexey Rusakov <Kitsune-Ral@users.sf.net>2021-10-04 11:06:05 +0200
committerAlexey Rusakov <Kitsune-Ral@users.sf.net>2021-10-04 11:06:05 +0200
commit677c73263f434d1564695a8128d75fefd1a7b50b (patch)
tree58d9032b650e88bec1deecee82a30ea257ace7f6 /lib/qt_connection_util.h
parentc16813c5209f0421ec773a98cf935a2eb2ea3d7c (diff)
downloadlibquotient-677c73263f434d1564695a8128d75fefd1a7b50b.tar.gz
libquotient-677c73263f434d1564695a8128d75fefd1a7b50b.zip
Drop old compatibility code
libQuotient 0.7 really requires Qt 5.12, nothing earlier will work.
Diffstat (limited to 'lib/qt_connection_util.h')
-rw-r--r--lib/qt_connection_util.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/lib/qt_connection_util.h b/lib/qt_connection_util.h
index 9370d2eb..ffefb2a2 100644
--- a/lib/qt_connection_util.h
+++ b/lib/qt_connection_util.h
@@ -19,12 +19,7 @@ namespace _impl {
decorated_slot_tt<ArgTs...> decoratedSlot,
Qt::ConnectionType connType)
{
- // See https://bugreports.qt.io/browse/QTBUG-60339
-#if QT_VERSION < QT_VERSION_CHECK(5, 10, 0)
- auto pc = std::make_shared<QMetaObject::Connection>();
-#else
auto pc = std::make_unique<QMetaObject::Connection>();
-#endif
auto& c = *pc; // Resolve a reference before pc is moved to lambda
// Perfect forwarding doesn't work through signal-slot connections -