Merge pull request #2009 from Wallacoloo/undo-redo-greyout

Grey out edit->undo/redo actions if there's nothing left to undo/redo
This commit is contained in:
Tres Finocchiaro
2015-04-27 18:17:42 +00:00
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