mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-06-29 21:24:13 +02:00
Compare commits
4 Commits
194edbd799
...
a73452bf6d
| Author | SHA1 | Date | |
|---|---|---|---|
| a73452bf6d | |||
| 24165ee8ee | |||
| f26e936ea9 | |||
| 1ddfe1d433 |
@@ -19,6 +19,7 @@
|
|||||||
#include "qetapp.h"
|
#include "qetapp.h"
|
||||||
#include "qetversion.h"
|
#include "qetversion.h"
|
||||||
#include <QSettings>
|
#include <QSettings>
|
||||||
|
#include <QDirIterator>
|
||||||
|
|
||||||
#include <QScreen>
|
#include <QScreen>
|
||||||
#include <QProcess>
|
#include <QProcess>
|
||||||
@@ -160,7 +161,6 @@ void MachineInfo::send_info_to_debug()
|
|||||||
qInfo()<< " Custom TitleBlock Templates Dir:"<< QString(QETApp::customTitleBlockTemplatesDir().toLatin1());
|
qInfo()<< " Custom TitleBlock Templates Dir:"<< QString(QETApp::customTitleBlockTemplatesDir().toLatin1());
|
||||||
qInfo()<< " Company Elements Dir:"<< QString(QETApp::companyElementsDir().toLatin1());
|
qInfo()<< " Company Elements Dir:"<< QString(QETApp::companyElementsDir().toLatin1());
|
||||||
qInfo()<< " Company TitleBlock Templates Dir:"<< QString(QETApp::companyTitleBlockTemplatesDir().toLatin1());
|
qInfo()<< " Company TitleBlock Templates Dir:"<< QString(QETApp::companyTitleBlockTemplatesDir().toLatin1());
|
||||||
qInfo()<< " User Location:"<< QString(QETApp::configDir().toLatin1());
|
|
||||||
qInfo()<< "";
|
qInfo()<< "";
|
||||||
qInfo()<< " For QET configuration-files:";
|
qInfo()<< " For QET configuration-files:";
|
||||||
#if defined(Q_OS_WIN32) || defined(Q_OS_WIN64)
|
#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/";
|
qInfo()<< " App Config Location:"<< QStandardPaths::writableLocation(QStandardPaths::AppConfigLocation) +".conf/";
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
qInfo()<< " App Config Location:"<< QStandardPaths::writableLocation(QStandardPaths::AppConfigLocation) +".conf/";
|
|
||||||
|
|
||||||
qInfo()<< " For data-files (user-/company-collections, titleblocks, etc.):";
|
qInfo()<< " For data-files (user-/company-collections, titleblocks, etc.):";
|
||||||
qInfo()<< " App Data Location:"<< QStandardPaths::writableLocation(QStandardPaths::AppDataLocation);
|
qInfo()<< " App Data Location:"<< QStandardPaths::writableLocation(QStandardPaths::AppDataLocation);
|
||||||
qInfo()<< " Directory for project stalefiles:";
|
qInfo()<< " Directory for project stalefiles:";
|
||||||
@@ -179,12 +177,51 @@ void MachineInfo::send_info_to_debug()
|
|||||||
// qInfo()<< " Home Location:"<< QStandardPaths::writableLocation(QStandardPaths::HomeLocation);
|
// qInfo()<< " Home Location:"<< QStandardPaths::writableLocation(QStandardPaths::HomeLocation);
|
||||||
// qInfo()<< " Runtime Location:"<< QStandardPaths::writableLocation(QStandardPaths::RuntimeLocation);
|
// qInfo()<< " Runtime Location:"<< QStandardPaths::writableLocation(QStandardPaths::RuntimeLocation);
|
||||||
// qInfo()<< " Cache Location:"<< QStandardPaths::writableLocation(QStandardPaths::CacheLocation);
|
// 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 ***";
|
qInfo()<< "*** Qt screens ***";
|
||||||
|
|
||||||
for (int ii = 0; ii < pc.screen.count; ++ii) {
|
for (int ii = 0; ii < pc.screen.count; ++ii) {
|
||||||
qInfo()<<"( "
|
qInfo()<<"( "
|
||||||
+ QString::number(ii + 1)
|
+ QString::number(ii + 1)
|
||||||
+ " : "
|
+ " : "
|
||||||
@@ -194,6 +231,7 @@ void MachineInfo::send_info_to_debug()
|
|||||||
+ " )";
|
+ " )";
|
||||||
}
|
}
|
||||||
qInfo()<< "";
|
qInfo()<< "";
|
||||||
|
|
||||||
foreach (const QStorageInfo &storage, QStorageInfo::mountedVolumes()) {
|
foreach (const QStorageInfo &storage, QStorageInfo::mountedVolumes()) {
|
||||||
if (storage.isReadOnly())
|
if (storage.isReadOnly())
|
||||||
qDebug() << "isReadOnly:" << storage.isReadOnly();
|
qDebug() << "isReadOnly:" << storage.isReadOnly();
|
||||||
@@ -205,7 +243,7 @@ void MachineInfo::send_info_to_debug()
|
|||||||
}
|
}
|
||||||
|
|
||||||
QStorageInfo storage(qApp->applicationDirPath());
|
QStorageInfo storage(qApp->applicationDirPath());
|
||||||
|
|
||||||
if (storage.isReadOnly())
|
if (storage.isReadOnly())
|
||||||
qDebug() << "isReadOnly:" << storage.isReadOnly();
|
qDebug() << "isReadOnly:" << storage.isReadOnly();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user