calendarui/views/src/calenmonthview.cpp
changeset 70 a5ed90760192
parent 64 1881ad52dc45
child 75 7ac58b2aae6f
equal deleted inserted replaced
64:1881ad52dc45 70:a5ed90760192
   326 	        SLOT(changeOrientation(Qt::Orientation)));
   326 	        SLOT(changeOrientation(Qt::Orientation)));
   327 	
   327 	
   328 	// Connect to the signal when options menu is shown
   328 	// Connect to the signal when options menu is shown
   329 	// This is required to add/remove dynamically some options
   329 	// This is required to add/remove dynamically some options
   330 	connect(menu(), SIGNAL(aboutToShow ()), this,
   330 	connect(menu(), SIGNAL(aboutToShow ()), this,
   331 			SLOT(addRemoveActionsInMenu()));	
   331 										SLOT(addRemoveActionsInMenu()));
       
   332 	// Close the menu once closeDialogs() is received
       
   333 	connect(this, SIGNAL(closeDialogs()), menu(), SLOT(close()));
       
   334 		
   332 	//add "show lunar data" action item ,if regional plugin is present
   335 	//add "show lunar data" action item ,if regional plugin is present
   333 	//regional plugin will add the option itself and handles it accordingly
   336 	//regional plugin will add the option itself and handles it accordingly
   334 	//use this api after adding all action item to the menu
   337 	//use this api after adding all action item to the menu
   335 	//so that plugin add the "Show lunar data" item as a second last option 
   338 	//so that plugin add the "Show lunar data" item as a second last option 
   336 	// in all views
   339 	// in all views