--- 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.