/* === This file is part of Calamares - === * * SPDX-FileCopyrightText: 2014 Aurélien Gâteau * SPDX-License-Identifier: GPL-3.0-or-later * * Calamares is Free Software: see the License-Identifier above. * */ #include "PartitionJob.h" PartitionJob::PartitionJob( Partition* partition ) : m_partition( partition ) { } void PartitionJob::iprogress( int percent ) { if ( percent < 0 ) { percent = 0; } if ( percent > 100 ) { percent = 100; } emit progress( qreal( percent / 100.0 ) ); }