summaryrefslogtreecommitdiff
path: root/src/gui/models
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-06-02 22:15:12 +0300
committerAndrei Karas <akaras@inbox.ru>2014-06-02 22:15:12 +0300
commit82644cd319e46e35a7b4e3b4a61fac2465a2ea66 (patch)
treed737e04b71ea583abe1e835ece785b147a6abfb9 /src/gui/models
parent37343e2b49466bb6cab33f8d1ca362a25f77a660 (diff)
downloadmv-82644cd319e46e35a7b4e3b4a61fac2465a2ea66.tar.gz
mv-82644cd319e46e35a7b4e3b4a61fac2465a2ea66.tar.bz2
mv-82644cd319e46e35a7b4e3b4a61fac2465a2ea66.tar.xz
mv-82644cd319e46e35a7b4e3b4a61fac2465a2ea66.zip
Add missing final/notfinal to classes.
Diffstat (limited to 'src/gui/models')
-rw-r--r--src/gui/models/listmodel.h2
-rw-r--r--src/gui/models/tablemodel.cpp2
-rw-r--r--src/gui/models/tablemodel.h20
3 files changed, 5 insertions, 19 deletions
diff --git a/src/gui/models/listmodel.h b/src/gui/models/listmodel.h
index dfce6d4d5..3f7b964c6 100644
--- a/src/gui/models/listmodel.h
+++ b/src/gui/models/listmodel.h
@@ -75,7 +75,7 @@
* like ListBox, make a derived class from this class that
* represents your list.
*/
-class ListModel
+class ListModel notfinal
{
public:
/**
diff --git a/src/gui/models/tablemodel.cpp b/src/gui/models/tablemodel.cpp
index aad66a6ad..d9498bbd7 100644
--- a/src/gui/models/tablemodel.cpp
+++ b/src/gui/models/tablemodel.cpp
@@ -26,6 +26,8 @@
#include "gui/widgets/widget.h"
+#include "listeners/tablemodellistener.h"
+
#include "debug.h"
void TableModel::installListener(TableModelListener *const listener)
diff --git a/src/gui/models/tablemodel.h b/src/gui/models/tablemodel.h
index 032facadd..1f3f86af7 100644
--- a/src/gui/models/tablemodel.h
+++ b/src/gui/models/tablemodel.h
@@ -30,28 +30,12 @@
class Widget;
-class TableModelListener
-{
-public:
- /**
- * Must be invoked by the TableModel whenever a global change is about to
- * occur or has occurred (e.g., when a row or column is being removed or
- * added).
- *
- * This method is triggered twice, once before and once after the update.
- *
- * \param completed whether we are signalling the end of the update
- */
- virtual void modelUpdated(const bool completed) = 0;
-
- virtual ~TableModelListener()
- { }
-};
+class TableModelListener;
/**
* A model for a regular table of widgets.
*/
-class TableModel
+class TableModel notfinal
{
public:
virtual ~TableModel()