enhance info in abouzt dialog

This commit is contained in:
Martin Rotter 2023-01-31 08:02:38 +01:00
parent 65bb9a45ca
commit 10e02edee5
3 changed files with 11 additions and 9 deletions

View File

@ -243,7 +243,7 @@
#define APP_THEME_DEFAULT "Breeze"
#endif
#define APP_LOCAL_THEME_FOLDER "icons"
#define APP_LOCAL_ICON_THEME_FOLDER "icons"
#define APP_NO_THEME ""
// Indexes of columns as they are DEFINED IN THE TABLE for MESSAGES.

View File

@ -51,9 +51,10 @@ void FormAbout::loadSettingsAndPaths() {
const QString user_data_path = QDir::toNativeSeparators(qApp->userDataFolder());
m_ui.m_tbResources->setPlainText(QSL("User data folder (\"%5\") -> \"%1\"\n\n"
"Settings file (%3) -> \"%2\"\n\n"
"Skins base folder -> \"%4\"\n\n"
"Node.js package folder -> \"%6\"\n\n"
"Settings file (%3) -> \"%2\"\n"
"Skins base folder -> \"%4\"\n"
"Icon themes base folder -> \"%8\"\n"
"Node.js package folder -> \"%6\"\n"
"QtWebEngine cache folder -> \"%7\"")
.arg(user_data_path,
QDir::toNativeSeparators(qApp->settings()->fileName())
@ -66,11 +67,12 @@ void FormAbout::loadSettingsAndPaths() {
.replace(user_data_path, QSL(USER_DATA_PLACEHOLDER)),
#if defined(USE_WEBENGINE)
QDir::toNativeSeparators(qApp->web()->engineProfile()->cachePath())
.replace(user_data_path, QSL(USER_DATA_PLACEHOLDER))
.replace(user_data_path, QSL(USER_DATA_PLACEHOLDER)),
#else
QSL("-")
QSL("-"),
#endif
));
QSL(USER_DATA_PLACEHOLDER) + QDir::separator() +
QSL(APP_LOCAL_ICON_THEME_FOLDER)));
}
void FormAbout::loadLicenseAndInformation() {

View File

@ -62,8 +62,8 @@ void IconFactory::setupSearchPaths() {
auto paths = QIcon::themeSearchPaths();
paths << APP_THEME_PATH
<< qApp->userDataFolder() + QDir::separator() + APP_LOCAL_THEME_FOLDER
<< qApp->applicationDirPath() + QDir::separator() + APP_LOCAL_THEME_FOLDER;
<< qApp->userDataFolder() + QDir::separator() + APP_LOCAL_ICON_THEME_FOLDER
<< qApp->applicationDirPath() + QDir::separator() + APP_LOCAL_ICON_THEME_FOLDER;
QIcon::setThemeSearchPaths(paths);
qDebugNN << LOGSEC_GUI