summaryrefslogtreecommitdiff
path: root/src/gui/widgets/widget.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-12-02 12:44:30 +0300
committerAndrei Karas <akaras@inbox.ru>2014-12-02 12:44:30 +0300
commit892424cc005d41b8976ae9193a3a4161b5c1950f (patch)
tree6b1cde86aeba82405e87526982910133007d1c52 /src/gui/widgets/widget.cpp
parent8aa68056aec80c775a3ddb152bea8a90a7097199 (diff)
downloadmanaverse-892424cc005d41b8976ae9193a3a4161b5c1950f.tar.gz
manaverse-892424cc005d41b8976ae9193a3a4161b5c1950f.tar.bz2
manaverse-892424cc005d41b8976ae9193a3a4161b5c1950f.tar.xz
manaverse-892424cc005d41b8976ae9193a3a4161b5c1950f.zip
Rename DeathListener into WidgetDeathListener.
Diffstat (limited to 'src/gui/widgets/widget.cpp')
-rw-r--r--src/gui/widgets/widget.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gui/widgets/widget.cpp b/src/gui/widgets/widget.cpp
index 43c8df92f..68b97ece2 100644
--- a/src/gui/widgets/widget.cpp
+++ b/src/gui/widgets/widget.cpp
@@ -74,7 +74,7 @@
#include "gui/focushandler.h"
#include "listeners/actionlistener.h"
-#include "listeners/deathlistener.h"
+#include "listeners/widgetdeathlistener.h"
#include "listeners/widgetlistener.h"
#include "debug.h"
@@ -117,7 +117,7 @@ Widget::Widget(const Widget2 *const widget) :
Widget::~Widget()
{
- FOR_EACH (DeathListenerIterator, iter, mDeathListeners)
+ FOR_EACH (WidgetDeathListenerIterator, iter, mDeathListeners)
{
Event event(this);
(*iter)->death(event);
@@ -258,12 +258,12 @@ void Widget::removeActionListener(ActionListener *const actionListener)
mActionListeners.remove(actionListener);
}
-void Widget::addDeathListener(DeathListener *const deathListener)
+void Widget::addDeathListener(WidgetDeathListener *const deathListener)
{
mDeathListeners.push_back(deathListener);
}
-void Widget::removeDeathListener(DeathListener *const deathListener)
+void Widget::removeDeathListener(WidgetDeathListener *const deathListener)
{
mDeathListeners.remove(deathListener);
}