File indexing completed on 2024-05-12 15:58:51
0001 /* 0002 * SPDX-FileCopyrightText: 2017 Dmitry Kazakov <dimula73@gmail.com> 0003 * 0004 * SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #ifndef KISIMAGECONFIGNOTIFIER_H 0008 #define KISIMAGECONFIGNOTIFIER_H 0009 0010 #include <QObject> 0011 #include "kritaimage_export.h" 0012 0013 class KRITAIMAGE_EXPORT KisImageConfigNotifier : public QObject 0014 { 0015 Q_OBJECT 0016 public: 0017 explicit KisImageConfigNotifier(); 0018 ~KisImageConfigNotifier() override; 0019 0020 static KisImageConfigNotifier* instance(); 0021 0022 /** 0023 * Notify that the configuration has changed. This will cause the 0024 * configChanged() signal to be emitted. 0025 */ 0026 void notifyConfigChanged(void); 0027 0028 Q_SIGNALS: 0029 /** 0030 * This signal is emitted whenever notifyConfigChanged() is called. 0031 */ 0032 void configChanged(void); 0033 0034 private: 0035 Q_DISABLE_COPY(KisImageConfigNotifier) 0036 0037 private: 0038 struct Private; 0039 const QScopedPointer<Private> m_d; 0040 }; 0041 0042 #endif // KISIMAGECONFIGNOTIFIER_H