Enable left click to open links

This commit is contained in:
WarmUpTill 2025-10-03 20:18:49 +02:00 committed by WarmUpTill
parent 84132f7c37
commit 85222aed33
3 changed files with 14 additions and 7 deletions

View File

@ -45,7 +45,10 @@ NonModalMessageDialog::NonModalMessageDialog(const QString &message, Type type,
setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint);
auto layout = new QVBoxLayout(this);
layout->addWidget(new QLabel(message, this));
auto label = new QLabel(message, this);
label->setTextInteractionFlags(Qt::TextBrowserInteraction);
label->setOpenExternalLinks(true);
layout->addWidget(label);
switch (type) {
case Type::INFO: {

View File

@ -437,10 +437,11 @@ WSConnectionSettingsDialog::WSConnectionSettingsDialog(
row, 0);
_layout->addWidget(_reconnectDelay, row, 1);
++row;
_layout->addWidget(
new QLabel(obs_module_text(
"AdvSceneSwitcher.connection.useOBSWebsocketProtocol")),
row, 0);
auto label = new QLabel(obs_module_text(
"AdvSceneSwitcher.connection.useOBSWebsocketProtocol"));
label->setTextInteractionFlags(Qt::TextBrowserInteraction);
label->setOpenExternalLinks(true);
_layout->addWidget(label, row, 0);
_layout->addWidget(_useOBSWSProtocol, row, 1);
++row;
_layout->addWidget(_test, row, 0);

View File

@ -274,8 +274,11 @@ MacroConditionStreamdeckEdit::MacroConditionStreamdeckEdit(
layout->addLayout(dataLayout);
layout->addWidget(_data);
layout->addWidget(_listen);
layout->addWidget(new QLabel(obs_module_text(
"AdvSceneSwitcher.condition.streamDeck.pluginDownload")));
auto label = new QLabel(obs_module_text(
"AdvSceneSwitcher.condition.streamDeck.pluginDownload"));
label->setTextInteractionFlags(Qt::TextBrowserInteraction);
label->setOpenExternalLinks(true);
layout->addWidget(label);
setLayout(layout);
_entryData = entryData;