Krita Source Code Documentation
Loading...
Searching...
No Matches
kis_config_notifier.cpp
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2007 Adrian Page <adrian@pagenet.plus.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
7
8#include <QGlobalStatic>
9
10#include <kis_debug.h>
12
14
16{
17 Private() : dropFramesModeCompressor(300, KisSignalCompressor::FIRST_ACTIVE) {}
18
20};
21
23 : m_d(new Private)
24{
25 connect(&m_d->dropFramesModeCompressor, SIGNAL(timeout()), SIGNAL(dropFramesModeChanged()));
26}
27
29{
30 dbgRegistry << "deleting KisConfigNotifier";
31}
32
34{
35 return s_instance;
36}
37
42
44{
45 m_d->dropFramesModeCompressor.start();
46}
47
52
57
62
63void KisConfigNotifier::notifyColorThemeChanged(const QString &filename)
64{
65 Q_EMIT signalColorThemeChanged(filename);
66}
67
69{
70 Q_EMIT sigLongPressChanged(enabled);
71}
Q_GLOBAL_STATIC(KisStoragePluginRegistry, s_instance)
connect(this, SIGNAL(optionsChanged()), this, SLOT(saveOptions()))
void notifyLongPressChanged(bool enabled)
void touchPaintingChanged()
void sigLongPressChanged(bool enabled)
void signalColorThemeChanged(const QString &filename)
static KisConfigNotifier * instance()
void dropFramesModeChanged()
void notifyColorThemeChanged(const QString &filename)
void colorHistoryModeChanged()
const QScopedPointer< Private > m_d
void configChanged(void)
void pixelGridModeChanged()
#define dbgRegistry
Definition kis_debug.h:47
KisSignalCompressor dropFramesModeCompressor