[olympic/studio] Make copy/cut/paste enabled function noexcept
This commit is contained in:
parent
d1c6ab9f77
commit
2167a46266
@ -76,17 +76,17 @@ class BaseEditor: public Widget {
|
|||||||
void setCutEnabled(bool);
|
void setCutEnabled(bool);
|
||||||
|
|
||||||
[[nodiscard]]
|
[[nodiscard]]
|
||||||
bool cutEnabled() const;
|
bool cutEnabled() const noexcept;
|
||||||
|
|
||||||
void setCopyEnabled(bool);
|
void setCopyEnabled(bool);
|
||||||
|
|
||||||
[[nodiscard]]
|
[[nodiscard]]
|
||||||
bool copyEnabled() const;
|
bool copyEnabled() const noexcept;
|
||||||
|
|
||||||
void setPasteEnabled(bool);
|
void setPasteEnabled(bool);
|
||||||
|
|
||||||
[[nodiscard]]
|
[[nodiscard]]
|
||||||
bool pasteEnabled() const;
|
bool pasteEnabled() const noexcept;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
/**
|
/**
|
||||||
|
@ -54,8 +54,8 @@ void BaseEditor::save() noexcept {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void BaseEditor::setUnsavedChanges(bool uc) {
|
void BaseEditor::setUnsavedChanges(bool uc) {
|
||||||
m_unsavedChanges = uc;
|
m_unsavedChanges = uc;
|
||||||
unsavedChangesChanged.emit(uc);
|
unsavedChangesChanged.emit(uc);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool BaseEditor::unsavedChanges() const noexcept {
|
bool BaseEditor::unsavedChanges() const noexcept {
|
||||||
@ -76,7 +76,7 @@ void BaseEditor::setCutEnabled(bool v) {
|
|||||||
cutEnabledChanged.emit(v);
|
cutEnabledChanged.emit(v);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool BaseEditor::cutEnabled() const {
|
bool BaseEditor::cutEnabled() const noexcept {
|
||||||
return m_cutEnabled;
|
return m_cutEnabled;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -85,7 +85,7 @@ void BaseEditor::setCopyEnabled(bool v) {
|
|||||||
copyEnabledChanged.emit(v);
|
copyEnabledChanged.emit(v);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool BaseEditor::copyEnabled() const {
|
bool BaseEditor::copyEnabled() const noexcept {
|
||||||
return m_copyEnabled;
|
return m_copyEnabled;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -94,12 +94,12 @@ void BaseEditor::setPasteEnabled(bool v) {
|
|||||||
pasteEnabledChanged.emit(v);
|
pasteEnabledChanged.emit(v);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool BaseEditor::pasteEnabled() const {
|
bool BaseEditor::pasteEnabled() const noexcept {
|
||||||
return m_pasteEnabled;
|
return m_pasteEnabled;
|
||||||
}
|
}
|
||||||
|
|
||||||
ox::Error BaseEditor::saveItem() noexcept {
|
ox::Error BaseEditor::saveItem() noexcept {
|
||||||
return OxError(0);
|
return {};
|
||||||
}
|
}
|
||||||
|
|
||||||
UndoStack *BaseEditor::undoStack() noexcept {
|
UndoStack *BaseEditor::undoStack() noexcept {
|
||||||
|
Loading…
Reference in New Issue
Block a user