diff --git a/libnymea-core/debugreportgenerator.cpp b/libnymea-core/debugreportgenerator.cpp index b8318103..c0f87598 100644 --- a/libnymea-core/debugreportgenerator.cpp +++ b/libnymea-core/debugreportgenerator.cpp @@ -33,6 +33,7 @@ #include #include #include +#include namespace nymeaserver { @@ -167,7 +168,11 @@ void DebugReportGenerator::saveSystemInformation() stream << "Command: " << QCoreApplication::arguments().join(' ') << endl; stream << "Qt runtime version: " << qVersion() << endl; stream << "" << endl; +#if (QT_VERSION < QT_VERSION_CHECK(5, 6, 0)) + stream << "Hostname: " << QHostInfo::localHostName() << endl; +#else stream << "Hostname: " << QSysInfo::machineHostName() << endl; +#endif stream << "Architecture: " << QSysInfo::currentCpuArchitecture() << endl; stream << "Kernel type: " << QSysInfo::kernelType() << endl; stream << "Kernel version: " << QSysInfo::kernelVersion() << endl; diff --git a/libnymea-core/debugreportgenerator.h b/libnymea-core/debugreportgenerator.h index a34e6fd6..7d14787a 100644 --- a/libnymea-core/debugreportgenerator.h +++ b/libnymea-core/debugreportgenerator.h @@ -34,7 +34,6 @@ public: explicit DebugReportGenerator(QObject *parent = nullptr); ~DebugReportGenerator(); - QByteArray reportFileData() const; QString reportFileName(); QString md5Sum() const;