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:
@@ -47,6 +47,7 @@ protected:
|
||||
virtual bool canEditRecord() { return true; }
|
||||
virtual bool canDeleteRecord() { return true; }
|
||||
virtual int currentRecordId() = 0;
|
||||
virtual void currentIndexChanged(const QModelIndex ¤t) { Q_UNUSED(current) }
|
||||
void hideColumns(const QList<int> &cols);
|
||||
QWidget *filterWidget();
|
||||
void enableButtons();
|
||||
|
||||
Reference in New Issue
Block a user