Skip to content

armgit / krita

Public Imported from GitHub
0

Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.

C++
602 B
Raw Blame
/*
 *  This file is part of KimageShop^WKrayon^WKrita
 *
 *  SPDX-FileCopyrightText: 2009 Boudewijn Rempt <[email protected]>
 *
 *  SPDX-License-Identifier: GPL-2.0-or-later
 */
#include "kis_progress_updater.h"

KisProgressUpdater::KisProgressUpdater(KisProgressInterface* progressInterface, KoProgressProxy* proxy, KoProgressUpdater::Mode mode)
    : KoProgressUpdater(proxy, mode)
    , m_interface(progressInterface)
{
    Q_ASSERT(progressInterface);
    Q_ASSERT(proxy);
    m_interface->attachUpdater(this);
}

KisProgressUpdater::~KisProgressUpdater()
{
    m_interface->detachUpdater(this);
}