mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-06 05:01:25 -07:00
Match WebUI About page to GUI
This commit is contained in:
parent
86c21baf40
commit
d1dc9a39ae
6 changed files with 761 additions and 11 deletions
|
@ -54,6 +54,7 @@
|
|||
#include "base/scanfoldersmodel.h"
|
||||
#include "base/torrentfileguard.h"
|
||||
#include "base/utils/fs.h"
|
||||
#include "base/utils/misc.h"
|
||||
#include "base/utils/net.h"
|
||||
#include "base/utils/password.h"
|
||||
#include "../webapplication.h"
|
||||
|
@ -68,6 +69,18 @@ void AppController::versionAction()
|
|||
setResult(QBT_VERSION);
|
||||
}
|
||||
|
||||
void AppController::buildInfoAction()
|
||||
{
|
||||
const QJsonObject versions = {
|
||||
{"qt", QT_VERSION_STR},
|
||||
{"libtorrent", Utils::Misc::libtorrentVersionString()},
|
||||
{"boost", Utils::Misc::boostVersionString()},
|
||||
{"openssl", Utils::Misc::opensslVersionString()},
|
||||
{"bitness", (QT_POINTER_SIZE * 8)}
|
||||
};
|
||||
setResult(versions);
|
||||
}
|
||||
|
||||
void AppController::shutdownAction()
|
||||
{
|
||||
qDebug() << "Shutdown request from Web UI";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue