We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c466e42 commit 68981edCopy full SHA for 68981ed
src/scratchproject.cpp
@@ -120,3 +120,9 @@ void ScratchProject::setScratchVersion(const Version &version)
120
else
121
std::cerr << "Unsupported Scratch version: " << static_cast<int>(version) << std::endl;
122
}
123
+
124
+/*! Returns a read-only pointer to the Engine of the project. */
125
+const Engine *ScratchProject::engine() const
126
+{
127
+ return &m_engine;
128
+}
src/scratchproject.h
@@ -36,6 +36,8 @@ class LIBSCRATCHCPP_EXPORT ScratchProject
36
Version scratchVersion() const;
37
void setScratchVersion(const Version &version);
38
39
+ const Engine *engine() const;
40
41
private:
42
std::string m_fileName;
43
Version m_scratchVersion = Version::Invalid;
0 commit comments