mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-07-30 16:04:12 +02:00
9e070f9bce
Requested in #553 to compare Qt5 and Qt6 builds. QET already reports how long the elements collection takes to load (ElementsCollectionWidget:: reload); this adds the equivalent for opening a project. The phases are reported separately rather than as a single total. Reading the XML and building the objects is mostly independent of the Qt version, whereas refreshing the diagrams is graphics-scene work -- a single number would mix the two and could suggest a Qt version makes no difference when the part that changed is simply not where the time goes. Measured on the example projects, XML parsing is 3-7% of the total and diagram construction 77-83%, so the distinction matters in practice. QETProject::openFile() reports the total with the parse/build split, and readProjectXml() reports the build phases: Project content built in 1.391 seconds (elements collection 0.009, diagrams 1.153, terminal strips 0, refresh 0.196, database 0.033) Project "example.qet" (3399 KiB) opened in 1.505 seconds (xml parsing 0.11, content 1.395) Logged with qInfo(), matching the existing collection timer, so it lands in the normal log without a debug build. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>