File indexing completed on 2024-12-22 04:14:06
0001 /* 0002 * SPDX-FileCopyrightText: 2023 Dmitry Kazakov <dimula73@gmail.com> 0003 * 0004 * SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #ifndef KISTOOLBARSTATEMODEL_H 0008 #define KISTOOLBARSTATEMODEL_H 0009 0010 #include <kritawidgetutils_export.h> 0011 0012 #include <QObject> 0013 0014 #include <lager/state.hpp> 0015 #include <lager/extra/qt.hpp> 0016 0017 0018 class KRITAWIDGETUTILS_EXPORT KisToolBarStateModel : public QObject 0019 { 0020 Q_OBJECT 0021 public: 0022 KisToolBarStateModel(); 0023 0024 private: 0025 lager::state<bool, lager::automatic_tag> m_toolBarsLocked; 0026 0027 public: 0028 LAGER_QT_CURSOR(bool, toolBarsLocked); 0029 }; 0030 0031 #endif // KISTOOLBARSTATEMODEL_H