From feaedeed841f419a8eb5b7f40a14e27ef1e104cb Mon Sep 17 00:00:00 2001 From: Zetok Zalbavar Date: Mon, 5 Dec 2016 17:03:58 +0000 Subject: [PATCH] feat(UI): make link to filled issue template on About page visible Should help with no one realizing that qTox even has the functionality. --- src/widget/form/settings/aboutform.cpp | 39 +++++++++++++++-------- src/widget/form/settings/aboutsettings.ui | 22 +++++++++++-- 2 files changed, 44 insertions(+), 17 deletions(-) diff --git a/src/widget/form/settings/aboutform.cpp b/src/widget/form/settings/aboutform.cpp index 79e051a66..4bd2271e5 100644 --- a/src/widget/form/settings/aboutform.cpp +++ b/src/widget/form/settings/aboutform.cpp @@ -112,26 +112,37 @@ void AboutForm::replaceVersions() issueBody.replace("#", "%23").replace(":", "%3A"); bodyUI->knownIssues->setText( - tr("A list of all known issues may be found at our %1 at Github." - " If you discover a bug or security vulnerability within" - " qTox, please %3 according to the guidelines in our %2" - " wiki article.") - .arg(createLink("https://github.com/qTox/qTox/issues", - tr("bug-tracker"))) - .arg(createLink("https://github.com/qTox/qTox/wiki/Writing-Useful-Bug-Reports", - tr("Writing Useful Bug Reports"))) - .arg(createLink("https://github.com/qTox/qTox/issues/new?body=" - + QUrl(issueBody).toEncoded(), - tr("report it"))) - ); + tr("A list of all known issues may be found at our %1 at Github." + " If you discover a bug or security vulnerability within" + " qTox, please report it according to the guidelines in our" + " %2 wiki article.", + + "`%1` is replaced by translation of `bug tracker`" + "\n`%2` is replaced by translation of `Writing Useful Bug Reports`") + .arg(createLink("https://github.com/qTox/qTox/issues", + tr("bug-tracker", + "Replaces `%1` in the `A list of all known…`"))) + .arg(createLink("https://github.com/qTox/qTox/wiki/Writing-Useful-Bug-Reports", + tr("Writing Useful Bug Reports", + "Replaces `%2` in the `A list of all known…`"))) + ); + + bodyUI->clickToReport->setText( + createLink("https://github.com/qTox/qTox/issues/new?body=" + + QUrl(issueBody).toEncoded(), + QString("%1") + .arg(tr("Click here to report a bug."))) + ); QString authorInfo = QString("

%1

%2

") .arg(tr("Original author: %1") .arg(createLink("https://github.com/tux3", "tux3"))) - .arg(tr("See a full list of %1 at Github") + .arg(tr("See a full list of %1 at Github", + "`%1` is replaced with translation of word `contributors`") .arg(createLink("https://github.com/qTox/qTox/graphs/contributors", - tr("contributors")))); + tr("contributors", + "Replaces `%1` in `See a full list of…`")))); bodyUI->authorInfo->setText(authorInfo); } diff --git a/src/widget/form/settings/aboutsettings.ui b/src/widget/form/settings/aboutsettings.ui index 9acb4e2c4..d6534bbcf 100644 --- a/src/widget/form/settings/aboutsettings.ui +++ b/src/widget/form/settings/aboutsettings.ui @@ -30,8 +30,8 @@ 0 0 - 496 - 554 + 494 + 551 @@ -305,7 +305,7 @@ p, li { white-space: pre-wrap; } Known Issues - + @@ -333,6 +333,22 @@ p, li { white-space: pre-wrap; } + + + + {CLICK TO REPORT TEXT} + + + true + + + true + + + Qt::LinksAccessibleByKeyboard|Qt::LinksAccessibleByMouse + + +