File indexing completed on 2024-05-12 15:58:37
0001 /* 0002 * This file is part of KimageShop^WKrayon^WKrita 0003 * 0004 * SPDX-FileCopyrightText: 2009 Boudewijn Rempt <boud@valdyas.org> 0005 * 0006 * SPDX-License-Identifier: GPL-2.0-or-later 0007 */ 0008 #include "kis_progress_updater.h" 0009 0010 KisProgressUpdater::KisProgressUpdater(KisProgressInterface* progressInterface, KoProgressProxy* proxy, KoProgressUpdater::Mode mode) 0011 : KoProgressUpdater(proxy, mode) 0012 , m_interface(progressInterface) 0013 { 0014 Q_ASSERT(progressInterface); 0015 Q_ASSERT(proxy); 0016 m_interface->attachUpdater(this); 0017 } 0018 0019 KisProgressUpdater::~KisProgressUpdater() 0020 { 0021 m_interface->detachUpdater(this); 0022 }