expanded folder info in about dialog
This commit is contained in:
parent
28efa476f4
commit
fec397c855
1 changed files with 17 additions and 2 deletions
|
@ -18,6 +18,10 @@
|
||||||
#include <QPlainTextEdit>
|
#include <QPlainTextEdit>
|
||||||
#include <QTextStream>
|
#include <QTextStream>
|
||||||
|
|
||||||
|
#if defined(USE_WEBENGINE)
|
||||||
|
#include <QWebEngineProfile>
|
||||||
|
#endif
|
||||||
|
|
||||||
FormAbout::FormAbout(QWidget* parent) : QDialog(parent) {
|
FormAbout::FormAbout(QWidget* parent) : QDialog(parent) {
|
||||||
m_ui.setupUi(this);
|
m_ui.setupUi(this);
|
||||||
m_ui.m_lblIcon->setPixmap(QPixmap(APP_ICON_PATH));
|
m_ui.m_lblIcon->setPixmap(QPixmap(APP_ICON_PATH));
|
||||||
|
@ -51,14 +55,25 @@ void FormAbout::loadSettingsAndPaths() {
|
||||||
|
|
||||||
m_ui.m_tbResources->setPlainText(QSL("User data folder (\"%5\") -> \"%1\"\n\n"
|
m_ui.m_tbResources->setPlainText(QSL("User data folder (\"%5\") -> \"%1\"\n\n"
|
||||||
"Settings file (%3) -> \"%2\"\n\n"
|
"Settings file (%3) -> \"%2\"\n\n"
|
||||||
"Skins base folder -> \"%4\"")
|
"Skins base folder -> \"%4\"\n\n"
|
||||||
|
"Node.js package folder -> \"%6\"\n\n"
|
||||||
|
"QtWebEngine cache folder -> \"%7\"")
|
||||||
.arg(user_data_path,
|
.arg(user_data_path,
|
||||||
QDir::toNativeSeparators(qApp->settings()->fileName())
|
QDir::toNativeSeparators(qApp->settings()->fileName())
|
||||||
.replace(user_data_path, QSL(USER_DATA_PLACEHOLDER)),
|
.replace(user_data_path, QSL(USER_DATA_PLACEHOLDER)),
|
||||||
settings_type,
|
settings_type,
|
||||||
QDir::toNativeSeparators(qApp->skins()->customSkinBaseFolder())
|
QDir::toNativeSeparators(qApp->skins()->customSkinBaseFolder())
|
||||||
.replace(user_data_path, QSL(USER_DATA_PLACEHOLDER)),
|
.replace(user_data_path, QSL(USER_DATA_PLACEHOLDER)),
|
||||||
QSL(USER_DATA_PLACEHOLDER)));
|
QSL(USER_DATA_PLACEHOLDER),
|
||||||
|
QDir::toNativeSeparators(qApp->nodejs()->packageFolder())
|
||||||
|
.replace(user_data_path, QSL(USER_DATA_PLACEHOLDER)),
|
||||||
|
#if defined(USE_WEBENGINE)
|
||||||
|
QDir::toNativeSeparators(QWebEngineProfile::defaultProfile()->cachePath())
|
||||||
|
.replace(user_data_path, QSL(USER_DATA_PLACEHOLDER))
|
||||||
|
#else
|
||||||
|
QSL("-")
|
||||||
|
#endif
|
||||||
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
void FormAbout::loadLicenseAndInformation() {
|
void FormAbout::loadLicenseAndInformation() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue