Skip to content

Commit

Permalink
Match WebUI About page to GUI
Browse files Browse the repository at this point in the history
  • Loading branch information
Piccirello committed Jan 21, 2019
1 parent 86c21ba commit d1dc9a3
Show file tree
Hide file tree
Showing 6 changed files with 761 additions and 11 deletions.
13 changes: 13 additions & 0 deletions src/webui/api/appcontroller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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";
Expand Down
1 change: 1 addition & 0 deletions src/webui/api/appcontroller.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ class AppController : public APIController
private slots:
void webapiVersionAction();
void versionAction();
void buildInfoAction();
void shutdownAction();
void preferencesAction();
void setPreferencesAction();
Expand Down
Loading

0 comments on commit d1dc9a3

Please sign in to comment.