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++
/*
* SPDX-FileCopyrightText: 2002 Patrick Julien <[email protected]>
*
* SPDX-License-Identifier: GPL-2.0-or-later
*/
#include "kis_name_server.h"
KisNameServer::KisNameServer(qint32 seed) : m_generator(seed)
{ }
qint32 KisNameServer::currentSeed() const
{
return m_generator;
}
qint32 KisNameServer::number()
{
return m_generator++;
}
void KisNameServer::rollback()
{
m_generator--;
}