Fix editor settings not persisting transparent background type
This commit is contained in:
@@ -77,3 +77,8 @@ QBrush makeTransparentBackgroundPatternBrush(const TransparentBackgroundPattern
|
||||
qWarning() << "unknown TransparentBackgroundPattern::Type" << transparentBackgroundPattern.type;
|
||||
return {};
|
||||
}
|
||||
|
||||
void registerEditorMetatypes()
|
||||
{
|
||||
qRegisterMetaType<TransparentBackgroundPattern::Type>();
|
||||
}
|
||||
|
||||
@@ -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,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");
|
||||
|
||||
Reference in New Issue
Block a user