mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
feat(UI): make link to filled issue template on About page visible
Should help with no one realizing that qTox even has the functionality.
This commit is contained in:
parent
8c07fa6c1e
commit
feaedeed84
|
@ -114,24 +114,35 @@ void AboutForm::replaceVersions()
|
|||
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.")
|
||||
" 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")))
|
||||
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")))
|
||||
.arg(createLink("https://github.com/qTox/qTox/issues/new?body="
|
||||
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(),
|
||||
tr("report it")))
|
||||
QString("<b>%1</b>")
|
||||
.arg(tr("Click here to report a bug.")))
|
||||
);
|
||||
|
||||
|
||||
QString authorInfo = QString("<p>%1</p><p>%2</p>")
|
||||
.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);
|
||||
}
|
||||
|
|
|
@ -30,8 +30,8 @@
|
|||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>496</width>
|
||||
<height>554</height>
|
||||
<width>494</width>
|
||||
<height>551</height>
|
||||
</rect>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout_2" stretch="0,1,0,0">
|
||||
|
@ -305,7 +305,7 @@ p, li { white-space: pre-wrap; }
|
|||
<property name="title">
|
||||
<string>Known Issues</string>
|
||||
</property>
|
||||
<layout class="QHBoxLayout" name="horizontalLayout">
|
||||
<layout class="QVBoxLayout" name="verticalLayout_8">
|
||||
<item>
|
||||
<widget class="QLabel" name="knownIssues">
|
||||
<property name="sizePolicy">
|
||||
|
@ -333,6 +333,22 @@ p, li { white-space: pre-wrap; }
|
|||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLabel" name="clickToReport">
|
||||
<property name="text">
|
||||
<string notr="true">{CLICK TO REPORT TEXT}</string>
|
||||
</property>
|
||||
<property name="wordWrap">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="openExternalLinks">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="textInteractionFlags">
|
||||
<set>Qt::LinksAccessibleByKeyboard|Qt::LinksAccessibleByMouse</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
|
|
Loading…
Reference in New Issue
Block a user