calendarui/views/src/calenagendaview.cpp
changeset 77 b0711afde476
parent 58 ef813d54df51
child 75 7ac58b2aae6f
--- a/calendarui/views/src/calenagendaview.cpp	Thu Sep 02 20:25:23 2010 +0300
+++ b/calendarui/views/src/calenagendaview.cpp	Fri Sep 17 08:29:05 2010 +0300
@@ -18,6 +18,7 @@
 // System includes
 #include <QGraphicsSceneEvent>
 #include <hbmainwindow.h>
+#include <hbmenu.h>
 #include <hbaction.h>
 #include <hbpangesture.h>
 #include <hbswipegesture.h>
@@ -217,20 +218,6 @@
 }
 
 // ----------------------------------------------------------------------------
-// CalenAgendaView::HandleNotification
-// Rest of the details are commented in the header
-// ----------------------------------------------------------------------------
-//    
-void CalenAgendaView::HandleNotification(const TCalenNotification notification)
-{
-    OstTraceFunctionEntry0( CALENAGENDAVIEW_HANDLENOTIFICATION_ENTRY );
-    
-    Q_UNUSED(notification)
-    // No implementation yet
-    OstTraceFunctionExit0( CALENAGENDAVIEW_HANDLENOTIFICATION_EXIT );
-}
-
-// ----------------------------------------------------------------------------
 // CalenAgendaView::docLoader
 // Rest of the details are commented in the header
 // ----------------------------------------------------------------------------
@@ -315,6 +302,8 @@
 	// Connect to the signal triggered by settings action
 	connect(settingsAction, SIGNAL(triggered()), this, SLOT(launchSettingsView()));
 	
+	// Close the menu once closeDialogs() is received
+	connect(this, SIGNAL(closeDialogs()), menu(), SLOT(close()));
 	OstTraceFunctionExit0( CALENAGENDAVIEW_SETUPACTIONS_EXIT );
 }