File indexing completed on 2024-12-01 07:26:15
0001 /* 0002 * SPDX-FileCopyrightText: 2021 Alexander Stippich <a.stippich@gmx.net> 0003 * 0004 * SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL 0005 */ 0006 0007 #ifndef KSANE_INVERT_OPTION_H 0008 #define KSANE_INVERT_OPTION_H 0009 0010 #include "baseoption.h" 0011 0012 namespace KSaneCore 0013 { 0014 0015 static const QString InvertColorsOptionName = QStringLiteral("KSane::InvertColors"); 0016 0017 class InvertOption : public BaseOption 0018 { 0019 Q_OBJECT 0020 0021 public: 0022 InvertOption(); 0023 0024 QVariant value() const override; 0025 QString valueAsString() const override; 0026 0027 Option::OptionState state() const override; 0028 QString name() const override; 0029 QString title() const override; 0030 QString description() const override; 0031 0032 public Q_SLOTS: 0033 bool setValue(const QVariant &value) override; 0034 0035 private: 0036 bool m_checked = false; 0037 }; 0038 0039 } // namespace KSaneCore 0040 0041 #endif // KSANE_INVERT_OPTION_H