Krita Source Code Documentation
Loading...
Searching...
No Matches
kis_thread_safe_signal_compressor.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2014 Dmitry Kazakov <dimula73@gmail.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6
7#ifndef __KIS_THREAD_SAFE_SIGNAL_COMPRESSOR_H
8#define __KIS_THREAD_SAFE_SIGNAL_COMPRESSOR_H
9
10#include <QObject>
11#include "kritaglobal_export.h"
12
14
27class KRITAGLOBAL_EXPORT KisThreadSafeSignalCompressor : public QObject
28{
29 Q_OBJECT
30public:
32
33 bool isActive() const;
34
35public Q_SLOTS:
36 void setDelay(int delay);
37 void start();
38 void stop();
39
40Q_SIGNALS:
41 void timeout();
44 void internalSetDelay(int delay);
45
46private:
48};
49
50#endif /* __KIS_THREAD_SAFE_SIGNAL_COMPRESSOR_H */
void internalSetDelay(int delay)