2021-01-15 Fred Gleason <fredg@paravelsystems.com>

* Modified the 'RDLibraryModel::addCart()' to return 'QModelIndex'
	rather than 'int'.
	* Renamed 'RDLibraryModel::refreshCartLine()' to
	'RDLibrary::updateCartLine()' and made it protected.

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason
2021-01-15 07:45:39 -05:00
parent 42e1358386
commit 3536c8b151
3 changed files with 20 additions and 18 deletions

View File

@@ -62,7 +62,6 @@ class RDLibraryModel : public QAbstractItemModel
void removeCart(unsigned cartnum);
void refreshRow(const QModelIndex &index);
void refreshCart(unsigned cartnum);
void refreshCartLine(int cartline);
signals:
void rowCountChanged(int rows);
@@ -73,6 +72,7 @@ class RDLibraryModel : public QAbstractItemModel
protected:
void updateModel(const QString &filter_sql);
void updateCartLine(int cartline);
void updateRow(int row,RDSqlQuery *q);
QString sqlFields() const;