mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-20 07:27:22 -06:00
Use functor based QMetaObject::invokeMethod
This commit is contained in:
@@ -535,8 +535,13 @@ Parser::Parser(const QString lastBuildDate)
|
||||
|
||||
void Parser::parse(const QByteArray &feedData)
|
||||
{
|
||||
#if (QT_VERSION >= QT_VERSION_CHECK(5, 10, 0))
|
||||
QMetaObject::invokeMethod(this, [this, feedData]() { parse_impl(feedData); }
|
||||
, Qt::QueuedConnection);
|
||||
#else
|
||||
QMetaObject::invokeMethod(this, "parse_impl", Qt::QueuedConnection
|
||||
, Q_ARG(QByteArray, feedData));
|
||||
#endif
|
||||
}
|
||||
|
||||
// read and create items from a rss document
|
||||
|
||||
Reference in New Issue
Block a user