Skip to content

Commit

Permalink
Better button state
Browse files Browse the repository at this point in the history
  • Loading branch information
abique committed Sep 17, 2024
1 parent 1a3758a commit d68b6ce
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions plugins/gui/undo-proxy.hh
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ namespace clap {

Q_OBJECT

Q_PROPERTY(bool hasUndo READ hasUndo NOTIFY canUndoChanged)
Q_PROPERTY(bool hasRedo READ hasRedo NOTIFY canRedoChanged)
Q_PROPERTY(bool canUndo READ canUndo NOTIFY canUndoChanged)
Q_PROPERTY(bool canRedo READ canRedo NOTIFY canRedoChanged)
Q_PROPERTY(QString undoName READ undoName NOTIFY undoNameChanged)
Q_PROPERTY(QString redoName READ redoName NOTIFY redoNameChanged)

Expand All @@ -25,8 +25,8 @@ namespace clap {
void setUndoName(QString name);
void setRedoName(QString name);

[[nodiscard]] const bool hasUndo() const noexcept { return _canUndo; }
[[nodiscard]] const bool hasRedo() const noexcept { return _canRedo; }
[[nodiscard]] const bool canUndo() const noexcept { return _canUndo; }
[[nodiscard]] const bool canRedo() const noexcept { return _canRedo; }

[[nodiscard]] const QString &undoName() const noexcept { return _undoName; }
[[nodiscard]] const QString &redoName() const noexcept { return _redoName; }
Expand Down

0 comments on commit d68b6ce

Please sign in to comment.