QT6: QLibraryInfo

This commit is contained in:
Simon De Backer 2020-10-03 15:51:53 +02:00
parent ad0df66ab1
commit a0b95ee944

View File

@ -77,6 +77,10 @@ void Machine_info::send_info_to_debug()
<< QLibraryInfo::location(QLibraryInfo::ExamplesPath); << QLibraryInfo::location(QLibraryInfo::ExamplesPath);
qInfo()<< "Qt library location Qt testcases:" qInfo()<< "Qt library location Qt testcases:"
<< QLibraryInfo::location(QLibraryInfo::TestsPath); << QLibraryInfo::location(QLibraryInfo::TestsPath);
#ifndef Q_OS_WIN
qInfo()<< "Qt library location Qt settings:"
<< QLibraryInfo::location(QLibraryInfo::SettingsPath);
#endif
#else #else
#if TODO_LIST #if TODO_LIST
#pragma message("@TODO remove code for QT 6 or later") #pragma message("@TODO remove code for QT 6 or later")
@ -109,10 +113,10 @@ void Machine_info::send_info_to_debug()
<< QLibraryInfo::path(QLibraryInfo::ExamplesPath); << QLibraryInfo::path(QLibraryInfo::ExamplesPath);
qInfo()<< "Qt library path Qt testcases:" qInfo()<< "Qt library path Qt testcases:"
<< QLibraryInfo::path(QLibraryInfo::TestsPath); << QLibraryInfo::path(QLibraryInfo::TestsPath);
#endif
#ifndef Q_OS_WIN #ifndef Q_OS_WIN
qInfo()<< "Qt library location Qt settings:" qInfo()<< "Qt library path Qt settings:"
<< QLibraryInfo::location(QLibraryInfo::SettingsPath); << QLibraryInfo::path(QLibraryInfo::SettingsPath);
#endif
#endif #endif
qInfo()<< "GitRevision " + QString(GIT_COMMIT_SHA); qInfo()<< "GitRevision " + QString(GIT_COMMIT_SHA);
qInfo()<< "QElectroTech V " + QET::displayedVersion; qInfo()<< "QElectroTech V " + QET::displayedVersion;