Add lazy constructed ViewStepItems for Install and Finished.

main
Teo Mrnjavac 10 years ago
parent 20bc34029d
commit 8a3ea7c8b1

@ -1,6 +1,6 @@
/* === This file is part of Calamares - <http://github.com/calamares> === /* === This file is part of Calamares - <http://github.com/calamares> ===
* *
* Copyright 2014, Teo Mrnjavac <teo@kde.org> * Copyright 2014-2015, Teo Mrnjavac <teo@kde.org>
* *
* Calamares is free software: you can redistribute it and/or modify * Calamares is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by
@ -141,8 +141,17 @@ ProgressTreeModel::setupModelData()
prepare->appendChild( new ViewStepItem( step, prepare ) ); prepare->appendChild( new ViewStepItem( step, prepare ) );
} }
m_rootItem->appendChild( new ViewStepItem( vm->installationStep(), m_rootItem ) ); m_rootItem->appendChild( new ViewStepItem( tr( "Install" ),
m_rootItem->appendChild( new TextTreeItem( tr( "Finish" ), m_rootItem ) ); [vm]() -> const Calamares::ViewStep*
{
return vm->installationStep();
}, m_rootItem ) );
m_rootItem->appendChild( new ViewStepItem( tr( "Finish" ),
[vm]() -> const Calamares::ViewStep*
{
return vm->finishedStep();
}, m_rootItem ) );
} }

Loading…
Cancel
Save