File indexing completed on 2024-05-12 04:33:32
0001 /* 0002 SPDX-FileCopyrightText: 2019 João Netto <joaonetto901@gmail.com> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #ifndef OKULAR_SCRIPT_JS_OCG_P_H 0008 #define OKULAR_SCRIPT_JS_OCG_P_H 0009 0010 #include <QObject> 0011 0012 class QAbstractItemModel; 0013 0014 namespace Okular 0015 { 0016 class JSOCG : public QObject 0017 { 0018 Q_OBJECT 0019 Q_PROPERTY(bool state READ state WRITE setState) // clazy:exclude=qproperty-without-notify 0020 0021 public: 0022 explicit JSOCG(QAbstractItemModel *model, int i, int j, QObject *parent = nullptr); 0023 ~JSOCG() override; 0024 0025 bool state() const; 0026 void setState(bool state); 0027 0028 private: 0029 QAbstractItemModel *m_model = nullptr; 0030 int m_i; 0031 int m_j; 0032 }; 0033 0034 } 0035 0036 #endif