Fix editor settings not persisting transparent background type

This commit is contained in:
2025-12-08 10:06:34 +01:00
parent be9aa14b53
commit a6060283e2
3 changed files with 10 additions and 0 deletions
+5
View File
@@ -77,3 +77,8 @@ QBrush makeTransparentBackgroundPatternBrush(const TransparentBackgroundPattern
qWarning() << "unknown TransparentBackgroundPattern::Type" << transparentBackgroundPattern.type;
return {};
}
void registerEditorMetatypes()
{
qRegisterMetaType<TransparentBackgroundPattern::Type>();
}
+2
View File
@@ -31,6 +31,8 @@ public:
constexpr bool operator==(const TransparentBackgroundPattern &other) const = default;
};
void registerEditorMetatypes();
QBrush makeTransparentBackgroundPatternBrush(const TransparentBackgroundPattern &transparentBackgroundPattern);
void improveButtonBox(QDialogButtonBox *buttonBox);
+3
View File
@@ -3,6 +3,7 @@
#include <QLoggingCategory>
#include "editorsettings.h"
#include "editorguiutils.h"
#include "mainwindow.h"
Q_LOGGING_CATEGORY(lcVk, "qt.vulkan")
@@ -27,6 +28,8 @@ int main(int argc, char *argv[])
QApplication app(argc, argv);
registerEditorMetatypes();
QCoreApplication::setOrganizationDomain("brunner.ninja");
QCoreApplication::setOrganizationName("brunner.ninja");
QCoreApplication::setApplicationName("QtGameMaker");