mirror of
https://github.com/parchlinux/calamares.git
synced 2025-02-24 19:05:46 -05:00
libcalamares: deal with QtConcurrent::run
In Qt5, you pass the pointer-to-object for a member-function-call first, and in Qt6, as a regular parameter.
This commit is contained in:
parent
fe8939e745
commit
e0b820abbc
1 changed files with 4 additions and 0 deletions
|
@ -49,7 +49,11 @@ RequirementsChecker::run()
|
|||
for ( const auto& module : m_modules )
|
||||
{
|
||||
Watcher* watcher = new Watcher( this );
|
||||
#if QT_VERSION < QT_VERSION_CHECK( 6, 0, 0 )
|
||||
watcher->setFuture( QtConcurrent::run( this, &RequirementsChecker::addCheckedRequirements, module ) );
|
||||
#else
|
||||
watcher->setFuture( QtConcurrent::run( &RequirementsChecker::addCheckedRequirements, this, module ) );
|
||||
#endif
|
||||
watcher->setObjectName( module->name() );
|
||||
m_watchers.append( watcher );
|
||||
connect( watcher, &Watcher::finished, this, &RequirementsChecker::finished );
|
||||
|
|
Loading…
Add table
Reference in a new issue