Compare commits

...

4 Commits

Author SHA1 Message Date
Laurent Trinques a73452bf6d Polish 2025-01-26 12:31:10 +01:00
Laurent Trinques 24165ee8ee Machine info ; try to Count *elmt Files in alls collections
(include subfolders)
2025-01-26 12:16:46 +01:00
Laurent Trinques f26e936ea9 Polish 2025-01-26 10:48:50 +01:00
Laurent Trinques 1ddfe1d433 Polish 2025-01-26 08:43:07 +01:00
+44 -6
View File
@@ -19,6 +19,7 @@
#include "qetapp.h"
#include "qetversion.h"
#include <QSettings>
#include <QDirIterator>
#include <QScreen>
#include <QProcess>
@@ -160,7 +161,6 @@ void MachineInfo::send_info_to_debug()
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()<< " User Location:"<< QString(QETApp::configDir().toLatin1());
qInfo()<< "";
qInfo()<< " For QET configuration-files:";
#if defined(Q_OS_WIN32) || defined(Q_OS_WIN64)
@@ -169,8 +169,6 @@ void MachineInfo::send_info_to_debug()
qInfo()<< " App Config Location:"<< QStandardPaths::writableLocation(QStandardPaths::AppConfigLocation) +".conf/";
#endif
qInfo()<< " App Config Location:"<< QStandardPaths::writableLocation(QStandardPaths::AppConfigLocation) +".conf/";
qInfo()<< " For data-files (user-/company-collections, titleblocks, etc.):";
qInfo()<< " App Data Location:"<< QStandardPaths::writableLocation(QStandardPaths::AppDataLocation);
qInfo()<< " Directory for project stalefiles:";
@@ -179,12 +177,51 @@ void MachineInfo::send_info_to_debug()
// qInfo()<< " Home Location:"<< QStandardPaths::writableLocation(QStandardPaths::HomeLocation);
// qInfo()<< " Runtime Location:"<< QStandardPaths::writableLocation(QStandardPaths::RuntimeLocation);
// qInfo()<< " Cache Location:"<< QStandardPaths::writableLocation(QStandardPaths::CacheLocation);
qInfo()<< "";
qInfo()<< "";
qInfo()<< " For elmt-files (user-/common-collections, user-/company-collections, user-/custom-collections, etc.):";
QStringList nameFilters;
nameFilters << "*.elmt";
int commomElementsDir = 0;
QDirIterator it1(QETApp::commonElementsDir().toLatin1(),nameFilters, QDir::Files, QDirIterator::Subdirectories);
while (it1.hasNext())
{
if(it1.next() > 0 )
{
commomElementsDir ++;
}
}
qInfo()<< " Common Elements count:"<< commomElementsDir;
int customElementsDir = 0;
QDirIterator it2(QETApp::customElementsDir().toLatin1(), nameFilters, QDir::Files, QDirIterator::Subdirectories);
while (it2.hasNext())
{
if(it2.next() > 0 )
{
customElementsDir ++;
}
}
qInfo()<< " Custom Elements count:"<< customElementsDir;
int companyElementsDir = 0;
QDirIterator it3(QETApp::companyElementsDir().toLatin1(), nameFilters, QDir::Files, QDirIterator::Subdirectories);
while (it3.hasNext())
{
if(it3.next() > 0 )
{
companyElementsDir ++;
}
}
qInfo()<< " Company Elements count:"<< companyElementsDir;
qInfo()<< "";
qInfo()<< "*** Qt screens ***";
for (int ii = 0; ii < pc.screen.count; ++ii) {
for (int ii = 0; ii < pc.screen.count; ++ii) {
qInfo()<<"( "
+ QString::number(ii + 1)
+ " : "
@@ -194,6 +231,7 @@ void MachineInfo::send_info_to_debug()
+ " )";
}
qInfo()<< "";
foreach (const QStorageInfo &storage, QStorageInfo::mountedVolumes()) {
if (storage.isReadOnly())
qDebug() << "isReadOnly:" << storage.isReadOnly();
@@ -205,7 +243,7 @@ void MachineInfo::send_info_to_debug()
}
QStorageInfo storage(qApp->applicationDirPath());
if (storage.isReadOnly())
qDebug() << "isReadOnly:" << storage.isReadOnly();