Always provide this as context for a signal connection with a lambda.
This commit is contained in:
parent
b75b13b466
commit
1a39d2a6e1
@ -43,7 +43,8 @@ DebugWindow::DebugWindow()
|
|||||||
globalStorageView->setModel( jsonModel );
|
globalStorageView->setModel( jsonModel );
|
||||||
GlobalStorage* gs = JobQueue::instance()->globalStorage();
|
GlobalStorage* gs = JobQueue::instance()->globalStorage();
|
||||||
|
|
||||||
connect( gs, &GlobalStorage::changed, [ = ]
|
connect( gs, &GlobalStorage::changed,
|
||||||
|
this, [ = ]
|
||||||
{
|
{
|
||||||
jsonModel->loadJson( QJsonDocument::fromVariant( gs->m ).toJson() );
|
jsonModel->loadJson( QJsonDocument::fromVariant( gs->m ).toJson() );
|
||||||
globalStorageView->expandAll();
|
globalStorageView->expandAll();
|
||||||
@ -54,7 +55,7 @@ DebugWindow::DebugWindow()
|
|||||||
// JobQueue page
|
// JobQueue page
|
||||||
jobQueueText->setReadOnly( true );
|
jobQueueText->setReadOnly( true );
|
||||||
connect( JobQueue::instance(), &JobQueue::queueChanged,
|
connect( JobQueue::instance(), &JobQueue::queueChanged,
|
||||||
[ this ]( const QList< Calamares::job_ptr >& jobs )
|
this, [ this ]( const QList< Calamares::job_ptr >& jobs )
|
||||||
{
|
{
|
||||||
QStringList text;
|
QStringList text;
|
||||||
foreach( auto job, jobs )
|
foreach( auto job, jobs )
|
||||||
@ -79,7 +80,7 @@ DebugWindow::DebugWindow()
|
|||||||
moduleConfigView->setModel( moduleConfigModel );
|
moduleConfigView->setModel( moduleConfigModel );
|
||||||
|
|
||||||
connect( modulesListView->selectionModel(), &QItemSelectionModel::selectionChanged,
|
connect( modulesListView->selectionModel(), &QItemSelectionModel::selectionChanged,
|
||||||
[ this, moduleConfigModel ]
|
this, [ this, moduleConfigModel ]
|
||||||
{
|
{
|
||||||
QString moduleName = modulesListView->currentIndex().data().toString();
|
QString moduleName = modulesListView->currentIndex().data().toString();
|
||||||
Module* module = ModuleManager::instance()->module( moduleName );
|
Module* module = ModuleManager::instance()->module( moduleName );
|
||||||
|
Loading…
Reference in New Issue
Block a user