From fea4752a066ad4b34acba84c91f4f80d405c83d9 Mon Sep 17 00:00:00 2001 From: scorpio810 Date: Fri, 17 Jul 2026 07:42:34 +0000 Subject: [PATCH] Fix remaining Qt6 build errors after PR #540 - qetxml.h: add missing include (used in propertyUuid/ createXmlProperty signatures but never included directly). - machine_info.cpp: fix ambiguous QString/int operator> in send_info_to_debug() for it1/it2/it3; just count every matching file found instead of the meaningless comparison. --- sources/machine_info.cpp | 12 +++--------- sources/qetxml.h | 1 + 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/sources/machine_info.cpp b/sources/machine_info.cpp index fce3c93a1..905564213 100644 --- a/sources/machine_info.cpp +++ b/sources/machine_info.cpp @@ -192,10 +192,8 @@ void MachineInfo::send_info_to_debug() QDirIterator it1(QETApp::commonElementsDir().toLatin1(),nameFilters, QDir::Files, QDirIterator::Subdirectories); while (it1.hasNext()) { - if(it1.next() > 0 ) - { + it1.next(); commomElementsDir ++; - } } qInfo()<< " Common Elements count:"<< commomElementsDir << "Elements"; @@ -204,10 +202,8 @@ void MachineInfo::send_info_to_debug() QDirIterator it2(QETApp::customElementsDir().toLatin1(), nameFilters, QDir::Files, QDirIterator::Subdirectories); while (it2.hasNext()) { - if(it2.next() > 0 ) - { + it2.next(); customElementsDir ++; - } } qInfo()<< " Custom Elements count:"<< customElementsDir << "Elements"; @@ -215,10 +211,8 @@ void MachineInfo::send_info_to_debug() QDirIterator it3(QETApp::companyElementsDir().toLatin1(), nameFilters, QDir::Files, QDirIterator::Subdirectories); while (it3.hasNext()) { - if(it3.next() > 0 ) - { + it3.next(); companyElementsDir ++; - } } qInfo()<< " Company Elements count:"<< companyElementsDir << "Elements"; diff --git a/sources/qetxml.h b/sources/qetxml.h index f119fa3a4..cdc5ae394 100644 --- a/sources/qetxml.h +++ b/sources/qetxml.h @@ -20,6 +20,7 @@ #include #include +#include class QDomDocument; class QDir;