File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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);
Original file line number Diff line number Diff line change 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 >
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 >
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 < a href=" https://studio.youtube.com/"> YouTube Studio< /a> </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 >
You can’t perform that action at this time.
0 commit comments