Skip to content
Snippets Groups Projects
Commit 6554e5e6 authored by Fatih Uzunoğlu's avatar Fatih Uzunoğlu Committed by Steve Lhomme
Browse files

qt: remove obsolete qt version checks

parent 6f887e5e
No related branches found
No related tags found
1 merge request!3577qt: remove obsolete qt version checks
Pipeline #336610 passed with stages
in 24 minutes and 43 seconds
......@@ -58,12 +58,7 @@ public:
void callAsync(Fun&& fun)
{
Q_Q(PlayerController);
#if (QT_VERSION >= QT_VERSION_CHECK(5, 10, 0))
QMetaObject::invokeMethod(q, std::forward<Fun>(fun), Qt::QueuedConnection, nullptr);
#else
QObject src;
QObject::connect(&src, &QObject::destroyed, q, std::forward<Fun>(fun), Qt::QueuedConnection);
#endif
}
public:
......
......@@ -42,12 +42,7 @@ public:
inline void callAsync(Fun&& fun)
{
Q_Q(PlaylistControllerModel);
#if (QT_VERSION >= QT_VERSION_CHECK(5, 10, 0))
QMetaObject::invokeMethod(q, std::forward<Fun>(fun), Qt::QueuedConnection, nullptr);
#else
QObject src;
QObject::connect(&src, &QObject::destroyed, q, std::forward<Fun>(fun), Qt::QueuedConnection);
#endif
}
//playlist
......
......@@ -41,12 +41,7 @@ public:
inline void callAsync(Fun&& fun)
{
Q_Q(PlaylistListModel);
#if (QT_VERSION >= QT_VERSION_CHECK(5, 10, 0))
QMetaObject::invokeMethod(q, std::forward<Fun>(fun), Qt::QueuedConnection, nullptr);
#else
QObject src;
QObject::connect(&src, &QObject::destroyed, q, std::forward<Fun>(fun), Qt::QueuedConnection);
#endif
}
void onItemsReset(const QVector<PlaylistItem>& items);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment