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
|
@ -112,26 +112,37 @@ void AboutForm::replaceVersions()
|
||||||
issueBody.replace("#", "%23").replace(":", "%3A");
|
issueBody.replace("#", "%23").replace(":", "%3A");
|
||||||
|
|
||||||
bodyUI->knownIssues->setText(
|
bodyUI->knownIssues->setText(
|
||||||
tr("A list of all known issues may be found at our %1 at Github."
|
tr("A list of all known issues may be found at our %1 at Github."
|
||||||
" If you discover a bug or security vulnerability within"
|
" If you discover a bug or security vulnerability within"
|
||||||
" qTox, please %3 according to the guidelines in our %2"
|
" qTox, please report it according to the guidelines in our"
|
||||||
" wiki article.")
|
" %2 wiki article.",
|
||||||
.arg(createLink("https://github.com/qTox/qTox/issues",
|
|
||||||
tr("bug-tracker")))
|
"`%1` is replaced by translation of `bug tracker`"
|
||||||
.arg(createLink("https://github.com/qTox/qTox/wiki/Writing-Useful-Bug-Reports",
|
"\n`%2` is replaced by translation of `Writing Useful Bug Reports`")
|
||||||
tr("Writing Useful Bug Reports")))
|
.arg(createLink("https://github.com/qTox/qTox/issues",
|
||||||
.arg(createLink("https://github.com/qTox/qTox/issues/new?body="
|
tr("bug-tracker",
|
||||||
+ QUrl(issueBody).toEncoded(),
|
"Replaces `%1` in the `A list of all known…`")))
|
||||||
tr("report it")))
|
.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("<b>%1</b>")
|
||||||
|
.arg(tr("Click here to report a bug.")))
|
||||||
|
);
|
||||||
|
|
||||||
|
|
||||||
QString authorInfo = QString("<p>%1</p><p>%2</p>")
|
QString authorInfo = QString("<p>%1</p><p>%2</p>")
|
||||||
.arg(tr("Original author: %1")
|
.arg(tr("Original author: %1")
|
||||||
.arg(createLink("https://github.com/tux3", "tux3")))
|
.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",
|
.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);
|
bodyUI->authorInfo->setText(authorInfo);
|
||||||
}
|
}
|
||||||
|
|
|
@ -30,8 +30,8 @@
|
||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>496</width>
|
<width>494</width>
|
||||||
<height>554</height>
|
<height>551</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QVBoxLayout" name="verticalLayout_2" stretch="0,1,0,0">
|
<layout class="QVBoxLayout" name="verticalLayout_2" stretch="0,1,0,0">
|
||||||
|
@ -305,7 +305,7 @@ p, li { white-space: pre-wrap; }
|
||||||
<property name="title">
|
<property name="title">
|
||||||
<string>Known Issues</string>
|
<string>Known Issues</string>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout">
|
<layout class="QVBoxLayout" name="verticalLayout_8">
|
||||||
<item>
|
<item>
|
||||||
<widget class="QLabel" name="knownIssues">
|
<widget class="QLabel" name="knownIssues">
|
||||||
<property name="sizePolicy">
|
<property name="sizePolicy">
|
||||||
|
@ -333,6 +333,22 @@ p, li { white-space: pre-wrap; }
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</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>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user