mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-23 13:04:23 +00:00
Add zlib version to GUI & stackdump
This commit is contained in:
parent
3a0f0c2f58
commit
4f4f435e76
@ -72,15 +72,17 @@ public:
|
|||||||
"Qt version: " QT_VERSION_STR "<br/>"
|
"Qt version: " QT_VERSION_STR "<br/>"
|
||||||
"Boost version: %3<br/>"
|
"Boost version: %3<br/>"
|
||||||
"OpenSSL version: %4<br/>"
|
"OpenSSL version: %4<br/>"
|
||||||
"OS version: %5<br/><br/>"
|
"zlib version: %5<br/>"
|
||||||
"Caught signal: %6"
|
"OS version: %6<br/><br/>"
|
||||||
|
"Caught signal: %7"
|
||||||
"</font></p>"
|
"</font></p>"
|
||||||
"<pre><code>%7</code></pre>"
|
"<pre><code>%8</code></pre>"
|
||||||
"<br/><hr><br/><br/>")
|
"<br/><hr><br/><br/>")
|
||||||
.arg(QString::number(QT_POINTER_SIZE * 8)
|
.arg(QString::number(QT_POINTER_SIZE * 8)
|
||||||
, Utils::Misc::libtorrentVersionString()
|
, Utils::Misc::libtorrentVersionString()
|
||||||
, Utils::Misc::boostVersionString()
|
, Utils::Misc::boostVersionString()
|
||||||
, Utils::Misc::opensslVersionString()
|
, Utils::Misc::opensslVersionString()
|
||||||
|
, Utils::Misc::zlibVersionString()
|
||||||
, Utils::Misc::osName()
|
, Utils::Misc::osName()
|
||||||
, sigName
|
, sigName
|
||||||
, trace);
|
, trace);
|
||||||
|
@ -44,6 +44,7 @@
|
|||||||
#include <boost/version.hpp>
|
#include <boost/version.hpp>
|
||||||
#include <openssl/opensslv.h>
|
#include <openssl/opensslv.h>
|
||||||
#include <libtorrent/version.hpp>
|
#include <libtorrent/version.hpp>
|
||||||
|
#include <zlib.h>
|
||||||
|
|
||||||
#include <QCoreApplication>
|
#include <QCoreApplication>
|
||||||
#include <QRegularExpression>
|
#include <QRegularExpression>
|
||||||
@ -463,6 +464,13 @@ QString Utils::Misc::opensslVersionString()
|
|||||||
return version.split(' ', QString::SkipEmptyParts)[1];
|
return version.split(' ', QString::SkipEmptyParts)[1];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QString Utils::Misc::zlibVersionString()
|
||||||
|
{
|
||||||
|
// static initialization for usage in signal handler
|
||||||
|
static const QString version {ZLIB_VERSION};
|
||||||
|
return version;
|
||||||
|
}
|
||||||
|
|
||||||
#ifdef Q_OS_WIN
|
#ifdef Q_OS_WIN
|
||||||
QString Utils::Misc::windowsSystemPath()
|
QString Utils::Misc::windowsSystemPath()
|
||||||
{
|
{
|
||||||
|
@ -70,6 +70,7 @@ namespace Utils
|
|||||||
QString boostVersionString();
|
QString boostVersionString();
|
||||||
QString libtorrentVersionString();
|
QString libtorrentVersionString();
|
||||||
QString opensslVersionString();
|
QString opensslVersionString();
|
||||||
|
QString zlibVersionString();
|
||||||
|
|
||||||
QString unitString(SizeUnit unit, bool isSpeed = false);
|
QString unitString(SizeUnit unit, bool isSpeed = false);
|
||||||
|
|
||||||
|
@ -99,6 +99,7 @@ public:
|
|||||||
m_ui->labelLibtVer->setText(Utils::Misc::libtorrentVersionString());
|
m_ui->labelLibtVer->setText(Utils::Misc::libtorrentVersionString());
|
||||||
m_ui->labelBoostVer->setText(Utils::Misc::boostVersionString());
|
m_ui->labelBoostVer->setText(Utils::Misc::boostVersionString());
|
||||||
m_ui->labelOpensslVer->setText(Utils::Misc::opensslVersionString());
|
m_ui->labelOpensslVer->setText(Utils::Misc::opensslVersionString());
|
||||||
|
m_ui->labelZlibVer->setText(Utils::Misc::zlibVersionString());
|
||||||
|
|
||||||
Utils::Gui::resize(this);
|
Utils::Gui::resize(this);
|
||||||
show();
|
show();
|
||||||
|
@ -441,6 +441,26 @@
|
|||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
<item row="4" column="1">
|
||||||
|
<widget class="QLabel" name="label_12">
|
||||||
|
<property name="text">
|
||||||
|
<string notr="true">zlib:</string>
|
||||||
|
</property>
|
||||||
|
<property name="alignment">
|
||||||
|
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||||
|
</property>
|
||||||
|
<property name="textInteractionFlags">
|
||||||
|
<set>Qt::LinksAccessibleByMouse|Qt::TextSelectableByMouse</set>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="4" column="2">
|
||||||
|
<widget class="QLabel" name="labelZlibVer">
|
||||||
|
<property name="textInteractionFlags">
|
||||||
|
<set>Qt::LinksAccessibleByMouse|Qt::TextSelectableByMouse</set>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
|
@ -71,6 +71,7 @@ void AppController::buildInfoAction()
|
|||||||
{"libtorrent", Utils::Misc::libtorrentVersionString()},
|
{"libtorrent", Utils::Misc::libtorrentVersionString()},
|
||||||
{"boost", Utils::Misc::boostVersionString()},
|
{"boost", Utils::Misc::boostVersionString()},
|
||||||
{"openssl", Utils::Misc::opensslVersionString()},
|
{"openssl", Utils::Misc::opensslVersionString()},
|
||||||
|
{"zlib", Utils::Misc::zlibVersionString()},
|
||||||
{"bitness", (QT_POINTER_SIZE * 8)}
|
{"bitness", (QT_POINTER_SIZE * 8)}
|
||||||
};
|
};
|
||||||
setResult(versions);
|
setResult(versions);
|
||||||
|
@ -671,6 +671,10 @@
|
|||||||
<td>OpenSSL:</td>
|
<td>OpenSSL:</td>
|
||||||
<td><span id="opensslVersion"></span></td>
|
<td><span id="opensslVersion"></span></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>zlib:</td>
|
||||||
|
<td><span id="zlibVersion"></span></td>
|
||||||
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -691,6 +695,7 @@
|
|||||||
$('libtorrentVersion').textContent = info.libtorrent;
|
$('libtorrentVersion').textContent = info.libtorrent;
|
||||||
$('boostVersion').textContent = info.boost;
|
$('boostVersion').textContent = info.boost;
|
||||||
$('opensslVersion').textContent = info.openssl;
|
$('opensslVersion').textContent = info.openssl;
|
||||||
|
$('zlibVersion').textContent = info.zlib;
|
||||||
$('qbittorrentVersion').textContent += " (" + info.bitness + "-bit)";
|
$('qbittorrentVersion').textContent += " (" + info.bitness + "-bit)";
|
||||||
}
|
}
|
||||||
}).send();
|
}).send();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user