Compare commits

...

3 Commits

Author SHA1 Message Date
Laurent Trinques b19fbd2522 Minor 2025-01-23 17:25:36 +01:00
Laurent Trinques dc403e5e8f Machine info: add new informations about config 2025-01-23 16:34:48 +01:00
Laurent Trinques be96da650c Maichine info: add new QStandardPaths 2025-01-23 12:35:03 +01:00
+24 -1
View File
@@ -16,8 +16,9 @@
along with QElectroTech. If not, see <http://www.gnu.org/licenses/>.
*/
#include "machine_info.h"
#include "qetapp.h"
#include "qetversion.h"
#include <QSettings>
#include <QScreen>
#include <QProcess>
@@ -27,6 +28,7 @@
#include <QStorageInfo>
#include <QLibraryInfo>
#include <QStorageInfo>
#include <QStandardPaths>
#ifdef Q_OS_WIN
#include <windows.h>
@@ -144,6 +146,26 @@ void MachineInfo::send_info_to_debug()
+ " - " + pc.cpu.Architecture
+ " - Version : "+pc.os.name
+ " - Kernel : "+pc.os.kernel;
qInfo()<< " System language:"<< QString(QETApp::langFromSetting().toLatin1());
qInfo()<< " language Path:"<< QString(QETApp::languagesPath().toLatin1());
qInfo()<< " Common Elements Dir:"<< QString(QETApp::commonElementsDir().toLatin1());
qInfo()<< " Common TitleBlock Templates Dir:"<< QString(QETApp::commonTitleBlockTemplatesDir().toLatin1());
qInfo()<< " Custom Elements Dir:"<< QString(QETApp::customElementsDir().toLatin1());
qInfo()<< " Custom TitleBlock Templates Dir:"<< QString(QETApp::customTitleBlockTemplatesDir().toLatin1());
qInfo()<< " Company Elements Dir:"<< QString(QETApp::companyElementsDir().toLatin1());
qInfo()<< " Company TitleBlock Templates Dir:"<< QString(QETApp::companyTitleBlockTemplatesDir().toLatin1());
qInfo()<< " Standard Location :"<< QStringList(QStandardPaths::writableLocation(QStandardPaths::AppConfigLocation));
qInfo()<< " App Data Location:"<< QStandardPaths::writableLocation(QStandardPaths::AppDataLocation);
qInfo()<< " App Local DataLocation:"<< QStandardPaths::writableLocation(QStandardPaths::ApplicationsLocation);
qInfo()<< " Home Location:"<< QStandardPaths::writableLocation(QStandardPaths::HomeLocation);
qInfo()<< " Runtime Location:"<< QStandardPaths::writableLocation(QStandardPaths::RuntimeLocation);
qInfo()<< " Cache Location:"<< QStandardPaths::writableLocation(QStandardPaths::CacheLocation);
qInfo()<< "*** Qt screens ***";
for (int ii = 0; ii < pc.screen.count; ++ii) {
@@ -411,3 +433,4 @@ QString MachineInfo::compilation_info()
}
return compilation_info;
}