From ce791f5ff320e2cb79b5347b5bbc6a72697058df Mon Sep 17 00:00:00 2001 From: 0xFEEDC0DE64 Date: Tue, 2 Jan 2024 19:54:25 +0100 Subject: [PATCH] Clang compatibility improved and variant support for serializer --- src/editor/mainwindow.cpp | 108 +-- src/editor/mainwindow.h | 8 +- src/editor/models/actionscontainermodel.cpp | 2 +- src/editor/models/projecttreemodel.cpp | 766 ++++++++++---------- src/editor/models/projecttreemodel.h | 32 +- src/projectcontainer.cpp | 37 + 6 files changed, 497 insertions(+), 456 deletions(-) diff --git a/src/editor/mainwindow.cpp b/src/editor/mainwindow.cpp index c4f7c66..d2b0fd3 100644 --- a/src/editor/mainwindow.cpp +++ b/src/editor/mainwindow.cpp @@ -165,6 +165,60 @@ MainWindow::MainWindow(const QString &filePath, QWidget *parent) : loadFile(m_filePath); } +template<> +std::map &MainWindow::propertyWindowsFor() +{ + return m_spritePropertiesWindows; +} + +template<> +std::map &MainWindow::propertyWindowsFor() +{ + return m_soundPropertiesWindows; +} + +template<> +std::map &MainWindow::propertyWindowsFor() +{ + return m_backgroundPropertiesWindows; +} + +template<> +std::map &MainWindow::propertyWindowsFor() +{ + return m_pathPropertiesWindows; +} + +template<> +std::map &MainWindow::propertyWindowsFor