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.cpp | |
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.cpp')
-rw-r--r-- | src/gui/tablemodel.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/gui/tablemodel.cpp b/src/gui/tablemodel.cpp index e362a314..0d8a8e33 100644 --- a/src/gui/tablemodel.cpp +++ b/src/gui/tablemodel.cpp @@ -97,7 +97,7 @@ void StaticTableModel::set(int row, int column, gcn::Widget *widget) signalAfterUpdate(); } -gcn::Widget *StaticTableModel::getElementAt(int row, int column) +gcn::Widget *StaticTableModel::getElementAt(int row, int column) const { return mTableModel[WIDGET_AT(row, column)]; } @@ -119,12 +119,12 @@ void StaticTableModel::fixRowHeight(int height) mHeight = -height; } -int StaticTableModel::getRowHeight() +int StaticTableModel::getRowHeight() const { return abs(mHeight); } -int StaticTableModel::getColumnWidth(int column) +int StaticTableModel::getColumnWidth(int column) const { if (column < 0 || column >= mColumns) return 0; @@ -132,17 +132,17 @@ int StaticTableModel::getColumnWidth(int column) return abs(mWidths[column]); } -int StaticTableModel::getRows() +int StaticTableModel::getRows() const { return mRows; } -int StaticTableModel::getColumns() +int StaticTableModel::getColumns() const { return mColumns; } -int StaticTableModel::getWidth(void) +int StaticTableModel::getWidth() const { int width = 0; @@ -154,8 +154,8 @@ int StaticTableModel::getWidth(void) return width; } -int StaticTableModel::getHeight(void) +int StaticTableModel::getHeight() const { - return (mColumns * mHeight); + return mColumns * mHeight; } |