Added checkbox for select all items from saved receipt.
This commit is contained in:
@@ -221,6 +221,24 @@ public:
|
||||
return ret;
|
||||
}
|
||||
|
||||
void setSelectAll(bool select) {
|
||||
if (!m_checkboxSelect) {
|
||||
return;
|
||||
}
|
||||
|
||||
beginResetModel();
|
||||
m_selectedRows.clear();
|
||||
|
||||
if (select)
|
||||
{
|
||||
for (int i = 0; i < rowCount(); i++)
|
||||
{
|
||||
m_selectedRows << i;
|
||||
}
|
||||
}
|
||||
endResetModel();
|
||||
}
|
||||
|
||||
protected:
|
||||
void handleFilter(const QString &filter) override
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user