Skip to content

Commit fb079b0

Browse files
committed
StreamerEditDialog: added hint where to get key for YouTube
1 parent b092d1b commit fb079b0

2 files changed

Lines changed: 33 additions & 2 deletions

File tree

gui/StreamerEditDialog.cpp

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,15 @@ StreamerEditDialog::StreamerEditDialog(
1919
{
2020
_ui->setupUi(this);
2121

22+
QFont font = _ui->youTubeStudioLinkLabel->font();
23+
font.setPointSize(font.pointSize() - 1);
24+
font.setItalic(true);
25+
_ui->youTubeStudioLinkLabel->setFont(font);
26+
27+
QPalette palette = _ui->youTubeStudioLinkLabel->palette();
28+
palette.setColor(QPalette::WindowText, palette.color(QPalette::PlaceholderText));
29+
_ui->youTubeStudioLinkLabel->setPalette(palette);
30+
2231
#if VK_VIDEO_STREAMER || YOUTUBE_LIVE_STREAMER
2332
_ui->keyLabel->setVisible(true);
2433
_ui->keyEdit->setVisible(true);
@@ -31,6 +40,10 @@ StreamerEditDialog::StreamerEditDialog(
3140
_ui->targetUrlEdit->setVisible(true);
3241
#endif
3342

43+
#if !YOUTUBE_LIVE_STREAMER
44+
_ui->youTubeStudioLinkLabel->setVisible(false);
45+
#endif
46+
3447
if(reStreamer) {
3548
const QString description = QString::fromStdString(reStreamer->description).trimmed();
3649
setWindowTitle(description.isEmpty() ? tr("Edit streamer...") : description);

gui/StreamerEditDialog.ui

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@
9999
</property>
100100
</widget>
101101
</item>
102-
<item row="4" column="0">
102+
<item row="5" column="0">
103103
<widget class="QLabel" name="enabledLabel">
104104
<property name="text">
105105
<string>Enabled:</string>
@@ -109,7 +109,7 @@
109109
</property>
110110
</widget>
111111
</item>
112-
<item row="4" column="1">
112+
<item row="5" column="1">
113113
<widget class="QCheckBox" name="enabledCheckBox">
114114
<property name="checkable">
115115
<bool>true</bool>
@@ -119,6 +119,24 @@
119119
</property>
120120
</widget>
121121
</item>
122+
<item row="4" column="1">
123+
<widget class="QLabel" name="youTubeStudioLinkLabel">
124+
<property name="font">
125+
<font>
126+
<italic>false</italic>
127+
</font>
128+
</property>
129+
<property name="text">
130+
<string>Find Stream Key in &lt;a href=&quot;https://studio.youtube.com/&quot;&gt;YouTube Studio&lt;/a&gt;</string>
131+
</property>
132+
<property name="textFormat">
133+
<enum>Qt::TextFormat::RichText</enum>
134+
</property>
135+
<property name="openExternalLinks">
136+
<bool>true</bool>
137+
</property>
138+
</widget>
139+
</item>
122140
</layout>
123141
</item>
124142
<item>

0 commit comments

Comments
 (0)