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.cpp | |
parent | 7c2c9f4478aa41a850b01480a8278b325f5b0f95 (diff) | |
download | manaplus-df994f808e69d567fddc742656a1df86c15bf576.tar.gz manaplus-df994f808e69d567fddc742656a1df86c15bf576.tar.bz2 manaplus-df994f808e69d567fddc742656a1df86c15bf576.tar.xz manaplus-df994f808e69d567fddc742656a1df86c15bf576.zip |
improve tablemodel.
Diffstat (limited to 'src/gui/widgets/tablemodel.cpp')
-rw-r--r-- | src/gui/widgets/tablemodel.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gui/widgets/tablemodel.cpp b/src/gui/widgets/tablemodel.cpp index 3b0c3e854..87c620afc 100644 --- a/src/gui/widgets/tablemodel.cpp +++ b/src/gui/widgets/tablemodel.cpp @@ -119,7 +119,8 @@ void StaticTableModel::set(const int row, const int column, signalAfterUpdate(); } -gcn::Widget *StaticTableModel::getElementAt(int row, int column) const +gcn::Widget *StaticTableModel::getElementAt(const int row, + const int column) const { return mTableModel[WIDGET_AT(row, column)]; } @@ -145,7 +146,7 @@ int StaticTableModel::getRowHeight() const return abs(mHeight); } -int StaticTableModel::getColumnWidth(int column) const +int StaticTableModel::getColumnWidth(const int column) const { if (column < 0 || column >= mColumns) return 0; |