Grey out edit->undo/redo actions if there's nothing left to undo/redo

This commit is contained in:
Colin Wallace
2015-04-25 22:15:12 +00:00
parent 478bbbd4d0
commit 035f48fb1d
4 changed files with 26 additions and 2 deletions

View File

@@ -121,6 +121,7 @@ public slots:
void updatePlayPauseIcons();
void updateUndoRedoButtons();
void undo();
void redo();
@@ -167,6 +168,8 @@ private:
} m_keyMods;
QMenu * m_toolsMenu;
QAction * m_undoAction;
QAction * m_redoAction;
QList<PluginView *> m_tools;
QBasicTimer m_updateTimer;

View File

@@ -45,6 +45,9 @@ public:
void undo();
void redo();
bool canUndo() const;
bool canRedo() const;
void addJournalCheckPoint( JournallingObject *jo );
bool isJournalling() const