File indexing completed on 2024-05-12 15:58:47
0001 /* 0002 * SPDX-FileCopyrightText: 2013 Dmitry Kazakov <dimula73@gmail.com> 0003 * 0004 * SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #ifndef __KIS_UPDATE_SELECTION_JOB_H 0008 #define __KIS_UPDATE_SELECTION_JOB_H 0009 0010 #include "kis_spontaneous_job.h" 0011 #include "kis_selection.h" 0012 0013 class KRITAIMAGE_EXPORT KisUpdateSelectionJob : public KisSpontaneousJob 0014 { 0015 public: 0016 KisUpdateSelectionJob(KisSelectionSP selection, const QRect &updateRect = QRect()); 0017 0018 bool overrides(const KisSpontaneousJob *otherJob) override; 0019 void run() override; 0020 int levelOfDetail() const override; 0021 QString debugName() const override; 0022 0023 private: 0024 KisSelectionSP m_selection; 0025 QRect m_updateRect; 0026 }; 0027 0028 #endif /* __KIS_UPDATE_SELECTION_JOB_H */