File indexing completed on 2024-05-12 15:59:02
0001 /* This file is part of the KDE project 0002 * SPDX-FileCopyrightText: 2016 Boudewijn Rempt <boud@valdyas.org> 0003 * 0004 * SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 #include "KisExportCheckBase.h" 0008 0009 KisExportCheckBase::KisExportCheckBase(const QString &id, Level level, const QString &customWarning, bool _perLayerCheck) 0010 : m_id(id) 0011 , m_level(level) 0012 , m_perLayerCheck(_perLayerCheck) 0013 { 0014 if (!customWarning.isEmpty()) { 0015 m_warning = customWarning; 0016 } 0017 } 0018 0019 KisExportCheckBase::~KisExportCheckBase() 0020 { 0021 } 0022 0023 QString KisExportCheckBase::id() const 0024 { 0025 return m_id; 0026 } 0027 0028 bool KisExportCheckBase::perLayerCheck() const 0029 { 0030 return m_perLayerCheck; 0031 } 0032 0033 QString KisExportCheckBase::warning() const 0034 { 0035 return m_warning; 0036 } 0037