Krita Source Code Documentation
Loading...
Searching...
No Matches
KisSelectionUpdateCompressor.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2018 Dmitry Kazakov <dimula73@gmail.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6
7#ifndef KISSELECTIONUPDATECOMPRESSOR_H
8#define KISSELECTIONUPDATECOMPRESSOR_H
9
10#include "kritaimage_export.h"
12
13#include "kis_types.h"
14#include <QRect>
15
16
17class KisSelectionUpdateCompressor : public QObject
18{
19 Q_OBJECT
20public:
23
24public Q_SLOTS:
25 void requestUpdate(const QRect &updateRect);
27
28private Q_SLOTS:
29 void startUpdateJob();
30
31private:
36
37 bool m_hasStalledUpdate {false};
38};
39
40#endif // KISSELECTIONUPDATECOMPRESSOR_H
KisThreadSafeSignalCompressor * m_updateSignalCompressor
void requestUpdate(const QRect &updateRect)
KisSelectionUpdateCompressor(KisSelection *selection)