File indexing completed on 2024-12-22 04:12:56
0001 /* 0002 * SPDX-FileCopyrightText: 2017 Dmitry Kazakov <dimula73@gmail.com> 0003 * 0004 * SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #ifndef FREEHANDSTROKERUNNABLEJOBDATAWITHUPDATE_H 0008 #define FREEHANDSTROKERUNNABLEJOBDATAWITHUPDATE_H 0009 0010 #include "KisRunnableStrokeJobData.h" 0011 0012 0013 class FreehandStrokeRunnableJobDataWithUpdate : public KisRunnableStrokeJobData 0014 { 0015 public: 0016 FreehandStrokeRunnableJobDataWithUpdate(QRunnable *runnable, KisStrokeJobData::Sequentiality sequentiality = KisStrokeJobData::SEQUENTIAL, 0017 KisStrokeJobData::Exclusivity exclusivity = KisStrokeJobData::NORMAL) 0018 : KisRunnableStrokeJobData(runnable, sequentiality, exclusivity) 0019 { 0020 } 0021 0022 FreehandStrokeRunnableJobDataWithUpdate(std::function<void()> func, KisStrokeJobData::Sequentiality sequentiality = KisStrokeJobData::SEQUENTIAL, 0023 KisStrokeJobData::Exclusivity exclusivity = KisStrokeJobData::NORMAL) 0024 : KisRunnableStrokeJobData(func, sequentiality, exclusivity) 0025 { 0026 } 0027 }; 0028 0029 #endif // FREEHANDSTROKERUNNABLEJOBDATAWITHUPDATE_H