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

0001 /*
0002  *  SPDX-FileCopyrightText: 2022 Agata Cacko <cacko.azh@gmail.com>
0003  *
0004  *  SPDX-License-Identifier: GPL-2.0-or-later
0005  */
0006 #include "KisCurveOpOptionModel.h"
0007 
0008 #include <KisLager.h>
0009 
0010 
0011 KisCurveOpOptionModel::KisCurveOpOptionModel(lager::cursor<KisCurveOpOptionData> _optionData)
0012     : optionData(_optionData)
0013     , LAGER_QT(curvePaintConnectionLine) {_optionData[&KisCurveOpOptionData::curve_paint_connection_line]}
0014     , LAGER_QT(curveSmoothing) {_optionData[&KisCurveOpOptionData::curve_smoothing]}
0015     , LAGER_QT(curveStrokeHistorySize) {_optionData[&KisCurveOpOptionData::curve_stroke_history_size].zoom(kislager::lenses::do_static_cast<int, qreal>)}
0016     , LAGER_QT(curveLineWidth) {_optionData[&KisCurveOpOptionData::curve_line_width].zoom(kislager::lenses::do_static_cast<int, qreal>)}
0017     , LAGER_QT(curveCurvesOpacity) {_optionData[&KisCurveOpOptionData::curve_curves_opacity]}
0018 {
0019 }