calendarui/views/src/calentodayindicatorlinedrawer.cpp
changeset 51 0b38fc5b94c6
parent 45 b6db4fd4947b
--- a/calendarui/views/src/calentodayindicatorlinedrawer.cpp	Fri Jul 02 19:56:46 2010 +0530
+++ b/calendarui/views/src/calentodayindicatorlinedrawer.cpp	Mon Jul 12 02:32:28 2010 +0530
@@ -24,6 +24,11 @@
 
 // User includes
 #include "CalenTodayIndicatorLineDrawer.h"
+#include "OstTraceDefinitions.h"
+#ifdef OST_TRACE_COMPILER_IN_USE
+#include "calentodayindicatorlinedrawerTraces.h"
+#endif
+
 
 /*!
  \class CalenTodayIndicatorLineDrawer.
@@ -37,10 +42,14 @@
 CalenTodayIndicatorLineDrawer::CalenTodayIndicatorLineDrawer(
 		QGraphicsItem* parent): HbWidgetBase(parent)
 {
+    OstTraceFunctionEntry0( CALENTODAYINDICATORLINEDRAWER_CALENTODAYINDICATORLINEDRAWER_ENTRY );
+    
 	connect(
 			HbTheme::instance(), SIGNAL(changed()),
 			this, SLOT(handleThemeChange()));
 	setFlag(QGraphicsItem::ItemHasNoContents, false);
+	
+	OstTraceFunctionExit0( CALENTODAYINDICATORLINEDRAWER_CALENTODAYINDICATORLINEDRAWER_EXIT );
 }
 
 /*!
@@ -48,7 +57,9 @@
  */
 CalenTodayIndicatorLineDrawer::~CalenTodayIndicatorLineDrawer()
 {
+    OstTraceFunctionEntry0( DUP1_CALENTODAYINDICATORLINEDRAWER_CALENTODAYINDICATORLINEDRAWER_ENTRY );
 
+    OstTraceFunctionExit0( DUP1_CALENTODAYINDICATORLINEDRAWER_CALENTODAYINDICATORLINEDRAWER_EXIT );
 }
 
 /*!
@@ -58,15 +69,26 @@
 		QPainter* painter, const QStyleOptionGraphicsItem* option,
 		QWidget* widget)
 {
+    OstTraceFunctionEntry0( CALENTODAYINDICATORLINEDRAWER_PAINT_ENTRY );
+    
 	Q_UNUSED(option);
 	Q_UNUSED(widget);
 	QPen pen;
 	pen.setStyle(Qt::SolidLine);
 	pen.setBrush(HbColorScheme::color("qtc_cal_month_current_day"));
+	
+	// Store the old pen
+    QPen oldPen = painter->pen();
+	    
 	painter->setPen(pen);
 	QRectF controlRect = this->boundingRect();
 	painter->fillRect(
 			controlRect, HbColorScheme::color("qtc_cal_month_current_day"));
+	
+	// Set the old pen back
+    painter->setPen(oldPen);
+    
+    OstTraceFunctionExit0( CALENTODAYINDICATORLINEDRAWER_PAINT_EXIT );
 }
 
 /*!
@@ -74,7 +96,11 @@
  */
 void CalenTodayIndicatorLineDrawer::handleThemeChange()
 {
+    OstTraceFunctionEntry0( CALENTODAYINDICATORLINEDRAWER_HANDLETHEMECHANGE_ENTRY );
+    
 	update();
+	
+	OstTraceFunctionExit0( CALENTODAYINDICATORLINEDRAWER_HANDLETHEMECHANGE_EXIT );
 }
 
 // End of file  --Don't remove this.