calendarui/views/src/calenthicklinesdrawer.cpp
changeset 63 a3cb48f6c889
parent 57 bb2d3e476f29
child 75 7ac58b2aae6f
--- a/calendarui/views/src/calenthicklinesdrawer.cpp	Mon Aug 09 18:30:52 2010 +0530
+++ b/calendarui/views/src/calenthicklinesdrawer.cpp	Wed Aug 25 14:02:13 2010 +0530
@@ -21,6 +21,7 @@
 #include <QPen>
 #include <hbdeviceprofile.h>
 #include <hbcolorscheme.h>
+#include <hbtheme.h>
 
 // User includes
 #include "calenthicklinesdrawer.h"
@@ -53,6 +54,10 @@
 	mGridBorderColor = HbColorScheme::color("qtc_cal_grid_line");
 	setFlag(QGraphicsItem::ItemHasNoContents, false);
 	
+	connect(
+				HbTheme::instance(), SIGNAL(changed()),
+				this, SLOT(handleThemeChange()));
+	
 	OstTraceFunctionExit0( CALENTHICKLINESDRAWER_CALENTHICKLINESDRAWER_EXIT );
 }
 
@@ -121,4 +126,16 @@
     OstTraceFunctionExit0( CALENTHICKLINESDRAWER_PAINT_EXIT );
 }
 
+/*!
+ Slot to handle the change in theme
+ */
+void CalenThickLinesDrawer::handleThemeChange()
+{
+	OstTraceFunctionEntry0(CALENTHICKLINESDRAWER_HANDLETHEMECHANGE_ENTRY);
+	
+	mGridBorderColor = HbColorScheme::color("qtc_cal_grid_line");
+	
+	OstTraceFunctionExit0(CALENTHICKLINESDRAWER_HANDLETHEMECHANGE_EXIT);
+}
+
 // End of file  --Don't remove this.