Added checkbox for select all items from saved receipt.

This commit is contained in:
2019-07-14 15:53:58 +02:00
parent c8658ba77f
commit 4f2380f3db
4 changed files with 40 additions and 1 deletions
+18
View File
@@ -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
{