diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-03-01 20:50:14 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-03-01 20:50:14 +0300 |
commit | 54f1b48226c5aaa20926a93fbfdc8a54712e78f1 (patch) | |
tree | c592a47e254d817f79226be208828f8be431a039 /src/gui/widgets | |
parent | 2c62286a7ecf246e8a445dd7d00f618efae2a96a (diff) | |
download | manaplus-54f1b48226c5aaa20926a93fbfdc8a54712e78f1.tar.gz manaplus-54f1b48226c5aaa20926a93fbfdc8a54712e78f1.tar.bz2 manaplus-54f1b48226c5aaa20926a93fbfdc8a54712e78f1.tar.xz manaplus-54f1b48226c5aaa20926a93fbfdc8a54712e78f1.zip |
In guitable rename conflicting mActionListeners into mActionListeners2.
Diffstat (limited to 'src/gui/widgets')
-rw-r--r-- | src/gui/widgets/guitable.cpp | 8 | ||||
-rw-r--r-- | src/gui/widgets/guitable.h | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/gui/widgets/guitable.cpp b/src/gui/widgets/guitable.cpp index 70ebb77d6..128281fe9 100644 --- a/src/gui/widgets/guitable.cpp +++ b/src/gui/widgets/guitable.cpp @@ -101,7 +101,7 @@ GuiTable::GuiTable(const Widget2 *const widget, KeyListener(), mModel(nullptr), mTopWidget(nullptr), - mActionListeners(), + mActionListeners2(), mHighlightColor(getThemeColor(Theme::HIGHLIGHT)), mSelectedRow(-1), mSelectedColumn(-1), @@ -266,8 +266,8 @@ void GuiTable::setSelectedColumn(const int selected) void GuiTable::uninstallActionListeners() { - delete_all(mActionListeners); - mActionListeners.clear(); + delete_all(mActionListeners2); + mActionListeners2.clear(); } void GuiTable::installActionListeners() @@ -285,7 +285,7 @@ void GuiTable::installActionListeners() Widget *const widget = mModel->getElementAt(row, column); if (widget) { - mActionListeners.push_back(new GuiTableActionListener( + mActionListeners2.push_back(new GuiTableActionListener( this, widget, row, column)); } } diff --git a/src/gui/widgets/guitable.h b/src/gui/widgets/guitable.h index fb0c34784..7cec854a8 100644 --- a/src/gui/widgets/guitable.h +++ b/src/gui/widgets/guitable.h @@ -183,7 +183,7 @@ private: Widget *mTopWidget; /** Vector for compactness; used as a list in practice. */ - std::vector<GuiTableActionListener *> mActionListeners; + std::vector<GuiTableActionListener *> mActionListeners2; /** * Holds the background color of the table. |