diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index d38bd5e8..c076d80a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -15,12 +15,15 @@ repos: - id: check-yaml args: [--allow-multiple-documents] - id: check-json + - id: check-symlinks + - id: destroyed-symlinks + - id: check-executables-have-shebangs - repo: https://github.com/pre-commit/mirrors-clang-format - rev: v17.0.3 + rev: v17.0.6 hooks: - id: clang-format - repo: https://github.com/PyCQA/pylint - rev: v3.0.1 + rev: v3.0.3 hooks: - id: pylint exclude: ^(.cmake-format.py|conan/conanfile.py|scripts/genignore.py) diff --git a/src/KDChart/KDChartAttributesModel.cpp b/src/KDChart/KDChartAttributesModel.cpp index a9fe7726..ff5fbeeb 100644 --- a/src/KDChart/KDChartAttributesModel.cpp +++ b/src/KDChart/KDChartAttributesModel.cpp @@ -247,7 +247,7 @@ QVariant AttributesModel::defaultHeaderData(int section, Qt::Orientation orienta switch (role) { case Qt::DisplayRole: // TODO for KDChart 3.0: return QString::number( dataset + 1 ); - return QString{QLatin1String(orientation == Qt::Vertical ? "Series " : "Item ") + QString::number(dataset)}; + return QString {QLatin1String(orientation == Qt::Vertical ? "Series " : "Item ") + QString::number(dataset)}; case KDChart::DatasetBrushRole: return d->palette.getBrush(dataset); case KDChart::DatasetPenRole: