Fixed typo in function name

This commit is contained in:
Digital Artifex
2026-06-16 21:55:43 -04:00
parent 8b497d9496
commit 3137318976
2 changed files with 51 additions and 3 deletions
+2 -2
View File
@@ -38,7 +38,7 @@ NewestPacksModel::NewestPacksModel(QObject *parent) : QAbstractListModel{parent}
notifier, notifier,
&PaginationNotifier::dataChanged, &PaginationNotifier::dataChanged,
this, this,
&NewestPacksModel::restDataModel &NewestPacksModel::resetDataModel
); );
} }
@@ -149,7 +149,7 @@ auto NewestPacksModel::resetState() -> void
setState(Idle); setState(Idle);
} }
auto NewestPacksModel::restDataModel() -> void auto NewestPacksModel::resetDataModel() -> void
{ {
//invalidate previous model data //invalidate previous model data
beginRemoveRows(QModelIndex(), 0, m_data.count()); beginRemoveRows(QModelIndex(), 0, m_data.count());
+49 -1
View File
@@ -78,6 +78,12 @@ public:
explicit NewestPacksModel(QObject *parent = nullptr); explicit NewestPacksModel(QObject *parent = nullptr);
/**
* @brief rowCount
* @param parent
* @return
*/
[[nodiscard]]
auto rowCount(const QModelIndex &parent = QModelIndex()) const -> int override; auto rowCount(const QModelIndex &parent = QModelIndex()) const -> int override;
/** /**
@@ -88,6 +94,7 @@ public:
* @param role * @param role
* @return * @return
*/ */
[[nodiscard]]
auto data( auto data(
const QModelIndex &index, const QModelIndex &index,
int role = Qt::DisplayRole int role = Qt::DisplayRole
@@ -102,6 +109,7 @@ public:
* @param parent * @param parent
* @return * @return
*/ */
[[nodiscard]]
auto index( auto index(
int row, int row,
int column, int column,
@@ -115,6 +123,7 @@ public:
* @param parent * @param parent
* @return * @return
*/ */
[[nodiscard]]
auto columnCount( auto columnCount(
const QModelIndex &parent = QModelIndex() const QModelIndex &parent = QModelIndex()
) const -> int override; ) const -> int override;
@@ -124,6 +133,7 @@ public:
* @param index * @param index
* @return * @return
*/ */
[[nodiscard]]
auto parent(const QModelIndex &index) const -> QModelIndex override; auto parent(const QModelIndex &index) const -> QModelIndex override;
/** /**
@@ -153,19 +163,54 @@ public:
* and their QML friendly names * and their QML friendly names
* @return * @return
*/ */
[[nodiscard]]
auto roleNames() const -> QHash<int, QByteArray> override; auto roleNames() const -> QHash<int, QByteArray> override;
/**
* @brief errorString
* @return
*/
[[nodiscard]]
auto errorString() const -> QString; auto errorString() const -> QString;
/**
* @brief resultsPerPage
* @return
*/
auto resultsPerPage() const -> qsizetype; auto resultsPerPage() const -> qsizetype;
/**
* @brief setResultsPerPage
* @param resultsPerPage
*/
auto setResultsPerPage(qsizetype resultsPerPage) -> void; auto setResultsPerPage(qsizetype resultsPerPage) -> void;
/**
* @brief totalResults
* @return
*/
auto totalResults() const -> qsizetype; auto totalResults() const -> qsizetype;
/**
* @brief page
* @return
*/
auto page() const -> qsizetype; auto page() const -> qsizetype;
/**
* @brief totalPages
* @return
*/
auto totalPages() const -> qsizetype; auto totalPages() const -> qsizetype;
/**
* @brief nextPage
*/
Q_INVOKABLE auto nextPage() const -> void; Q_INVOKABLE auto nextPage() const -> void;
/**
* @brief previousPage
*/
Q_INVOKABLE auto previousPage() const -> void; Q_INVOKABLE auto previousPage() const -> void;
protected: protected:
@@ -186,7 +231,10 @@ protected:
*/ */
auto resetState() -> void; auto resetState() -> void;
auto restDataModel() -> void; /**
* @brief resetDataModel
*/
auto resetDataModel() -> void;
signals: signals:
auto stateChanged() -> void; auto stateChanged() -> void;