Expand all items in the GlobalStorage debug tree.

This commit is contained in:
Teo Mrnjavac 2015-03-05 19:40:53 +01:00
parent 8729b6a25f
commit 3ce8abcb78

View File

@ -38,12 +38,13 @@ DebugWindow::DebugWindow()
globalStorageView->setModel( jsonModel ); globalStorageView->setModel( jsonModel );
GlobalStorage* gs = JobQueue::instance()->globalStorage(); GlobalStorage* gs = JobQueue::instance()->globalStorage();
connect( gs, &GlobalStorage::changed, [ jsonModel, gs ] connect( gs, &GlobalStorage::changed, [ = ]
{ {
jsonModel->loadJson( QJsonDocument::fromVariant( gs->m ).toJson() ); jsonModel->loadJson( QJsonDocument::fromVariant( gs->m ).toJson() );
globalStorageView->expandAll();
} ); } );
jsonModel->loadJson( QJsonDocument::fromVariant( gs->m ).toJson() ); jsonModel->loadJson( QJsonDocument::fromVariant( gs->m ).toJson() );
globalStorageView->expandAll();
CALAMARES_RETRANSLATE( retranslateUi( this ); ) CALAMARES_RETRANSLATE( retranslateUi( this ); )
} }