Krita Source Code Documentation
Loading...
Searching...
No Matches
KisImageConfigNotifier.cpp
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2017 Dmitry Kazakov <dimula73@gmail.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6
8
9#include <QGlobalStatic>
10
11#include <kis_debug.h>
13
15
17{
19 : updateCompressor(300, KisSignalCompressor::FIRST_ACTIVE)
20 , autoKeyframeUpdateCompressor(300, KisSignalCompressor::FIRST_ACTIVE)
21 {}
22
25};
26
28 : m_d(new Private)
29{
30 connect(&m_d->updateCompressor, SIGNAL(timeout()), SIGNAL(configChanged()));
31 connect(&m_d->updateCompressor, SIGNAL(timeout()), SIGNAL(autoKeyFrameConfigurationChanged()));
32 connect(&m_d->autoKeyframeUpdateCompressor, SIGNAL(timeout()), SIGNAL(autoKeyFrameConfigurationChanged()));
33}
34
38
43
45{
46 m_d->updateCompressor.start();
47}
48
50{
51 m_d->autoKeyframeUpdateCompressor.start();
52}
53
Q_GLOBAL_STATIC(KisStoragePluginRegistry, s_instance)
connect(this, SIGNAL(optionsChanged()), this, SLOT(saveOptions()))
static KisImageConfigNotifier * instance()
const QScopedPointer< Private > m_d
void globalProofingConfigChanged()
void autoKeyFrameConfigurationChanged()