mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-10 07:22:47 -07:00
Use functor based QMetaObject::invokeMethod
This commit is contained in:
parent
183db3475a
commit
e31c1ca780
3 changed files with 35 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue