[nostalgia/studio] Make Editor's itemName and exportable const

This commit is contained in:
Gary Talent 2020-03-29 13:34:10 -05:00
parent 4011773374
commit a81582d3cd
2 changed files with 3 additions and 3 deletions

View File

@ -39,7 +39,7 @@ void Editor::setExportable(bool exportable) {
emit exportableChanged(exportable); emit exportableChanged(exportable);
} }
bool Editor::exportable() { bool Editor::exportable() const {
return m_exportable; return m_exportable;
} }

View File

@ -31,7 +31,7 @@ class NOSTALGIASTUDIO_EXPORT Editor: public QWidget {
/** /**
* Returns the name of item being edited. * Returns the name of item being edited.
*/ */
virtual QString itemName() = 0; virtual QString itemName() const = 0;
virtual void exportFile(); virtual void exportFile();
@ -55,7 +55,7 @@ class NOSTALGIASTUDIO_EXPORT Editor: public QWidget {
void setExportable(bool); void setExportable(bool);
bool exportable(); bool exportable() const;
protected: protected:
/** /**