2021-09-13 Fred Gleason <fredg@paravelsystems.com>

* Fixed a regression in rdlibrary(1) that could cause less than
	100 carts to be displayed when the 'Show Only First 100 Matches'
	box was ticked.

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason
2021-09-13 12:33:12 -04:00
parent 76548116e5
commit 7bd18d2ea5
10 changed files with 44 additions and 24 deletions

View File

@@ -65,13 +65,14 @@ class RDLibraryModel : public QAbstractItemModel
void refreshRow(const QModelIndex &index);
void refreshCart(unsigned cartnum);
bool showNotes() const;
int cartLimit() const;
signals:
void rowCountChanged(int rows);
public slots:
void setShowNotes(int state);
void setFilterSql(const QString &sql);
void setFilterSql(const QString &sql,int cart_limit);
protected:
void updateModel(const QString &filter_sql);
@@ -82,6 +83,7 @@ class RDLibraryModel : public QAbstractItemModel
private:
QByteArray DumpIndex(const QModelIndex &index,const QString &caption="") const;
bool d_show_notes;
int d_cart_limit;
QPalette d_palette;
QFont d_font;
QFontMetrics *d_font_metrics;