mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-11-02 07:03:51 +01:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user