diff data/model/DenseThreeDimensionalModel.h @ 1804:343ef2a866a4

Implement missing TabularModel editing methods. Also made these pure in TabularModel, since almost all subclasses want them and (clearly) forgetting to implement them is a problem!
author Chris Cannam
date Mon, 14 Oct 2019 14:17:37 +0100
parents 73077ec5aed6
children c7e9e63c7bae
line wrap: on
line diff
--- a/data/model/DenseThreeDimensionalModel.h	Thu Oct 10 10:03:31 2019 +0100
+++ b/data/model/DenseThreeDimensionalModel.h	Mon Oct 14 14:17:37 2019 +0100
@@ -132,6 +132,11 @@
     int getRowCount() const override { return getWidth(); }
     int getColumnCount() const override { return getHeight() + 2; }
 
+    bool isEditable() const override { return false; }
+    Command *getSetDataCommand(int, int, const QVariant &, int) { return nullptr; }
+    Command *getInsertRowCommand(int) { return nullptr; }
+    Command *getRemoveRowCommand(int) { return nullptr; }
+    
     QString getHeading(int column) const override
     {
         switch (column) {