diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-06-17 13:21:59 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-06-17 13:21:59 +0300 |
commit | df994f808e69d567fddc742656a1df86c15bf576 (patch) | |
tree | 86bc2841a3d3a4f167a3238a4e0a3c366e038550 /src/gui/widgets/tablemodel.h | |
parent | 7c2c9f4478aa41a850b01480a8278b325f5b0f95 (diff) | |
download | plus-df994f808e69d567fddc742656a1df86c15bf576.tar.gz plus-df994f808e69d567fddc742656a1df86c15bf576.tar.bz2 plus-df994f808e69d567fddc742656a1df86c15bf576.tar.xz plus-df994f808e69d567fddc742656a1df86c15bf576.zip |
improve tablemodel.
Diffstat (limited to 'src/gui/widgets/tablemodel.h')
-rw-r--r-- | src/gui/widgets/tablemodel.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/gui/widgets/tablemodel.h b/src/gui/widgets/tablemodel.h index dccce65ad..427b8bf3a 100644 --- a/src/gui/widgets/tablemodel.h +++ b/src/gui/widgets/tablemodel.h @@ -45,7 +45,7 @@ public: * * \param completed whether we are signalling the end of the update */ - virtual void modelUpdated(bool completed) = 0; + virtual void modelUpdated(const bool completed) = 0; virtual ~TableModelListener() { } @@ -82,12 +82,12 @@ public: /** * Determines the width of each individual column */ - virtual int getColumnWidth(int index) const A_WARN_UNUSED = 0; + virtual int getColumnWidth(const int index) const A_WARN_UNUSED = 0; /** * Retrieves the widget stored at the specified location within the table. */ - virtual gcn::Widget *getElementAt(int row, int column) + virtual gcn::Widget *getElementAt(const int row, const int column) const A_WARN_UNUSED = 0; virtual void installListener(TableModelListener *const listener); @@ -147,13 +147,13 @@ public: */ virtual void resize(); - virtual int getRows() const A_WARN_UNUSED; - virtual int getColumns() const A_WARN_UNUSED; + virtual int getRows() const override A_WARN_UNUSED; + virtual int getColumns() const override A_WARN_UNUSED; virtual int getRowHeight() const override A_WARN_UNUSED; virtual int getWidth() const A_WARN_UNUSED; virtual int getHeight() const A_WARN_UNUSED; - virtual int getColumnWidth(int index) const A_WARN_UNUSED; - virtual gcn::Widget *getElementAt(int row, int column) + virtual int getColumnWidth(const int index) const override A_WARN_UNUSED; + virtual gcn::Widget *getElementAt(const int row, const int column) const override A_WARN_UNUSED; protected: |