Krita Source Code Documentation
Loading...
Searching...
No Matches
recorder_image_copying_job.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2026 Luna Lovecraft <ciubix8514@gmail.com>
3 *
4 * SPDX-License-Identifier: GPL-3.0-or-later
5 */
6
7#ifndef RECORDER_IMAGE_COPYING_JOB_H
8#define RECORDER_IMAGE_COPYING_JOB_H
9
10#include "kis_paint_device.h"
11#include "kis_spontaneous_job.h"
12
13class RecorderImageCopyingJob : public QObject, public KisSpontaneousJob
14{
15 Q_OBJECT
16
17public:
18 RecorderImageCopyingJob(KisPaintDeviceSP device, const QRect &rect, int writerId, int index);
19
21 void run() override;
22 bool overrides(const KisSpontaneousJob *otherJob) override;
23
24 QString debugName() const override;
25 int levelOfDetail() const override
26 {
27 return 0;
28 }
29
30Q_SIGNALS:
31 void sigImageCopyingDoneWithData(int writerId, int index, KisPaintDeviceSP device);
32
33private:
38 QRect m_area;
39};
40#endif
void sigImageCopyingDoneWithData(int writerId, int index, KisPaintDeviceSP device)
QString debugName() const override
RecorderImageCopyingJob(KisPaintDeviceSP device, const QRect &rect, int writerId, int index)
bool overrides(const KisSpontaneousJob *otherJob) override