frontend: Create AlignmentSelector widget

This commit is contained in:
Warchamp7
2026-01-08 21:12:30 -05:00
committed by Ryan Foster
parent 8c946e792a
commit c01a9bea49
10 changed files with 749 additions and 0 deletions
+11
View File
@@ -144,6 +144,15 @@ UncleanLaunchAction handleUncleanShutdown(bool enableCrashUpload)
return launchAction;
}
QAccessibleInterface *alignmentSelectorFactory(const QString &classname, QObject *object)
{
if (classname == QLatin1String("AlignmentSelector")) {
if (auto *w = qobject_cast<AlignmentSelector *>(object))
return new AccessibleAlignmentSelector(w);
}
return nullptr;
}
} // namespace
QObject *CreateShortcutFilter()
@@ -1022,6 +1031,8 @@ void OBSApp::AppInit()
{
ProfileScope("OBSApp::AppInit");
QAccessible::installFactory(alignmentSelectorFactory);
if (!MakeUserDirs())
throw "Failed to create required user directories";
if (!InitGlobalConfig())