TechnicalInfo::TechnicalInfo() { TechInfoTable *table; // ****************************************** table = newTable("LXQt Desktop Toolbox - Technical Info<p>"); #ifdef DEBUG QString buildType("Debug"); #else QString buildType("Release"); #endif table->add("LXQt About Version", LXQT_ABOUT_VERSION); table->add("LXQt Version", LXQT_VERSION); table->add("Qt", qVersion()); table->add("Build type", buildType); table->add("System Configuration", LXQT_ETC_XDG_DIR); table->add("Share Directory", LXQT_SHARE_DIR); table->add("Translations", Translator::translationSearchPaths().join("<br>\n")); // ****************************************** table = newTable("User Directories"); XdgDirs xdgDirs; table->add("Xdg Data Home", xdgDirs.dataHome(false)); table->add("Xdg Config Home", xdgDirs.configHome(false)); table->add("Xdg Data Dirs", xdgDirs.dataDirs().join(":")); table->add("Xdg Cache Home", xdgDirs.cacheHome(false)); table->add("Xdg Runtime Home", xdgDirs.runtimeDir()); table->add("Xdg Autostart Dirs", xdgDirs.autostartDirs().join("<br>\n")); table->add("Xdg Autostart Home", xdgDirs.autostartHome(false)); }
QString RazorAboutDLGPrivate::technicalText() const { // technical info #ifdef DEBUG QString debug(tr("Yes")); #else QString debug(tr("No")); #endif XdgDirs xdgDirs; QString tech; tech += tr("<b>Razor Desktop Toolbox - Technical Info</b>"); tech += "<table width='100%'>"; tech += TechnicalTextRow.arg(tr("Version"), RAZOR_VERSION); tech += TechnicalTextRow.arg(tr("Qt"), qVersion()); tech += TechnicalTextRow.arg(tr("Debug Build"), debug); tech += TechnicalTextRow.arg(tr("System Configuration"), RAZOR_ETC_XDG_DIRECTORY); tech += TechnicalTextRow.arg(tr("Share Directory"), SHARE_DIR); tech += TechnicalTextRow.arg(tr("Translations"), TRANSLATIONS_DIR); tech += "</table>"; tech += "<p>"; tech += tr("<b>User Directories</b>"); tech += "<table width='100%'>"; tech += TechnicalTextRow.arg(tr("Xdg Data Home"), xdgDirs.dataHome(false)); tech += TechnicalTextRow.arg(tr("Xdg Config Home"), xdgDirs.configHome(false)); tech += TechnicalTextRow.arg(tr("Xdg Data Dirs"), xdgDirs.dataDirs().join(":")); tech += TechnicalTextRow.arg(tr("Xdg Cache Home"), xdgDirs.cacheHome(false)); tech += TechnicalTextRow.arg(tr("Xdg Runtime Home"), xdgDirs.runtimeDir()); tech += TechnicalTextRow.arg(tr("Xdg Autostart Dirs"), xdgDirs.autostartDirs().join(":")); tech += TechnicalTextRow.arg(tr("Xdg Autostart Home"), xdgDirs.autostartHome(false)); tech += "</table>"; return tech; }