mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
Merge pull request #2983
kehugter (2): Add direct link with template for submitting new issues refractor: abstract HTML out of `new issue` GitHub link
This commit is contained in:
commit
0a2f541945
|
@ -49,14 +49,43 @@ AboutForm::AboutForm() :
|
||||||
//nightly builds from stable releases.
|
//nightly builds from stable releases.
|
||||||
void AboutForm::replaceVersions()
|
void AboutForm::replaceVersions()
|
||||||
{
|
{
|
||||||
|
QString TOXCORE_VERSION = QString::number(TOX_VERSION_MAJOR) + "." +
|
||||||
|
QString::number(TOX_VERSION_MINOR) + "." +
|
||||||
|
QString::number(TOX_VERSION_PATCH);
|
||||||
bodyUI->youareusing->setText(bodyUI->youareusing->text().replace("$GIT_DESCRIBE", QString(GIT_DESCRIBE)));
|
bodyUI->youareusing->setText(bodyUI->youareusing->text().replace("$GIT_DESCRIBE", QString(GIT_DESCRIBE)));
|
||||||
bodyUI->gitVersion->setText(bodyUI->gitVersion->text().replace("$GIT_VERSION", QString(GIT_VERSION)));
|
bodyUI->gitVersion->setText(bodyUI->gitVersion->text().replace("$GIT_VERSION", QString(GIT_VERSION)));
|
||||||
bodyUI->toxCoreVersion->setText(
|
bodyUI->toxCoreVersion->setText(bodyUI->toxCoreVersion->text().replace("$TOXCOREVERSION", TOXCORE_VERSION));
|
||||||
bodyUI->toxCoreVersion->text().replace("$TOXCOREVERSION",
|
bodyUI->qtVersion->setText(bodyUI->qtVersion->text().replace("$QTVERSION", QT_VERSION_STR));
|
||||||
QString::number(TOX_VERSION_MAJOR) + "." +
|
bodyUI->knownIssues->setText(
|
||||||
QString::number(TOX_VERSION_MINOR) + "." +
|
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.")
|
||||||
QString::number(TOX_VERSION_PATCH)));
|
.arg(QString::fromUtf8("<a href=\"https://github.com/tux3/qTox/issues\" style=\"text-decoration: underline; color:#0000ff;\">%1</a>")
|
||||||
bodyUI->qtVersion->setText(tr("Qt version:") + " " + QT_VERSION_STR);
|
.arg(tr("bug-tracker")))
|
||||||
|
.arg(QString::fromUtf8("<a href=\"https://github.com/tux3/qTox/wiki/Writing-Useful-Bug-Reports\" style=\"text-decoration: underline; color:#0000ff;\">%1</a>")
|
||||||
|
.arg(tr("Writing Useful Bug Reports")))
|
||||||
|
.arg(QString::fromUtf8("<a href=\"https://github.com/tux3/qTox/issues/"
|
||||||
|
"new?body=%23%23%23%23%23+Brief+Description%1A%1AOS%3A+Windows+%2F+"
|
||||||
|
"OS+X+%2F+Linux+(include+version+and%2For+distro)%1AqTox+version"
|
||||||
|
"%3A+%4%1ACommit+hash%3A+%5%1Atoxcore%3A+%6%1AQt%3A+%7%1A"
|
||||||
|
"Hardware%3A++%1A%E2%80%A6%1A%1AReproducible%3A+Always+%2F+Almost+"
|
||||||
|
"Always+%2F+Sometimes+%2F+Rarely+%2F+Couldn%27t+Reproduce%1A%1A%23"
|
||||||
|
"%23%23%23%23+Steps+to+reproduce%1A%1A1.+%1A2.+%1A3.+%E2%80%A6%1A"
|
||||||
|
"%1A%23%23%23%23%23+Observed+Behavior%1A%1A%1A%23%23%23%23%23+"
|
||||||
|
"Expected+Behavior%1A%1A%1A%23%23%23%23%23+Additional+Info%1A(links"
|
||||||
|
"%2C+images%2C+etc+go+here)%1A%1A----%1A%1AMore+information+on+how+"
|
||||||
|
"to+write+good+bug+reports+in+the+wiki%3A+https%3A%2F%2Fgithub.com"
|
||||||
|
"%2Ftux3%2FqTox%2Fwiki%2FWriting-Useful-Bug-Reports.%1A%1APlease+"
|
||||||
|
"remove+any+unnecessary+template+section+before+submitting.\" "
|
||||||
|
"style=\"text-decoration: underline; color:#0000ff;\">%8</a>")
|
||||||
|
.arg(
|
||||||
|
QString("%0"),
|
||||||
|
QString("%2"),
|
||||||
|
QString("%3"),
|
||||||
|
QString(GIT_DESCRIBE),
|
||||||
|
QString(GIT_VERSION),
|
||||||
|
QString(TOXCORE_VERSION),
|
||||||
|
QString(QT_VERSION_STR),
|
||||||
|
tr("report it")))
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
AboutForm::~AboutForm()
|
AboutForm::~AboutForm()
|
||||||
|
|
|
@ -85,7 +85,7 @@
|
||||||
</font>
|
</font>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Qt version:</string>
|
<string>Qt version: $QTVERSION</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="textInteractionFlags">
|
<property name="textInteractionFlags">
|
||||||
<set>Qt::LinksAccessibleByMouse|Qt::TextSelectableByMouse</set>
|
<set>Qt::LinksAccessibleByMouse|Qt::TextSelectableByMouse</set>
|
||||||
|
@ -307,7 +307,7 @@ p, li { white-space: pre-wrap; }
|
||||||
</property>
|
</property>
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout">
|
<layout class="QHBoxLayout" name="horizontalLayout">
|
||||||
<item>
|
<item>
|
||||||
<widget class="QLabel" name="label_3">
|
<widget class="QLabel" name="knownIssues">
|
||||||
<property name="sizePolicy">
|
<property name="sizePolicy">
|
||||||
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
|
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
|
||||||
<horstretch>0</horstretch>
|
<horstretch>0</horstretch>
|
||||||
|
@ -320,7 +320,7 @@ p, li { white-space: pre-wrap; }
|
||||||
</font>
|
</font>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string><html><head/><body><p>A list of all known issues may be found at our <a href="https://github.com/tux3/qTox/issues"><span style=" text-decoration: underline; color:#0000ff;">bug-tracker</span></a> at Github. If you discover a bug or security vulnerability within qTox, please report it according to the guidelines in our <a href="https://github.com/tux3/qTox/wiki/Writing-Useful-Bug-Reports"><span style=" text-decoration: underline; color:#0000ff;">Writing Useful Bug Reports</span></a> wiki article.</p></body></html></string>
|
<string><html><head/><body><p>A list of all known issues may be found at our <a href="https://github.com/tux3/qTox/issues"><span style=" text-decoration: underline; color:#0000ff;">bug-tracker</span></a> at Github. If you discover a bug or security vulnerability within qTox, please <a href="https://github.com/tux3/qTox/issues/new?body=%0A%0A%0A%0A---%0A%0AqTox:+$GIT_DESCRIBE%0ACommit+hash:+$GIT_VERSION%0Atoxcore:+$TOXCOREVERSION%0AQt:+$QTVERSION%0AOS+version:"><span style=" text-decoration: underline; color:#0000ff;">report it</span></a> according to the guidelines in our <a href="https://github.com/tux3/qTox/wiki/Writing-Useful-Bug-Reports"><span style=" text-decoration: underline; color:#0000ff;">Writing Useful Bug Reports</span></a> wiki article.</p></body></html></string>
|
||||||
</property>
|
</property>
|
||||||
<property name="wordWrap">
|
<property name="wordWrap">
|
||||||
<bool>true</bool>
|
<bool>true</bool>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user