Krita Source Code Documentation
Loading...
Searching...
No Matches
KisUndoActionsUpdateManager.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2018 Dmitry Kazakov <dimula73@gmail.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6
7#ifndef KISUNDOACTIONSUPDATEMANAGER_H
8#define KISUNDOACTIONSUPDATEMANAGER_H
9
10#include <QObject>
12
13class QAction;
14class KisDocument;
15
16class KisUndoActionsUpdateManager : public QObject
17{
18 Q_OBJECT
19public:
20 KisUndoActionsUpdateManager(QAction *undoAction, QAction *redoAction, QObject *parent = 0);
21
22 void setCurrentDocument(KisDocument *document);
23
24public Q_SLOTS:
25 void slotUndoTextChanged(const QString &text);
26 void slotRedoTextChanged(const QString &text);
27
28private:
29 QAction *m_undoAction;
30 QAction *m_redoAction;
31
33};
34
35#endif // KISUNDOACTIONSUPDATEMANAGER_H
void slotRedoTextChanged(const QString &text)
KisSignalAutoConnectionsStore m_documentConnections
void slotUndoTextChanged(const QString &text)
KisUndoActionsUpdateManager(QAction *undoAction, QAction *redoAction, QObject *parent=0)
void setCurrentDocument(KisDocument *document)