From a81582d3cd8b680e533a8e1609955b0e3a47f7e4 Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Sun, 29 Mar 2020 13:34:10 -0500 Subject: [PATCH] [nostalgia/studio] Make Editor's itemName and exportable const --- src/nostalgia/studio/lib/editor.cpp | 2 +- src/nostalgia/studio/lib/editor.hpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/nostalgia/studio/lib/editor.cpp b/src/nostalgia/studio/lib/editor.cpp index b4304e08..4002cd6f 100644 --- a/src/nostalgia/studio/lib/editor.cpp +++ b/src/nostalgia/studio/lib/editor.cpp @@ -39,7 +39,7 @@ void Editor::setExportable(bool exportable) { emit exportableChanged(exportable); } -bool Editor::exportable() { +bool Editor::exportable() const { return m_exportable; } diff --git a/src/nostalgia/studio/lib/editor.hpp b/src/nostalgia/studio/lib/editor.hpp index e186bf77..b4d409ba 100644 --- a/src/nostalgia/studio/lib/editor.hpp +++ b/src/nostalgia/studio/lib/editor.hpp @@ -31,7 +31,7 @@ class NOSTALGIASTUDIO_EXPORT Editor: public QWidget { /** * Returns the name of item being edited. */ - virtual QString itemName() = 0; + virtual QString itemName() const = 0; virtual void exportFile(); @@ -55,7 +55,7 @@ class NOSTALGIASTUDIO_EXPORT Editor: public QWidget { void setExportable(bool); - bool exportable(); + bool exportable() const; protected: /**