diff engine/core/gui/widgets/clicklabel.cpp @ 157:bb9902910067

input_rework merged! Bad features: * Broken DND for zero-projekt. * Design short-comings.
author phoku@33b003aa-7bff-0310-803a-e67f0ece8222
date Tue, 14 Oct 2008 07:41:48 +0000
parents d29593182f40
children 756b895e1dab
line wrap: on
line diff
--- a/engine/core/gui/widgets/clicklabel.cpp	Sun Oct 12 20:30:09 2008 +0000
+++ b/engine/core/gui/widgets/clicklabel.cpp	Tue Oct 14 07:41:48 2008 +0000
@@ -40,7 +40,6 @@
 // 		setAlignment(Graphics::LEFT);
 		setTextWrapping(false);
 		setFrameSize(0);
-		m_listener = NULL;
 		addMouseListener(this);
 		addKeyListener(this);
 		addFocusListener(this);
@@ -53,7 +52,6 @@
 		setTextWrapping(false);
 		setCaption(caption);
 		setFrameSize(0);
-		m_listener = NULL;
 		addMouseListener(this);
 		addKeyListener(this);
 		addFocusListener(this);
@@ -141,19 +139,11 @@
 	
 	void ClickLabel::mouseExited(MouseEvent& mouseEvent)
 	{
-		// taken from TwoButton.cpp
-		if (m_listener) {
-			m_listener->mouseExited(*this);
-		}		
 		mHasMouse = false;
 	}
 	
 	void ClickLabel::mouseEntered(MouseEvent& mouseEvent)
 	{
-		// taken from TwoButton.cpp
-		if (m_listener) {
-			m_listener->mouseEntered(*this);
-		}		
 		mHasMouse = true;
 	}