serialize rationals correctly and move block name to a node input

Since rationals aren't a known Qt format, the QVariant container can't
automatically convert them to and from strings (for XML serialization). We have
to hijack these functions and do the conversion manually for those types.

Also moved the block name type to a node input, which means it's serialized
and copied by default (I'm not sure why it wasn't already like this).
This commit is contained in:
itsmattkc
2020-01-14 00:59:49 +11:00
parent 0ea98be443
commit 16904c976f
10 changed files with 50 additions and 34 deletions
+1
View File
@@ -1,5 +1,6 @@
#include "projectloadmanager.h"
#include <QApplication>
#include <QFile>
#include <QXmlStreamReader>