UI: Replace bad YouTube link with popup helper
The helper link associated with starting a scheduled broadcast was not helpful, as it linked to developer API documentation. Instead, have the helper widget pop up a tooltip so the user understands what it is doing, and adjust the wording slightly so that the user knows it's a setting primarily used for scheduled broadcasts (normal streams always start right away)
This commit is contained in:
parent
a668e01788
commit
bbad7f3e1f
@ -1208,7 +1208,7 @@ YouTube.Actions.Latency.Low="Low"
|
||||
YouTube.Actions.Latency.UltraLow="Ultra low"
|
||||
YouTube.Actions.EnableAutoStart="Enable Auto-start"
|
||||
YouTube.Actions.EnableAutoStop="Enable Auto-stop"
|
||||
YouTube.Actions.AutoStartStop.Help="<a href='https://developers.google.com/youtube/v3/live/docs/liveBroadcasts#contentDetails.enableAutoStart'>(?)</a>"
|
||||
YouTube.Actions.AutoStartStop.TT="Indicates whether this scheduled broadcast should start automatically"
|
||||
YouTube.Actions.EnableDVR="Enable DVR"
|
||||
YouTube.Actions.360Video="360 video"
|
||||
YouTube.Actions.360Video.Help="<a href='https://vr.youtube.com/create/360/'>(?)</a>"
|
||||
|
@ -262,7 +262,7 @@
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>YouTube.Actions.AutoStartStop.Help</string>
|
||||
<string notr="true"><a href=".">(?)</a></string>
|
||||
</property>
|
||||
<property name="textFormat">
|
||||
<enum>Qt::RichText</enum>
|
||||
@ -474,7 +474,7 @@
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>179</width>
|
||||
<width>522</width>
|
||||
<height>192</height>
|
||||
</rect>
|
||||
</property>
|
||||
|
@ -5,6 +5,7 @@
|
||||
#include "qt-wrappers.hpp"
|
||||
#include "youtube-api-wrappers.hpp"
|
||||
|
||||
#include <QToolTip>
|
||||
#include <QDateTime>
|
||||
#include <QDesktopServices>
|
||||
|
||||
@ -56,7 +57,11 @@ OBSYoutubeActions::OBSYoutubeActions(QWidget *parent, Auth *auth)
|
||||
&OBSYoutubeActions::OpenYouTubeDashboard);
|
||||
|
||||
connect(ui->helpAutoStartStop, &QLabel::linkActivated, this,
|
||||
[](const QString &link) { QDesktopServices::openUrl(link); });
|
||||
[](const QString &) {
|
||||
QToolTip::showText(
|
||||
QCursor::pos(),
|
||||
QTStr("YouTube.Actions.AutoStartStop.TT"));
|
||||
});
|
||||
connect(ui->help360Video, &QLabel::linkActivated, this,
|
||||
[](const QString &link) { QDesktopServices::openUrl(link); });
|
||||
connect(ui->helpMadeForKids, &QLabel::linkActivated, this,
|
||||
|
Loading…
x
Reference in New Issue
Block a user