enhance info in abouzt dialog
This commit is contained in:
parent
65bb9a45ca
commit
10e02edee5
3 changed files with 11 additions and 9 deletions
|
@ -243,7 +243,7 @@
|
||||||
#define APP_THEME_DEFAULT "Breeze"
|
#define APP_THEME_DEFAULT "Breeze"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define APP_LOCAL_THEME_FOLDER "icons"
|
#define APP_LOCAL_ICON_THEME_FOLDER "icons"
|
||||||
#define APP_NO_THEME ""
|
#define APP_NO_THEME ""
|
||||||
|
|
||||||
// Indexes of columns as they are DEFINED IN THE TABLE for MESSAGES.
|
// Indexes of columns as they are DEFINED IN THE TABLE for MESSAGES.
|
||||||
|
|
|
@ -51,9 +51,10 @@ void FormAbout::loadSettingsAndPaths() {
|
||||||
const QString user_data_path = QDir::toNativeSeparators(qApp->userDataFolder());
|
const QString user_data_path = QDir::toNativeSeparators(qApp->userDataFolder());
|
||||||
|
|
||||||
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"
|
||||||
"Skins base folder -> \"%4\"\n\n"
|
"Skins base folder -> \"%4\"\n"
|
||||||
"Node.js package folder -> \"%6\"\n\n"
|
"Icon themes base folder -> \"%8\"\n"
|
||||||
|
"Node.js package folder -> \"%6\"\n"
|
||||||
"QtWebEngine cache folder -> \"%7\"")
|
"QtWebEngine cache folder -> \"%7\"")
|
||||||
.arg(user_data_path,
|
.arg(user_data_path,
|
||||||
QDir::toNativeSeparators(qApp->settings()->fileName())
|
QDir::toNativeSeparators(qApp->settings()->fileName())
|
||||||
|
@ -66,11 +67,12 @@ void FormAbout::loadSettingsAndPaths() {
|
||||||
.replace(user_data_path, QSL(USER_DATA_PLACEHOLDER)),
|
.replace(user_data_path, QSL(USER_DATA_PLACEHOLDER)),
|
||||||
#if defined(USE_WEBENGINE)
|
#if defined(USE_WEBENGINE)
|
||||||
QDir::toNativeSeparators(qApp->web()->engineProfile()->cachePath())
|
QDir::toNativeSeparators(qApp->web()->engineProfile()->cachePath())
|
||||||
.replace(user_data_path, QSL(USER_DATA_PLACEHOLDER))
|
.replace(user_data_path, QSL(USER_DATA_PLACEHOLDER)),
|
||||||
#else
|
#else
|
||||||
QSL("-")
|
QSL("-"),
|
||||||
#endif
|
#endif
|
||||||
));
|
QSL(USER_DATA_PLACEHOLDER) + QDir::separator() +
|
||||||
|
QSL(APP_LOCAL_ICON_THEME_FOLDER)));
|
||||||
}
|
}
|
||||||
|
|
||||||
void FormAbout::loadLicenseAndInformation() {
|
void FormAbout::loadLicenseAndInformation() {
|
||||||
|
|
|
@ -62,8 +62,8 @@ void IconFactory::setupSearchPaths() {
|
||||||
auto paths = QIcon::themeSearchPaths();
|
auto paths = QIcon::themeSearchPaths();
|
||||||
|
|
||||||
paths << APP_THEME_PATH
|
paths << APP_THEME_PATH
|
||||||
<< qApp->userDataFolder() + QDir::separator() + APP_LOCAL_THEME_FOLDER
|
<< qApp->userDataFolder() + QDir::separator() + APP_LOCAL_ICON_THEME_FOLDER
|
||||||
<< qApp->applicationDirPath() + QDir::separator() + APP_LOCAL_THEME_FOLDER;
|
<< qApp->applicationDirPath() + QDir::separator() + APP_LOCAL_ICON_THEME_FOLDER;
|
||||||
|
|
||||||
QIcon::setThemeSearchPaths(paths);
|
QIcon::setThemeSearchPaths(paths);
|
||||||
qDebugNN << LOGSEC_GUI
|
qDebugNN << LOGSEC_GUI
|
||||||
|
|
Loading…
Add table
Reference in a new issue