diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-04-29 20:23:25 +0200 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-04-29 20:23:25 +0200 |
commit | 6df16720da3ae3257636e000c10b62d0b99f752e (patch) | |
tree | 5fed84d7d00d2632335fb455e1c78440dd6cb69a /src/gui/tablemodel.h | |
parent | c2697fef772f84db637f55b7501361ea94ed66ee (diff) | |
download | mana-6df16720da3ae3257636e000c10b62d0b99f752e.tar.gz mana-6df16720da3ae3257636e000c10b62d0b99f752e.tar.bz2 mana-6df16720da3ae3257636e000c10b62d0b99f752e.tar.xz mana-6df16720da3ae3257636e000c10b62d0b99f752e.zip |
Fixed const-ness of TableModel related methods
Diffstat (limited to 'src/gui/tablemodel.h')
-rw-r--r-- | src/gui/tablemodel.h | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/gui/tablemodel.h b/src/gui/tablemodel.h index a884932f..ffaa0557 100644 --- a/src/gui/tablemodel.h +++ b/src/gui/tablemodel.h @@ -53,27 +53,27 @@ public: /** * Determines the number of rows (lines) in the table */ - virtual int getRows() = 0; + virtual int getRows() const = 0; /** * Determines the number of columns in each row */ - virtual int getColumns() = 0; + virtual int getColumns() const = 0; /** * Determines the height for each row */ - virtual int getRowHeight() = 0; + virtual int getRowHeight() const = 0; /** * Determines the width of each individual column */ - virtual int getColumnWidth(int index) = 0; + virtual int getColumnWidth(int index) const = 0; /** * Retrieves the widget stored at the specified location within the table. */ - virtual gcn::Widget *getElementAt(int row, int column) = 0; + virtual gcn::Widget *getElementAt(int row, int column) const = 0; virtual void installListener(TableModelListener *listener); @@ -128,13 +128,13 @@ public: */ virtual void resize(); - virtual int getRows(); - virtual int getColumns(); - virtual int getRowHeight(); - virtual int getWidth(); - virtual int getHeight(); - virtual int getColumnWidth(int index); - virtual gcn::Widget *getElementAt(int row, int column); + virtual int getRows() const; + virtual int getColumns() const; + virtual int getRowHeight() const; + virtual int getWidth() const; + virtual int getHeight() const; + virtual int getColumnWidth(int index) const; + virtual gcn::Widget *getElementAt(int row, int column) const; protected: int mRows, mColumns; |