Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package kqtquickcharts for openSUSE:Factory checked in at 2025-08-16 20:38:34 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/kqtquickcharts (Old) and /work/SRC/openSUSE:Factory/.kqtquickcharts.new.1085 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "kqtquickcharts" Sat Aug 16 20:38:34 2025 rev:138 rq:1299678 version:25.08.0 Changes: -------- --- /work/SRC/openSUSE:Factory/kqtquickcharts/kqtquickcharts.changes 2025-07-06 17:15:37.970129356 +0200 +++ /work/SRC/openSUSE:Factory/.kqtquickcharts.new.1085/kqtquickcharts.changes 2025-08-16 20:42:13.995329767 +0200 @@ -1,0 +2,25 @@ +Fri Aug 8 07:47:51 UTC 2025 - Christophe Marin <christo...@krop.fr> + +- Update to 25.08.0 + * New feature release + * For more details please see: + * https://kde.org/announcements/gear/25.08.0/ +- Changes since 25.07.80: + * Fix the version and dependency of the cmake config file + +------------------------------------------------------------------- +Mon Jul 14 14:25:37 UTC 2025 - Christophe Marin <christo...@krop.fr> + +- Update to 25.07.80 + * New feature release +- Changes since 25.04.3: + * Drop Qt5 support + * Use the m_minorTickSize/m_majorTickSize variables + * Make demo work with Qt6 + * Adapt build system to support Qt6 builds as well + * Port away from foreach() + * Adapt to QQmlListProperty API changes + * Add missing include + * Add moc includes to avoid incomplete type erros from moc in Qt 6 + +------------------------------------------------------------------- Old: ---- kqtquickcharts-25.04.3.tar.xz kqtquickcharts-25.04.3.tar.xz.sig New: ---- kqtquickcharts-25.08.0.tar.xz kqtquickcharts-25.08.0.tar.xz.sig ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ kqtquickcharts.spec ++++++ --- /var/tmp/diff_new_pack.WyqWHt/_old 2025-08-16 20:42:14.463349190 +0200 +++ /var/tmp/diff_new_pack.WyqWHt/_new 2025-08-16 20:42:14.463349190 +0200 @@ -1,7 +1,7 @@ # # spec file for package kqtquickcharts # -# Copyright (c) 2025 SUSE LLC +# Copyright (c) 2025 SUSE LLC and contributors # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,9 +16,12 @@ # +%define kf6_version 6.14.0 +%define qt6_version 6.5.0 +# %bcond_without released Name: kqtquickcharts -Version: 25.04.3 +Version: 25.08.0 Release: 0 Summary: Plugin to render beautiful and interactive graphs License: LGPL-2.1-or-later @@ -28,11 +31,11 @@ Source1: https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz.sig Source2: applications.keyring %endif -BuildRequires: extra-cmake-modules -BuildRequires: kf5-filesystem -BuildRequires: cmake(Qt5Gui) -BuildRequires: cmake(Qt5Qml) -BuildRequires: cmake(Qt5Quick) +BuildRequires: kf6-extra-cmake-modules >= %{kf6_version} +BuildRequires: kf6-filesystem +BuildRequires: cmake(Qt6Gui) >= %{qt6_version} +BuildRequires: cmake(Qt6Qml) >= %{qt6_version} +BuildRequires: cmake(Qt6Quick) >= %{qt6_version} %description A QtQuick plugin to render beautiful and interactive graphs. @@ -41,15 +44,16 @@ %autosetup -p1 %build - %cmake_kf5 -d build - %cmake_build +%cmake_kf6 + +%kf6_build %install - %kf5_makeinstall -C build +%kf6_install %files -%license COPYING* -%{_kf5_includedir}/kqtquickcharts_version.h -%{_kf5_cmakedir}/KQtQuickCharts/ -%{_kf5_qmldir}/ +%license LICENSES/* +%{_kf6_includedir}/kqtquickcharts_version.h +%{_kf6_cmakedir}/KQtQuickCharts/ +%{_kf6_qmldir}/org/kde/charts/ ++++++ kqtquickcharts-25.04.3.tar.xz -> kqtquickcharts-25.08.0.tar.xz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kqtquickcharts-25.04.3/.gitlab-ci.yml new/kqtquickcharts-25.08.0/.gitlab-ci.yml --- old/kqtquickcharts-25.04.3/.gitlab-ci.yml 2024-01-10 14:00:42.000000000 +0100 +++ new/kqtquickcharts-25.08.0/.gitlab-ci.yml 2025-08-02 12:44:30.000000000 +0200 @@ -4,5 +4,5 @@ include: - project: sysadmin/ci-utilities file: - - /gitlab-templates/linux.yml - - /gitlab-templates/freebsd.yml + - /gitlab-templates/linux-qt6.yml + - /gitlab-templates/freebsd-qt6.yml diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kqtquickcharts-25.04.3/.kde-ci.yml new/kqtquickcharts-25.08.0/.kde-ci.yml --- old/kqtquickcharts-25.04.3/.kde-ci.yml 2024-01-10 14:00:42.000000000 +0100 +++ new/kqtquickcharts-25.08.0/.kde-ci.yml 2025-08-02 12:44:30.000000000 +0200 @@ -4,7 +4,7 @@ Dependencies: - 'on': ['@all'] 'require': - 'frameworks/extra-cmake-modules': '@stable' + 'frameworks/extra-cmake-modules': '@latest-kf6' Options: require-passing-tests-on: [ 'Linux', 'FreeBSD' ] diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kqtquickcharts-25.04.3/CMakeLists.txt new/kqtquickcharts-25.08.0/CMakeLists.txt --- old/kqtquickcharts-25.04.3/CMakeLists.txt 2024-01-10 14:00:42.000000000 +0100 +++ new/kqtquickcharts-25.08.0/CMakeLists.txt 2025-08-02 12:44:30.000000000 +0200 @@ -3,17 +3,20 @@ project(KQtQuickCharts) # Dependencies -find_package(ECM 1.1.0 REQUIRED NO_MODULE) set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} ) -set(REQUIRED_QT_VERSION "5.2.0") -set(KF5_MIN_VERSION "5.1.0") # handled by release scripts -set(KF5_DEP_VERSION "5.1.0") # handled by release scripts +set(REQUIRED_QT_VERSION "6.5.0") +set(KF_MIN_VERSION "6.0.0") # handled by release scripts + +find_package(ECM ${KF_MIN_VERSION} REQUIRED NO_MODULE) +set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} ${CMAKE_SOURCE_DIR}/cmake) -find_package(Qt5 ${REQUIRED_QT_VERSION} NO_MODULE REQUIRED Qml Quick Gui) include(KDEInstallDirs) -include(KDEFrameworkCompilerSettings) +include(KDECompilerSettings) include(KDECMakeSettings) +set(CMAKE_CXX_STANDARD 17) + +find_package(Qt6 ${REQUIRED_QT_VERSION} NO_MODULE REQUIRED Qml Quick Gui) ######################################################################### @@ -36,10 +39,10 @@ # ECM setup ecm_setup_version( - ${KF5_MIN_VERSION} + ${KF_MIN_VERSION} VARIABLE_PREFIX KQTQUICKCHARTS VERSION_HEADER "${CMAKE_CURRENT_BINARY_DIR}/kqtquickcharts_version.h" - PACKAGE_VERSION_FILE "${CMAKE_CURRENT_BINARY_DIR}/KQtQuickChartsVersion.cmake" + PACKAGE_VERSION_FILE "${CMAKE_CURRENT_BINARY_DIR}/KQtQuickChartsConfigVersion.cmake" SOVERSION 1) #add_subdirectory(autotests) @@ -60,8 +63,8 @@ ) install(FILES - "${CMAKE_CURRENT_BINARY_DIR}/KQtQuickChartsConfig.cmake" - "${CMAKE_CURRENT_BINARY_DIR}/KQtQuickChartsVersion.cmake" + "${CMAKE_CURRENT_BINARY_DIR}/KQtQuickChartsConfig.cmake" + "${CMAKE_CURRENT_BINARY_DIR}/KQtQuickChartsConfigVersion.cmake" DESTINATION "${CMAKECONFIG_INSTALL_DIR}" COMPONENT Devel ) @@ -76,7 +79,7 @@ install(FILES "${CMAKE_CURRENT_BINARY_DIR}/kqtquickcharts_version.h" - DESTINATION "${KDE_INSTALL_INCLUDEDIR_KF5}" + DESTINATION "${KDE_INSTALL_INCLUDEDIR_KF}" COMPONENT Devel ) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kqtquickcharts-25.04.3/KQtQuickChartsConfig.cmake.in new/kqtquickcharts-25.08.0/KQtQuickChartsConfig.cmake.in --- old/kqtquickcharts-25.04.3/KQtQuickChartsConfig.cmake.in 2024-01-10 14:00:42.000000000 +0100 +++ new/kqtquickcharts-25.08.0/KQtQuickChartsConfig.cmake.in 2025-08-02 12:44:30.000000000 +0200 @@ -4,6 +4,6 @@ @PACKAGE_INIT@ include(CMakeFindDependencyMacro) -find_dependency(Qt5Gui @REQUIRED_QT_VERSION@) -find_dependency(Qt5Quick @REQUIRED_QT_VERSION@) -find_dependency(Qt5Qml @REQUIRED_QT_VERSION@) +find_dependency(Qt6Gui @REQUIRED_QT_VERSION@) +find_dependency(Qt6Quick @REQUIRED_QT_VERSION@) +find_dependency(Qt6Qml @REQUIRED_QT_VERSION@) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kqtquickcharts-25.04.3/demo/dynamicdata/ValueEdit.qml new/kqtquickcharts-25.08.0/demo/dynamicdata/ValueEdit.qml --- old/kqtquickcharts-25.04.3/demo/dynamicdata/ValueEdit.qml 2024-01-10 14:00:42.000000000 +0100 +++ new/kqtquickcharts-25.08.0/demo/dynamicdata/ValueEdit.qml 2025-08-02 12:44:30.000000000 +0200 @@ -18,7 +18,7 @@ */ import QtQuick 2.2 -import QtQuick.Controls 1.2 +import QtQuick.Controls Rectangle { color: "#ddd" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kqtquickcharts-25.04.3/demo/dynamicdata/main.qml new/kqtquickcharts-25.08.0/demo/dynamicdata/main.qml --- old/kqtquickcharts-25.04.3/demo/dynamicdata/main.qml 2024-01-10 14:00:42.000000000 +0100 +++ new/kqtquickcharts-25.08.0/demo/dynamicdata/main.qml 2025-08-02 12:44:30.000000000 +0200 @@ -18,7 +18,7 @@ */ import QtQuick 2.2 -import QtQuick.Controls 1.2 +import QtQuick.Controls import org.kde.charts 0.1 Column { diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kqtquickcharts-25.04.3/src/CMakeLists.txt new/kqtquickcharts-25.08.0/src/CMakeLists.txt --- old/kqtquickcharts-25.04.3/src/CMakeLists.txt 2024-01-10 14:00:42.000000000 +0100 +++ new/kqtquickcharts-25.08.0/src/CMakeLists.txt 2025-08-02 12:44:30.000000000 +0200 @@ -21,10 +21,10 @@ target_link_libraries(kqtquickcharts - Qt5::Core - Qt5::Quick - Qt5::Qml - Qt5::Gui + Qt6::Core + Qt6::Quick + Qt6::Qml + Qt6::Gui ) install(TARGETS kqtquickcharts DESTINATION ${KDE_INSTALL_QMLDIR}/org/kde/charts) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kqtquickcharts-25.04.3/src/barchartcore.cpp new/kqtquickcharts-25.08.0/src/barchartcore.cpp --- old/kqtquickcharts-25.04.3/src/barchartcore.cpp 2024-01-10 14:00:42.000000000 +0100 +++ new/kqtquickcharts-25.08.0/src/barchartcore.cpp 2025-08-02 12:44:30.000000000 +0200 @@ -34,3 +34,5 @@ { paintAxisAndLines(painter, 0.0); } + +#include "moc_barchartcore.cpp" \ No newline at end of file diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kqtquickcharts-25.04.3/src/barchartsegment.cpp new/kqtquickcharts-25.08.0/src/barchartsegment.cpp --- old/kqtquickcharts-25.04.3/src/barchartsegment.cpp 2024-01-10 14:00:42.000000000 +0100 +++ new/kqtquickcharts-25.08.0/src/barchartsegment.cpp 2025-08-02 12:44:30.000000000 +0200 @@ -141,3 +141,5 @@ return false; return true; } + +#include "moc_barchartsegment.cpp" \ No newline at end of file diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kqtquickcharts-25.04.3/src/chartcore.cpp new/kqtquickcharts-25.08.0/src/chartcore.cpp --- old/kqtquickcharts-25.04.3/src/chartcore.cpp 2024-01-10 14:00:42.000000000 +0100 +++ new/kqtquickcharts-25.08.0/src/chartcore.cpp 2025-08-02 12:44:30.000000000 +0200 @@ -144,7 +144,7 @@ } } -int ChartCore::countDimensions(QQmlListProperty<Dimension>* list) { +qsizetype ChartCore::countDimensions(QQmlListProperty<Dimension>* list) { ChartCore* chartCore = qobject_cast<ChartCore*>(list->object); if (chartCore) { return chartCore->m_dimensions.count(); @@ -152,7 +152,7 @@ return -1; } -Dimension* ChartCore::dimensionAt(QQmlListProperty<Dimension>* list, int index) { +Dimension* ChartCore::dimensionAt(QQmlListProperty<Dimension>* list, qsizetype index) { ChartCore* chartCore = qobject_cast<ChartCore*>(list->object); if (chartCore) { return chartCore->m_dimensions.at(index); @@ -163,7 +163,7 @@ void ChartCore::clearDimensions(QQmlListProperty<Dimension>* list) { ChartCore* chartCore = qobject_cast<ChartCore*>(list->object); if (chartCore) { - foreach (Dimension* dimension, chartCore->m_dimensions) + for (Dimension* dimension : std::as_const(chartCore->m_dimensions)) { dimension->disconnect(chartCore); } @@ -171,3 +171,5 @@ chartCore->triggerUpdate(); } } + +#include "moc_chartcore.cpp" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kqtquickcharts-25.04.3/src/chartcore.h new/kqtquickcharts-25.08.0/src/chartcore.h --- old/kqtquickcharts-25.04.3/src/chartcore.h 2024-01-10 14:00:42.000000000 +0100 +++ new/kqtquickcharts-25.08.0/src/chartcore.h 2025-08-02 12:44:30.000000000 +0200 @@ -56,8 +56,8 @@ void paintAxisAndLines(QPainter* painter, qreal offset); private: static void appendDimension(QQmlListProperty<Dimension>* list, Dimension* dimension); - static int countDimensions(QQmlListProperty<Dimension>* list); - static Dimension* dimensionAt(QQmlListProperty<Dimension>* list, int index); + static qsizetype countDimensions(QQmlListProperty<Dimension>* list); + static Dimension* dimensionAt(QQmlListProperty<Dimension>* list, qsizetype index); static void clearDimensions(QQmlListProperty<Dimension>* list); QAbstractTableModel* m_model; QList<Dimension*> m_dimensions; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kqtquickcharts-25.04.3/src/chartforegroundpainter.cpp new/kqtquickcharts-25.08.0/src/chartforegroundpainter.cpp --- old/kqtquickcharts-25.04.3/src/chartforegroundpainter.cpp 2024-01-10 14:00:42.000000000 +0100 +++ new/kqtquickcharts-25.08.0/src/chartforegroundpainter.cpp 2025-08-02 12:44:30.000000000 +0200 @@ -101,3 +101,5 @@ update(); } + +#include "moc_chartforegroundpainter.cpp" \ No newline at end of file diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kqtquickcharts-25.04.3/src/chartmodel.cpp new/kqtquickcharts-25.08.0/src/chartmodel.cpp --- old/kqtquickcharts-25.04.3/src/chartmodel.cpp 2024-01-10 14:00:42.000000000 +0100 +++ new/kqtquickcharts-25.08.0/src/chartmodel.cpp 2025-08-02 12:44:30.000000000 +0200 @@ -139,7 +139,7 @@ } } -int ChartModel::countRecords(QQmlListProperty<Record>* list) +qsizetype ChartModel::countRecords(QQmlListProperty<Record>* list) { ChartModel* chartModel = qobject_cast<ChartModel*>(list->object); if (chartModel) @@ -149,7 +149,7 @@ return -1; } -Record* ChartModel::recordAt(QQmlListProperty<Record>* list, int index) +Record* ChartModel::recordAt(QQmlListProperty<Record>* list, qsizetype index) { ChartModel* chartModel = qobject_cast<ChartModel*>(list->object); if (chartModel) @@ -169,3 +169,5 @@ emit chartModel->rowsChanged(); } } + +#include "moc_chartmodel.cpp" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kqtquickcharts-25.04.3/src/chartmodel.h new/kqtquickcharts-25.08.0/src/chartmodel.h --- old/kqtquickcharts-25.04.3/src/chartmodel.h 2024-01-10 14:00:42.000000000 +0100 +++ new/kqtquickcharts-25.08.0/src/chartmodel.h 2025-08-02 12:44:30.000000000 +0200 @@ -56,8 +56,8 @@ private: void insertRecord(int row, Record* record); static void appendRecord(QQmlListProperty<Record>* list, Record* record); - static int countRecords(QQmlListProperty<Record>* list); - static Record* recordAt(QQmlListProperty<Record>* list, int index); + static qsizetype countRecords(QQmlListProperty<Record>* list); + static Record* recordAt(QQmlListProperty<Record>* list, qsizetype index); static void clearRecords(QQmlListProperty<Record>* list); QList<Record*> m_records; int m_columns; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kqtquickcharts-25.04.3/src/chartplugin.cpp new/kqtquickcharts-25.08.0/src/chartplugin.cpp --- old/kqtquickcharts-25.04.3/src/chartplugin.cpp 2024-01-10 14:00:42.000000000 +0100 +++ new/kqtquickcharts-25.08.0/src/chartplugin.cpp 2025-08-02 12:44:30.000000000 +0200 @@ -60,3 +60,5 @@ qmlRegisterUncreatableType<QAbstractTableModel>(uri, 0, 1, "QAbstractTableModel", QStringLiteral("abstract class")); } + +#include "moc_chartplugin.cpp" \ No newline at end of file diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kqtquickcharts-25.04.3/src/dimension.cpp new/kqtquickcharts-25.08.0/src/dimension.cpp --- old/kqtquickcharts-25.04.3/src/dimension.cpp 2024-01-10 14:00:42.000000000 +0100 +++ new/kqtquickcharts-25.08.0/src/dimension.cpp 2025-08-02 12:44:30.000000000 +0200 @@ -189,3 +189,5 @@ emit lineStyleChanged(); } } + +#include "moc_dimension.cpp" \ No newline at end of file diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kqtquickcharts-25.04.3/src/linechartbackgroundpainter.cpp new/kqtquickcharts-25.08.0/src/linechartbackgroundpainter.cpp --- old/kqtquickcharts-25.04.3/src/linechartbackgroundpainter.cpp 2024-01-10 14:00:42.000000000 +0100 +++ new/kqtquickcharts-25.08.0/src/linechartbackgroundpainter.cpp 2025-08-02 12:44:30.000000000 +0200 @@ -118,12 +118,12 @@ { m_linePolygons.clear(); - QList<Dimension*> dimensions = m_lineChartCore->dimensionsList(); + const QList<Dimension*> dimensions = m_lineChartCore->dimensionsList(); QAbstractTableModel* model = m_lineChartCore->model(); const qreal pitch = m_lineChartCore->pitch(); const qreal radius = m_lineChartCore->pointRadius(); - foreach(Dimension* dimension, dimensions) + for (Dimension* dimension : dimensions) { const int column = dimension->dataColumn(); const qreal minValue = dimension->minimumValue(); @@ -149,4 +149,5 @@ emit linePolygonsUpdated(); } +#include "moc_linechartbackgroundpainter.cpp" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kqtquickcharts-25.04.3/src/linechartcore.cpp new/kqtquickcharts-25.08.0/src/linechartcore.cpp --- old/kqtquickcharts-25.04.3/src/linechartcore.cpp 2024-01-10 14:00:42.000000000 +0100 +++ new/kqtquickcharts-25.08.0/src/linechartcore.cpp 2025-08-02 12:44:30.000000000 +0200 @@ -44,3 +44,5 @@ { paintAxisAndLines(painter, m_pointRadius); } + +#include "moc_linechartcore.cpp" \ No newline at end of file diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kqtquickcharts-25.04.3/src/linechartpainter.cpp new/kqtquickcharts-25.08.0/src/linechartpainter.cpp --- old/kqtquickcharts-25.04.3/src/linechartpainter.cpp 2024-01-10 14:00:42.000000000 +0100 +++ new/kqtquickcharts-25.08.0/src/linechartpainter.cpp 2025-08-02 12:44:30.000000000 +0200 @@ -118,3 +118,5 @@ { setWidth(backgroundPainter()->width()); } + +#include "moc_linechartpainter.cpp" \ No newline at end of file diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kqtquickcharts-25.04.3/src/linechartpoint.cpp new/kqtquickcharts-25.08.0/src/linechartpoint.cpp --- old/kqtquickcharts-25.04.3/src/linechartpoint.cpp 2024-01-10 14:00:42.000000000 +0100 +++ new/kqtquickcharts-25.08.0/src/linechartpoint.cpp 2025-08-02 12:44:30.000000000 +0200 @@ -178,3 +178,5 @@ return false; return true; } + +#include "moc_linechartpoint.cpp" \ No newline at end of file diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kqtquickcharts-25.04.3/src/record.cpp new/kqtquickcharts-25.08.0/src/record.cpp --- old/kqtquickcharts-25.04.3/src/record.cpp 2024-01-10 14:00:42.000000000 +0100 +++ new/kqtquickcharts-25.08.0/src/record.cpp 2025-08-02 12:44:30.000000000 +0200 @@ -55,3 +55,5 @@ m_values[column] = value; emit valuesChanged(this); } + +#include "moc_record.cpp" \ No newline at end of file diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kqtquickcharts-25.04.3/src/xychartbackgroundpainter.cpp new/kqtquickcharts-25.08.0/src/xychartbackgroundpainter.cpp --- old/kqtquickcharts-25.04.3/src/xychartbackgroundpainter.cpp 2024-01-10 14:00:42.000000000 +0100 +++ new/kqtquickcharts-25.08.0/src/xychartbackgroundpainter.cpp 2025-08-02 12:44:30.000000000 +0200 @@ -85,12 +85,12 @@ m_linePolygons.clear(); Dimension* xAxis = m_xyChartCore->xAxis(); - QList<Dimension*> dimensions = m_xyChartCore->dimensionsList(); + const QList<Dimension*> dimensions = m_xyChartCore->dimensionsList(); QAbstractTableModel* model = m_xyChartCore->model(); const int xAxisColumn = xAxis->dataColumn(); - foreach(Dimension* dimension, dimensions) + for (Dimension* dimension : dimensions) { const int column = dimension->dataColumn(); QPolygonF line; @@ -110,3 +110,5 @@ emit linePolygonsUpdated(); } + +#include "moc_xychartbackgroundpainter.cpp" \ No newline at end of file diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kqtquickcharts-25.04.3/src/xychartcore.cpp new/kqtquickcharts-25.08.0/src/xychartcore.cpp --- old/kqtquickcharts-25.04.3/src/xychartcore.cpp 2024-01-10 14:00:42.000000000 +0100 +++ new/kqtquickcharts-25.08.0/src/xychartcore.cpp 2025-08-02 12:44:30.000000000 +0200 @@ -18,6 +18,7 @@ */ #include "xychartcore.h" +#include <QLocale> #include <QPainter> #include <QAbstractTableModel> #include <assert.h> @@ -128,13 +129,13 @@ void XYChartCore::paintGrid(QPainter* painter) { - foreach(qreal label, m_xAxisLabels) + for (qreal label : std::as_const(m_xAxisLabels)) { const qreal x = translatePoint(QPointF(label, 0.0)).x(); painter->drawLine(x, m_lowerLeftCorner.y(), x, m_lowerLeftCorner.y() - m_graphHeight); } - foreach(qreal label, m_yAxisLabels) + for (qreal label : std::as_const(m_yAxisLabels)) { const qreal y = translatePoint(QPointF(0.0, label)).y(); painter->drawLine(m_lowerLeftCorner.x(), y, m_lowerLeftCorner.x() + m_graphWidth, y); @@ -143,7 +144,7 @@ void XYChartCore::paintTicks(QPainter* painter) { - int tick = 2, tock = 4; + const int tick = m_minorTickSize, tock = m_majorTickSize; qreal label; QPointF point; @@ -179,7 +180,7 @@ void XYChartCore::paintAxisLabels(QPainter* painter) { int labelHeight = painter->fontMetrics().tightBoundingRect(QStringLiteral("0123456789")).height(); - foreach(qreal label, m_xAxisLabels) + for (qreal label : std::as_const(m_xAxisLabels)) { QString strLabel = formatLabel(label, xAxis()); int labelWidth = painter->fontMetrics().boundingRect(strLabel).width(); @@ -187,7 +188,7 @@ painter->drawText(point.x() - labelWidth / 2, point.y() + labelHeight + m_margin, strLabel); } - foreach(qreal label, m_yAxisLabels) + for (qreal label : std::as_const(m_yAxisLabels)) { QString strLabel = formatLabel(label, yAxis()); int labelWidth = painter->fontMetrics().boundingRect(strLabel).width(); @@ -205,7 +206,7 @@ const qreal maxKey = model()->data(model()->index(row, xAxis()->dataColumn())).toReal(); const qreal x = translatePoint(QPointF(maxKey, 0.0)).x(); - foreach(Dimension* dimension, dimensionsList()) + for (Dimension* dimension : dimensionsList()) { const QString label = dimension->label(); if (label.isEmpty()) @@ -392,3 +393,5 @@ axisLabelCountGoalChanged(); } } + +#include "moc_xychartcore.cpp" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kqtquickcharts-25.04.3/src/xychartpainter.cpp new/kqtquickcharts-25.08.0/src/xychartpainter.cpp --- old/kqtquickcharts-25.04.3/src/xychartpainter.cpp 2024-01-10 14:00:42.000000000 +0100 +++ new/kqtquickcharts-25.08.0/src/xychartpainter.cpp 2025-08-02 12:44:30.000000000 +0200 @@ -124,3 +124,5 @@ update(); } + +#include "moc_xychartpainter.cpp" \ No newline at end of file diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kqtquickcharts-25.04.3/src/xychartpoint.cpp new/kqtquickcharts-25.08.0/src/xychartpoint.cpp --- old/kqtquickcharts-25.04.3/src/xychartpoint.cpp 2024-01-10 14:00:42.000000000 +0100 +++ new/kqtquickcharts-25.08.0/src/xychartpoint.cpp 2025-08-02 12:44:30.000000000 +0200 @@ -197,3 +197,5 @@ return false; return true; } + +#include "moc_xychartpoint.cpp" \ No newline at end of file