1
mirror of https://invent.kde.org/network/falkon.git synced 2024-11-11 01:22:10 +01:00

Show all data paths in falkon:config page

Also show Extensions paths.
This commit is contained in:
David Rosca 2018-01-27 20:17:30 +01:00
parent 53568d4f3f
commit e6edae7d63
No known key found for this signature in database
GPG Key ID: EBC3FC294452C6D8
2 changed files with 17 additions and 4 deletions

View File

@ -9,7 +9,7 @@ h1 {color: #1a4ba4;font-size: 160%;margin-bottom: 0px;}
h2 {margin: 5px 0px;font-size: 100%;color: #525c66;font-weight: bold;}
dl {margin-top: 0px;}
dt {display: block;float: %LEFT_STR%;min-width: 24%;margin: 0 0 0.3em 1%}
dd {color: black;margin: 0 0 0.3em 28%;}
dd {color: black;margin: 0 0 0.3em 28%;word-wrap:break-word;}
p {margin-%LEFT_STR%: 1%;}
.about-img {float: %RIGHT_STR%;margin-top:10px;width:230px;}
table.tbl {width: 100%;margin: 15px 0;border-radius: 4px;padding: 0px;border: 2px solid #aaa;border-collapse: separate;}

View File

@ -385,6 +385,18 @@ QString FalkonSchemeReply::configPage()
cPage.replace(QLatin1String("%PL-AUTH%"), tr("Author"));
cPage.replace(QLatin1String("%PL-DESC%"), tr("Description"));
auto allPaths = [](DataPaths::Path type) {
QString out;
const auto paths = DataPaths::allPaths(type);
for (const QString &path : paths) {
if (!out.isEmpty()) {
out.append(QSL("<br>"));
}
out.append(path);
}
return out;
};
cPage.replace(QLatin1String("%VERSION-INFO%"),
QString("<dt>%1</dt><dd>%2<dd>").arg(tr("Application version"),
#ifdef FALKON_GIT_REVISION
@ -400,9 +412,10 @@ QString FalkonSchemeReply::configPage()
QString("<dt>%1</dt><dd>%2<dd>").arg(tr("Profile"), DataPaths::currentProfilePath()) +
QString("<dt>%1</dt><dd>%2<dd>").arg(tr("Settings"), DataPaths::currentProfilePath() + "/settings.ini") +
QString("<dt>%1</dt><dd>%2<dd>").arg(tr("Saved session"), SessionManager::defaultSessionPath()) +
QString("<dt>%1</dt><dd>%2<dd>").arg(tr("Data"), DataPaths::path(DataPaths::AppData)) +
QString("<dt>%1</dt><dd>%2<dd>").arg(tr("Themes"), DataPaths::path(DataPaths::Themes)) +
QString("<dt>%1</dt><dd>%2<dd>").arg(tr("Translations"), DataPaths::path(DataPaths::Translations)));
QString("<dt>%1</dt><dd>%2<dd>").arg(tr("Data"), allPaths(DataPaths::AppData)) +
QString("<dt>%1</dt><dd>%2<dd>").arg(tr("Themes"), allPaths(DataPaths::Themes)) +
QString("<dt>%1</dt><dd>%2<dd>").arg(tr("Extensions"), allPaths(DataPaths::Plugins)) +
QString("<dt>%1</dt><dd>%2<dd>").arg(tr("Translations"), allPaths(DataPaths::Translations)));
#ifdef QT_DEBUG
QString debugBuild = tr("<b>Enabled</b>");