Added methods for better permission checks in modules.

Added method for returning selected entity in grid.
Added polymorphic methods for delete record and fill grid.
This commit is contained in:
2017-06-07 15:51:33 +02:00
parent b916d626d1
commit 35696fbfea
3 changed files with 74 additions and 16 deletions
+1
View File
@@ -47,6 +47,7 @@ protected:
virtual bool canEditRecord() { return true; }
virtual bool canDeleteRecord() { return true; }
virtual int currentRecordId() = 0;
virtual void currentIndexChanged(const QModelIndex &current) { Q_UNUSED(current) }
void hideColumns(const QList<int> &cols);
QWidget *filterWidget();
void enableButtons();