Skip to content

Commit b8ebd09

Browse files
committed
Add issue tracker label
1 parent d2466ca commit b8ebd09

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

src/pages.cpp

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -407,10 +407,25 @@ AboutPage::AboutPage(QWidget *parent, ConfigDialog *configDialog)
407407
websiteLayout->addWidget(websiteValueLabel);
408408
websiteLayout->addStretch(1);
409409

410+
QLabel *issuesLabel = new QLabel(tr("Issue tracker: "));
411+
QLabel *issuesValueLabel = new QLabel(
412+
"<a "
413+
"href=\"https://github.com/carsonip/Penguin-Subtitle-Player/"
414+
"issues\">github.com/carsonip/Penguin-Subtitle-Player/issues</a>");
415+
issuesValueLabel->setTextFormat(Qt::RichText);
416+
issuesValueLabel->setTextInteractionFlags(Qt::TextBrowserInteraction);
417+
issuesValueLabel->setOpenExternalLinks(true);
418+
419+
QHBoxLayout *issuesLayout = new QHBoxLayout;
420+
issuesLayout->addWidget(issuesLabel);
421+
issuesLayout->addWidget(issuesValueLabel);
422+
issuesLayout->addStretch(1);
423+
410424
QVBoxLayout *mainLayout = new QVBoxLayout;
411425
mainLayout->addLayout(nameLayout);
412426
mainLayout->addLayout(versionLayout);
413427
mainLayout->addLayout(websiteLayout);
428+
mainLayout->addLayout(issuesLayout);
414429
mainLayout->addStretch(1);
415430

416431
setLayout(mainLayout);

0 commit comments

Comments
 (0)