|
@@ -26,6 +26,8 @@
|
|
#include "menu-button.hpp"
|
|
#include "menu-button.hpp"
|
|
#include "qt-wrappers.hpp"
|
|
#include "qt-wrappers.hpp"
|
|
|
|
|
|
|
|
+#include "obs-hotkey.h"
|
|
|
|
+
|
|
using namespace std;
|
|
using namespace std;
|
|
|
|
|
|
Q_DECLARE_METATYPE(OBSScene);
|
|
Q_DECLARE_METATYPE(OBSScene);
|
|
@@ -98,6 +100,18 @@ void OBSBasic::AddQuickTransitionHotkey(QuickTransition *qt)
|
|
(void*)(uintptr_t)qt->id);
|
|
(void*)(uintptr_t)qt->id);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+void QuickTransition::SourceRenamed(void *param, calldata_t *data)
|
|
|
|
+{
|
|
|
|
+ QuickTransition *qt = reinterpret_cast<QuickTransition*>(param);
|
|
|
|
+
|
|
|
|
+ QString hotkeyName = QTStr("QuickTransitions.HotkeyName")
|
|
|
|
+ .arg(MakeQuickTransitionText(qt));
|
|
|
|
+
|
|
|
|
+ obs_hotkey_set_description(qt->hotkey, QT_TO_UTF8(hotkeyName));
|
|
|
|
+
|
|
|
|
+ UNUSED_PARAMETER(data);
|
|
|
|
+}
|
|
|
|
+
|
|
void OBSBasic::TriggerQuickTransition(int id)
|
|
void OBSBasic::TriggerQuickTransition(int id)
|
|
{
|
|
{
|
|
QuickTransition *qt = GetQuickTransition(id);
|
|
QuickTransition *qt = GetQuickTransition(id);
|