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: {