Mercurial > hg > svcore
diff data/model/SparseModel.h @ 416:a00902d5f0ab
* basics of data editing in data table view
author | Chris Cannam |
---|---|
date | Mon, 09 Jun 2008 16:01:50 +0000 |
parents | 88ad01799040 |
children | 50a956688baa |
line wrap: on
line diff
--- a/data/model/SparseModel.h Mon Jun 09 16:01:22 2008 +0000 +++ b/data/model/SparseModel.h Mon Jun 09 16:01:50 2008 +0000 @@ -218,9 +218,9 @@ /** * If any points have been added or deleted, return this * command (so the caller can add it to the command history). - * Otherwise delete the command. + * Otherwise delete the command and return NULL. */ - virtual Command *finish(); + virtual EditCommand *finish(); protected: virtual void addCommand(Command *command, bool executeFirst); @@ -605,7 +605,7 @@ } template <typename PointType> -Command * +typename SparseModel<PointType>::EditCommand * SparseModel<PointType>::EditCommand::finish() { if (!m_commands.empty()) {