diff --git a/src/common/KReportData.h b/src/common/KReportData.h --- a/src/common/KReportData.h +++ b/src/common/KReportData.h @@ -111,10 +111,10 @@ //! Returns dataSources() by default virtual QStringList dataSourceNames() const; - //! Allow a driver to create a new instance with a new data source - //! source is a driver specific identifier - //! Owner of the returned pointer is the caller - virtual KReportData* data(const QString &source); + //! Creates a new instance with data source. Default implementation returns @c nullptr. + //! @a source is a driver-specific identifier. + //! Owner of the returned pointer is the caller. + virtual KReportData* create(const QString &source); }; #endif diff --git a/src/common/KReportData.cpp b/src/common/KReportData.cpp --- a/src/common/KReportData.cpp +++ b/src/common/KReportData.cpp @@ -72,7 +72,7 @@ return dataSources(); } -KReportData* KReportData::data(const QString &source) +KReportData* KReportData::create(const QString &source) { Q_UNUSED(source); return 0; diff --git a/src/plugins/chart/KReportItemChart.cpp b/src/plugins/chart/KReportItemChart.cpp --- a/src/plugins/chart/KReportItemChart.cpp +++ b/src/plugins/chart/KReportItemChart.cpp @@ -235,7 +235,7 @@ QString src = m_dataSource->value().toString(); if (!src.isEmpty()) { - KReportData *curs = m_reportData->data(src); + KReportData *curs = m_reportData->create(src); if (curs) { const QStringList keys = m_links.keys(); foreach(const QString& field, keys) { diff --git a/src/renderer/KReportPage.h b/src/renderer/KReportPage.h --- a/src/renderer/KReportPage.h +++ b/src/renderer/KReportPage.h @@ -38,6 +38,7 @@ ~KReportPage(); + //! Renders page @a page (counted from 1). void renderPage(int page); public Q_SLOTS: