Grey out edit->undo/redo actions if there's nothing left to undo/redo
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -45,6 +45,9 @@ public:
|
||||
void undo();
|
||||
void redo();
|
||||
|
||||
bool canUndo() const;
|
||||
bool canRedo() const;
|
||||
|
||||
void addJournalCheckPoint( JournallingObject *jo );
|
||||
|
||||
bool isJournalling() const
|
||||
|
||||
Reference in New Issue
Block a user