File indexing completed on 2024-12-22 04:16:04

0001 /*
0002  *  SPDX-FileCopyrightText: 2022 Dmitry Kazakov <dimula73@gmail.com>
0003  *
0004  *  SPDX-License-Identifier: GPL-2.0-or-later
0005  */
0006 #include "KisPaintThicknessOptionData.h"
0007 
0008 #include <kis_paintop_settings.h>
0009 
0010 
0011 bool KisPaintThicknessOptionMixInImpl::read(const KisPropertiesConfiguration *setting)
0012 {
0013     mode = (ThicknessMode)setting->getInt("PaintThicknessThicknessMode", OVERLAY);
0014 
0015     if (mode == RESERVED) {
0016         mode = OVERLAY;
0017     }
0018 
0019     return true;
0020 }
0021 
0022 void KisPaintThicknessOptionMixInImpl::write(KisPropertiesConfiguration *setting) const
0023 {
0024     setting->setProperty("PaintThicknessThicknessMode", mode);
0025 }