mirror of
https://github.com/leozide/leocad.git
synced 2026-10-27 06:20:55 +00:00
Saved undo data as structures.
This commit is contained in:
1 parent
576f9fe13e
commit
fb71e545a9
17 files changed
+443
-519
No files matched your search
@@ -67,11 +67,13 @@ template<typename T>
|
||||
class lcObjectProperty
|
||||
{
|
||||
public:
|
||||
lcObjectProperty() = default;
|
||||
|
||||
explicit lcObjectProperty(const T& DefaultValue)
|
||||
: mValue(DefaultValue)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
operator const T& () const
|
||||
{
|
||||
return mValue;
|
||||
@@ -96,8 +98,6 @@ public:
|
||||
|
||||
void Save(QTextStream& Stream, const char* ObjectName, const char* VariableName, bool SaveEmpty) const;
|
||||
bool Load(QTextStream& Stream, const QString& Token, const char* VariableName);
|
||||
bool SaveUndoData(QDataStream& Stream) const;
|
||||
bool LoadUndoData(QDataStream& Stream);
|
||||
|
||||
protected:
|
||||
T mValue;
|
||||
|
||||
Reference in new issue
Block a user