mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-09-24 23:31:36 +08:00
frontend: Create AlignmentSelector widget
This commit is contained in:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user